Interface RangeRestrictedTypeDefinition<T extends TypeDefinition<T>,N extends Number & Comparable<N>>
- Type Parameters:
T
- ConcreteTypeDefinition
subinterfaceN
- Native data type
- All Superinterfaces:
DocumentedNode
,DocumentedNode.WithStatus
,SchemaNode
,TypeDefinition<T>
- All Known Subinterfaces:
DecimalTypeDefinition
,Int16TypeDefinition
,Int32TypeDefinition
,Int64TypeDefinition
,Int8TypeDefinition
,Uint16TypeDefinition
,Uint32TypeDefinition
,Uint64TypeDefinition
,Uint8TypeDefinition
public interface RangeRestrictedTypeDefinition<T extends TypeDefinition<T>,N extends Number & Comparable<N>>
extends TypeDefinition<T>
Interface for
TypeDefinition
s which can have their values restricted to a set of allowed values.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.opendaylight.yangtools.yang.model.api.DocumentedNode
DocumentedNode.WithStatus
-
Method Summary
Modifier and TypeMethodDescriptionReturns range constraint of this type, if applicable.Methods inherited from interface org.opendaylight.yangtools.yang.model.api.DocumentedNode
getDescription, getReference, getUnknownSchemaNodes
Methods inherited from interface org.opendaylight.yangtools.yang.model.api.DocumentedNode.WithStatus
getStatus
Methods inherited from interface org.opendaylight.yangtools.yang.model.api.SchemaNode
getQName
Methods inherited from interface org.opendaylight.yangtools.yang.model.api.TypeDefinition
getBaseType, getDefaultValue, getUnits
-
Method Details
-
getRangeConstraint
Optional<RangeConstraint<N>> getRangeConstraint()Returns range constraint of this type, if applicable. This is the effective constraint, e.g. it includes any range constraints implied by base type hierarchy.- Returns:
- range constraint which are specified in the
range
substatement of thetype
statement.
-