@Beta 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 and annotation name.
|
void |
addValue(String name,
int value,
String description,
String reference,
org.opendaylight.yangtools.yang.model.api.Status status) |
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, getPackageName
AnnotationTypeBuilder addAnnotation(String packageName, String name)
null
references. In case that any of parameters contains null
the
method SHOULD throw IllegalArgumentException
packageName
- Package Name of Annotation Typename
- Name of Annotation Typenew
instance of Annotation Type Builder.void addValue(String name, int value, String description, String reference, org.opendaylight.yangtools.yang.model.api.Status status)
name
- assigned namevalue
- as optionally defined in YANG modeldescription
- as optionally defined in YANG modelreference
- as optionally defined in YANG modelstatus
- as optionally defined in YANG modelEnumeration toInstance(Type definingType)
definingType
- Typevoid 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
enumBuilder
void setDescription(String description)
description
- Copyright © 2019 OpenDaylight. All rights reserved.