Class AbstractEnumerationBuilder
- java.lang.Object
-
- org.opendaylight.yangtools.concepts.AbstractIdentifiable<T,T>
-
- org.opendaylight.yangtools.concepts.AbstractSimpleIdentifiable<JavaTypeName>
-
- org.opendaylight.mdsal.binding.model.api.AbstractType
-
- org.opendaylight.mdsal.binding.model.ri.generated.type.builder.AbstractEnumerationBuilder
-
- All Implemented Interfaces:
Type
,AnnotableTypeBuilder
,EnumBuilder
,Identifiable<JavaTypeName>
- Direct Known Subclasses:
CodegenEnumerationBuilder
,RuntimeEnumerationBuilder
public abstract class AbstractEnumerationBuilder extends AbstractType implements EnumBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description AnnotationTypeBuilder
addAnnotation(JavaTypeName identifier)
The method creates newAnnotationTypeBuilder
containing specified package name an annotation name.protected MoreObjects.ToStringHelper
addToStringAttributes(MoreObjects.ToStringHelper toStringHelper)
abstract void
setModuleName(String moduleName)
abstract void
setReference(String reference)
abstract void
setSchemaPath(SchemaPath schemaPath)
void
updateEnumPairsFromEnumTypeDef(EnumTypeDefinition enumTypeDef)
Updates this builder with data fromenumTypeDef
.-
Methods inherited from class org.opendaylight.mdsal.binding.model.api.AbstractType
equals, hashCode
-
Methods inherited from class org.opendaylight.yangtools.concepts.AbstractIdentifiable
getIdentifier, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.opendaylight.mdsal.binding.model.api.type.builder.AnnotableTypeBuilder
addAnnotation
-
Methods inherited from interface org.opendaylight.mdsal.binding.model.api.type.builder.EnumBuilder
setDescription, toInstance
-
Methods inherited from interface org.opendaylight.yangtools.concepts.Identifiable
getIdentifier
-
Methods inherited from interface org.opendaylight.mdsal.binding.model.api.Type
getFullyQualifiedName, getName, getPackageName
-
-
-
-
Method Detail
-
addAnnotation
public final AnnotationTypeBuilder addAnnotation(JavaTypeName identifier)
Description copied from interface:AnnotableTypeBuilder
The method creates newAnnotationTypeBuilder
containing specified package name an annotation name.- Specified by:
addAnnotation
in interfaceAnnotableTypeBuilder
- Parameters:
identifier
- JavaTypeName of the annotation- Returns:
- a new instance of Annotation Type Builder.
-
setReference
public abstract void setReference(String reference)
-
setModuleName
public abstract void setModuleName(String moduleName)
-
setSchemaPath
public abstract void setSchemaPath(SchemaPath schemaPath)
-
addToStringAttributes
protected MoreObjects.ToStringHelper addToStringAttributes(MoreObjects.ToStringHelper toStringHelper)
- Overrides:
addToStringAttributes
in classAbstractIdentifiable<JavaTypeName,JavaTypeName>
-
updateEnumPairsFromEnumTypeDef
public final void updateEnumPairsFromEnumTypeDef(EnumTypeDefinition enumTypeDef)
Description copied from interface:EnumBuilder
Updates this builder with data fromenumTypeDef
. Specifically this data represents list of value-name pairs.- Specified by:
updateEnumPairsFromEnumTypeDef
in interfaceEnumBuilder
- Parameters:
enumTypeDef
- enum type definition as source of enum data forenumBuilder
-
-