public interface EnumBuilder extends Type
Enumeration| Modifier and Type | Method and Description |
|---|---|
AnnotationTypeBuilder |
addAnnotation(String packageName,
String name)
The method creates new AnnotationTypeBuilder containing specified package
name an annotation name.
|
void |
addValue(String name,
Integer value,
String description) |
void |
setDescription(String description) |
Enumeration |
toInstance(Type definingType) |
void |
updateEnumPairsFromEnumTypeDef(org.opendaylight.yangtools.yang.model.api.type.EnumTypeDefinition enumTypeDef)
Updates this builder with data from
enumTypeDef. |
getFullyQualifiedName, getName, getPackageNameAnnotationTypeBuilder addAnnotation(String packageName, String name)
null
references. In case that any of parameters contains null the
method SHOULD thrown IllegalArgumentExceptionpackageName - Package Name of Annotation Typename - Name of Annotation Typenew instance of Annotation Type Builder.Enumeration toInstance(Type definingType)
definingType - void updateEnumPairsFromEnumTypeDef(org.opendaylight.yangtools.yang.model.api.type.EnumTypeDefinition enumTypeDef)
enumTypeDef.
Specifically this data represents list of value-name pairs.enumTypeDef - enum type definition as source of enum data for
enumBuildervoid setDescription(String description)
description - Copyright © 2014. All rights reserved.