@Beta public class OperationAsContainer extends com.google.common.collect.ForwardingObject implements ContainerSchemaNode, OperationDefinition
DocumentedNode.WithStatus| Modifier and Type | Method and Description |
|---|---|
protected OperationDefinition |
delegate() |
Optional<DataSchemaNode> |
findDataChildByName(QName name)
Returns the child node corresponding to the specified name.
|
Set<ActionDefinition> |
getActions()
Return the set of actions.
|
Set<AugmentationSchemaNode> |
getAvailableAugmentations()
Returns augmentations targeting this element.
|
Collection<DataSchemaNode> |
getChildNodes()
Returns set of all child nodes defined within this DataNodeContainer.
|
Optional<String> |
getDescription()
Returns the value of the argument of YANG
description keyword. |
Set<GroupingDefinition> |
getGroupings()
Returns set of all groupings defined within this DataNodeContainer.
|
ContainerSchemaNode |
getInput()
Returns definition of input parameters for this operation.
|
Collection<MustDefinition> |
getMustConstraints()
Specifies the rules which the node which contains
must YANG substatement has to match. |
Set<NotificationDefinition> |
getNotifications()
Return the set of notifications in this container, keyed by QName.
|
ContainerSchemaNode |
getOutput()
Returns definition of output parameters for this operation.
|
SchemaPath |
getPath()
Returns the schema path of the instance of the type
SchemaNode. |
QName |
getQName()
Returns QName of the instance of the type
SchemaNode. |
Optional<String> |
getReference()
Returns the value of the argument of YANG
reference keyword. |
Status |
getStatus()
Returns status of the instance of the type
SchemaNode. |
Set<TypeDefinition<?>> |
getTypeDefinitions()
Returns set of all newly defined types within this DataNodeContainer.
|
Set<UsesNode> |
getUses()
Returns grouping nodes used ny this container.
|
Optional<RevisionAwareXPath> |
getWhenCondition()
Returns when statement.
|
boolean |
isAddedByUses()
Deprecated.
|
boolean |
isAugmenting()
Deprecated.
|
boolean |
isConfiguration()
Returns
true if the data represents configuration data,
otherwise returns false. |
boolean |
isPresenceContainer()
Returns true if this container is marked as presence.
|
static OperationAsContainer |
of(OperationDefinition delegate) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindDataTreeChild, findDataTreeChild, findDataTreeChild, getDataChildByNamegetUnknownSchemaNodespublic static OperationAsContainer of(OperationDefinition delegate)
protected final OperationDefinition delegate()
delegate in class com.google.common.collect.ForwardingObjectpublic final Optional<String> getDescription()
DocumentedNodedescription keyword.getDescription in interface DocumentedNodepublic final Optional<String> getReference()
DocumentedNodereference keyword.getReference in interface DocumentedNodepublic final Set<TypeDefinition<?>> getTypeDefinitions()
DataNodeContainergetTypeDefinitions in interface DataNodeContainergetTypeDefinitions in interface OperationDefinitionpublic final Set<GroupingDefinition> getGroupings()
DataNodeContainergetGroupings in interface DataNodeContainergetGroupings in interface OperationDefinitionpublic final Status getStatus()
DocumentedNode.WithStatusSchemaNode.getStatus in interface DocumentedNode.WithStatusstatus substatementpublic final ContainerSchemaNode getInput()
OperationDefinitiongetInput in interface OperationDefinitionpublic final ContainerSchemaNode getOutput()
OperationDefinitiongetOutput in interface OperationDefinitionpublic final QName getQName()
SchemaNodeSchemaNode.getQName in interface SchemaNodepublic final SchemaPath getPath()
SchemaNodeSchemaNode.getPath in interface SchemaNodepublic final Optional<DataSchemaNode> findDataChildByName(QName name)
DataNodeContainer
Note that the nodes searched are NOT data nodes, but rather DataSchemaNodes,
hence ChoiceSchemaNode and CaseSchemaNode are returned instead of their matching children.
findDataChildByName in interface DataNodeContainername - QName of childpublic Set<UsesNode> getUses()
DataNodeContainergetUses in interface DataNodeContainerpublic final Set<AugmentationSchemaNode> getAvailableAugmentations()
AugmentationTargetgetAvailableAugmentations in interface AugmentationTargetpublic final boolean isPresenceContainer()
ContainerSchemaNodeisPresenceContainer in interface ContainerSchemaNodepublic final Collection<DataSchemaNode> getChildNodes()
DataNodeContainer
Note that the nodes returned are NOT data nodes, but rather DataSchemaNodes,
hence ChoiceSchemaNode and CaseSchemaNode are present instead of their children. This
is consistent with schema tree.
getChildNodes in interface DataNodeContainer@Deprecated public final boolean isAugmenting()
CopyableNodetrue if this node was added by augmentation,
otherwise returns false.isAugmenting in interface CopyableNodetrue if this node was added by augmentation,
otherwise returns false@Deprecated public final boolean isAddedByUses()
AddedByUsesAwaretrue if this node was added by uses statement,
otherwise returns false.isAddedByUses in interface AddedByUsesAwaretrue if this node was added by uses statement,
otherwise returns falsepublic final boolean isConfiguration()
DataSchemaNodetrue if the data represents configuration data,
otherwise returns false.isConfiguration in interface DataSchemaNodetrue if the data represents configuration data,
otherwise returns falsepublic final Set<ActionDefinition> getActions()
ActionNodeContainergetActions in interface ActionNodeContainerpublic final Set<NotificationDefinition> getNotifications()
NotificationNodeContainerAugmentationSchemaNodes, GroupingDefinitions, ListSchemaNodes and
ContainerSchemaNodes can also contain NotificationDefinitions.getNotifications in interface NotificationNodeContainerpublic final Collection<MustDefinition> getMustConstraints()
MustConstraintAwaremust YANG substatement has to match.getMustConstraints in interface MustConstraintAwareMustDefinition (XPath) instances which represents the concrete data
constraintspublic final Optional<RevisionAwareXPath> getWhenCondition()
WhenConditionAwareIf 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.
getWhenCondition in interface WhenConditionAwareCopyright © 2019 OpenDaylight. All rights reserved.