Class ContainerLikeCompat
java.lang.Object
com.google.common.collect.ForwardingObject
org.opendaylight.yangtools.yang.model.api.ContainerLikeCompat
- All Implemented Interfaces:
ActionNodeContainer
,AddedByUsesAware
,AugmentationTarget
,ContainerLike
,CopyableNode
,DataNodeContainer
,DataSchemaNode
,DocumentedNode
,DocumentedNode.WithStatus
,MustConstraintAware
,NotificationNodeContainer
,SchemaNode
,WhenConditionAware
Base class supporting
OperationDefinition.toContainerLike()
and
NotificationDefinition.toContainerLike()
. This class is exposed only for the unlikely need users of those
methods need to do tricks when encountering those containers.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.opendaylight.yangtools.yang.model.api.DocumentedNode
DocumentedNode.WithStatus
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract @NonNull SchemaNode
delegate()
Return the effective value ofconfig
substatement, if applicable.final Set<ActionDefinition>
Return the set of actions.Returns the value of the argument of YANGdescription
keyword.final Set<@NonNull MustDefinition>
Specifies the rules which the node which containsmust
YANG substatement has to match.final Set<NotificationDefinition>
Return the set of notifications in this container, keyed by QName.final QName
getQName()
Returns QName of the instance of the typeSchemaNode
.Returns the value of the argument of YANGreference
keyword.final Status
Returns status of the instance of the typeSchemaNode
.getUses()
Returns grouping nodes used ny this container.final Optional<? extends YangXPathExpression.QualifiedBound>
Returns when statement.final boolean
Deprecated, for removal: This API element is subject to removal in a future version.final boolean
Deprecated.Methods inherited from class com.google.common.collect.ForwardingObject
toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.opendaylight.yangtools.yang.model.api.ActionNodeContainer
findAction
Methods inherited from interface org.opendaylight.yangtools.yang.model.api.AugmentationTarget
getAvailableAugmentations
Methods inherited from interface org.opendaylight.yangtools.yang.model.api.DataNodeContainer
dataChildByName, findDataChildByName, findDataChildByName, findDataTreeChild, findDataTreeChild, findDataTreeChild, getChildNodes, getDataChildByName, getGroupings, getTypeDefinitions
Methods inherited from interface org.opendaylight.yangtools.yang.model.api.DataSchemaNode
isConfiguration
Methods inherited from interface org.opendaylight.yangtools.yang.model.api.DocumentedNode
getUnknownSchemaNodes
Methods inherited from interface org.opendaylight.yangtools.yang.model.api.NotificationNodeContainer
findNotification
-
Constructor Details
-
ContainerLikeCompat
public ContainerLikeCompat()
-
-
Method Details
-
delegate
- Specified by:
delegate
in classForwardingObject
-
getDescription
Description copied from interface:DocumentedNode
Returns the value of the argument of YANGdescription
keyword.- Specified by:
getDescription
in interfaceDocumentedNode
- Returns:
- string with the description, or empty if description was not provided.
-
getReference
Description copied from interface:DocumentedNode
Returns the value of the argument of YANGreference
keyword.- Specified by:
getReference
in interfaceDocumentedNode
- Returns:
- string with reference to some other document, or empty if reference was not provided.
-
getStatus
Description copied from interface:DocumentedNode.WithStatus
Returns status of the instance of the typeSchemaNode
.- Specified by:
getStatus
in interfaceDocumentedNode.WithStatus
- Returns:
- status of this node which represents the argument of the YANG
status
substatement
-
getQName
Description copied from interface:SchemaNode
Returns QName of the instance of the typeSchemaNode
.- Specified by:
getQName
in interfaceSchemaNode
- Returns:
- QName with the name of the schema node
-
isAugmenting
Deprecated.Description copied from interface:CopyableNode
Returnstrue
if this node was added by augmentation, otherwise returnsfalse
.- Specified by:
isAugmenting
in interfaceCopyableNode
- Returns:
true
if this node was added by augmentation, otherwise returnsfalse
-
isAddedByUses
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:AddedByUsesAware
Returnstrue
if this node was added by uses statement, otherwise returnsfalse
.- Specified by:
isAddedByUses
in interfaceAddedByUsesAware
- Returns:
true
if this node was added by uses statement, otherwise returnsfalse
-
effectiveConfig
Description copied from interface:DataSchemaNode
Return the effective value ofconfig
substatement, if applicable.- Specified by:
effectiveConfig
in interfaceDataSchemaNode
- Returns:
- Effective
config
value, orOptional.empty()
not applicable.
-
getActions
Description copied from interface:ActionNodeContainer
Return the set of actions.- Specified by:
getActions
in interfaceActionNodeContainer
- Returns:
- set of action nodes
-
getNotifications
Description copied from interface:NotificationNodeContainer
Return the set of notifications in this container, keyed by QName. RFC7950 specifies thatAugmentationSchemaNode
s,GroupingDefinition
s,ListSchemaNode
s andContainerSchemaNode
s can also containNotificationDefinition
s.- Specified by:
getNotifications
in interfaceNotificationNodeContainer
- Returns:
- set of notification nodes
-
getUses
Description copied from interface:DataNodeContainer
Returns grouping nodes used ny this container.- Specified by:
getUses
in interfaceDataNodeContainer
- Returns:
- Set of all uses nodes defined within this DataNodeContainer
-
getMustConstraints
Description copied from interface:MustConstraintAware
Specifies the rules which the node which containsmust
YANG substatement has to match.- Specified by:
getMustConstraints
in interfaceMustConstraintAware
- Returns:
- collection of
MustDefinition
(XPath) instances which represents the concrete data constraints
-
getWhenCondition
Description copied from interface:WhenConditionAware
Returns when statement.If when condition is present node defined by the parent data definition statement is only valid when the returned XPath expression conceptually evaluates to "true" for a particular instance, then the node defined by the parent data definition statement is valid; otherwise, it is not.
- Specified by:
getWhenCondition
in interfaceWhenConditionAware
- Returns:
- XPath condition
-