Interface LengthRestrictedTypeDefinition<T extends TypeDefinition<T>>
-
- Type Parameters:
T
- ConcreteTypeDefinition
subinterface
- All Superinterfaces:
DocumentedNode
,DocumentedNode.WithStatus
,SchemaNode
,TypeDefinition<T>
- All Known Subinterfaces:
BinaryTypeDefinition
,StringTypeDefinition
public interface LengthRestrictedTypeDefinition<T extends TypeDefinition<T>> extends TypeDefinition<T>
Interface forTypeDefinition
s which can have their values restricted to a set of allowed lengths.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.opendaylight.yangtools.yang.model.api.DocumentedNode
DocumentedNode.WithStatus
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Optional<LengthConstraint>
getLengthConstraint()
Returns length 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
getPath, getQName
-
Methods inherited from interface org.opendaylight.yangtools.yang.model.api.TypeDefinition
getBaseType, getDefaultValue, getUnits
-
-
-
-
Method Detail
-
getLengthConstraint
Optional<LengthConstraint> getLengthConstraint()
Returns length constraint of this type, if applicable. This is the effective constraint, e.g. it includes any length constraints implied by base type hierarchy.- Returns:
- length constraint which are specified in the
length
substatement of thetype
statement.
-
-