Interface GeneratedType
- All Superinterfaces:
DocumentedType,org.opendaylight.yangtools.concepts.Identifiable<JavaTypeName>,Type
- All Known Subinterfaces:
Enumeration,GeneratedTransferObject
Every Java interface has to be specified with:
packagethat belongs intointerfacename (with commentary that SHOULD be present to proper define interface and base contracts specified for interface)- Each Generated Type can define list of types that Generated Type can implement to extend it's definition (i.e. interface extends list of interfaces or java class implements list of interfaces)
- Each Generated Type can contain multiple enclosed definitions of Generated Types (i.e. interface can contain N enclosed interface definitions or enclosed classes)
enumandconstantdefinitions (i.e. each constant definition is by default defined aspublic static final+ type (either primitive or object) and constant namemethod definitionswith specified input parameters (with types) and return values
By the definition of the interface constant, enum, enclosed types and method definitions MUST be public, so there is no need to specify the scope of visibility.
-
Method Summary
Modifier and TypeMethodDescriptionReturns List of annotation definitions associated with generated type.Returns comment string associated with Generated Type.Returns List of Constant definitions associated with Generated Type.Returns List of enclosing Generated Types.Returns List of all Enumerator definitions associated with Generated Type.Returns List of Types that Generated Type will implement.Returns List of Method Definitions associated with Generated Type.Returns List of Properties that are declared for Generated Transfer Object.Returns the YANG definition of this type, if available.booleanReturnstrueif The Generated Type is defined as abstract.Methods inherited from interface org.opendaylight.mdsal.binding.model.api.DocumentedType
getDescription, getModuleName, getReferenceMethods inherited from interface org.opendaylight.yangtools.concepts.Identifiable
getIdentifierMethods inherited from interface org.opendaylight.mdsal.binding.model.api.Type
getFullyQualifiedName, getName, getPackageName
-
Method Details
-
getComment
TypeComment getComment()Returns comment string associated with Generated Type.- Returns:
- comment string associated with Generated Type.
-
getAnnotations
List<AnnotationType> getAnnotations()Returns List of annotation definitions associated with generated type.- Returns:
- List of annotation definitions associated with generated type.
-
isAbstract
boolean isAbstract()Returnstrueif The Generated Type is defined as abstract.- Returns:
trueif The Generated Type is defined as abstract.
-
getImplements
Returns List of Types that Generated Type will implement.- Returns:
- List of Types that Generated Type will implement.
-
getEnclosedTypes
List<GeneratedType> getEnclosedTypes()Returns List of enclosing Generated Types.- Returns:
- List of enclosing Generated Types.
-
getEnumerations
List<Enumeration> getEnumerations()Returns List of all Enumerator definitions associated with Generated Type.- Returns:
- List of all Enumerator definitions associated with Generated Type.
-
getConstantDefinitions
Returns List of Constant definitions associated with Generated Type.- Returns:
- List of Constant definitions associated with Generated Type.
-
getMethodDefinitions
List<MethodSignature> getMethodDefinitions()Returns List of Method Definitions associated with Generated Type. The list does not contains getters and setters for properties.- Returns:
- List of Method Definitions associated with Generated Type.
-
getProperties
List<GeneratedProperty> getProperties()Returns List of Properties that are declared for Generated Transfer Object.- Returns:
- List of Properties that are declared for Generated Transfer Object.
-
getYangSourceDefinition
Optional<YangSourceDefinition> getYangSourceDefinition()Returns the YANG definition of this type, if available.- Returns:
- YANG source definition, or empty when unavailable.
-