Interface MandatoryAware
- All Known Subinterfaces:
AnydataSchemaNode
,AnyxmlSchemaNode
,ChoiceSchemaNode
,EffectiveStatementMixins.MandatoryMixin<A,
,D> EffectiveStatementMixins.OpaqueDataSchemaNodeMixin<D>
,LeafSchemaNode
- All Known Implementing Classes:
AbstractChoiceEffectiveStatement
,AbstractLeafEffectiveStatement
,EmptyAnydataEffectiveStatement
,EmptyAnyxmlEffectiveStatement
,EmptyChoiceEffectiveStatement
,EmptyLeafEffectiveStatement
,RegularAnydataEffectiveStatement
,RegularAnyxmlEffectiveStatement
,RegularChoiceEffectiveStatement
,RegularLeafEffectiveStatement
,UndeclaredLeafEffectiveStatement
public interface MandatoryAware
Mix-in interface for
SchemaNode
s which can have a mandatory
statement.- Author:
- Robert Varga
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Return whether this node is mandatory or not.
-
Method Details
-
isMandatory
boolean isMandatory()Return whether this node is mandatory or not. Note this reflects the declared model, as defined by 'mandatory' statement, not the effective model. This notably means this attribute does not mirror the definition ofmandatory node
as per RFC7950 Terminology.- Returns:
- True if this node is marked as mandatory.
-