@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, wait
findDataTreeChild, findDataTreeChild, findDataTreeChild, getDataChildByName
getUnknownSchemaNodes
public static OperationAsContainer of(OperationDefinition delegate)
protected final OperationDefinition delegate()
delegate
in class com.google.common.collect.ForwardingObject
public final Optional<String> getDescription()
DocumentedNode
description
keyword.getDescription
in interface DocumentedNode
public final Optional<String> getReference()
DocumentedNode
reference
keyword.getReference
in interface DocumentedNode
public final Set<TypeDefinition<?>> getTypeDefinitions()
DataNodeContainer
getTypeDefinitions
in interface DataNodeContainer
getTypeDefinitions
in interface OperationDefinition
public final Set<GroupingDefinition> getGroupings()
DataNodeContainer
getGroupings
in interface DataNodeContainer
getGroupings
in interface OperationDefinition
public final Status getStatus()
DocumentedNode.WithStatus
SchemaNode
.getStatus
in interface DocumentedNode.WithStatus
status
substatementpublic final ContainerSchemaNode getInput()
OperationDefinition
getInput
in interface OperationDefinition
public final ContainerSchemaNode getOutput()
OperationDefinition
getOutput
in interface OperationDefinition
public final QName getQName()
SchemaNode
SchemaNode
.getQName
in interface SchemaNode
public final SchemaPath getPath()
SchemaNode
SchemaNode
.getPath
in interface SchemaNode
public final Optional<DataSchemaNode> findDataChildByName(QName name)
DataNodeContainer
Note that the nodes searched are NOT data nodes
, but rather DataSchemaNode
s,
hence ChoiceSchemaNode
and CaseSchemaNode
are returned instead of their matching children.
findDataChildByName
in interface DataNodeContainer
name
- QName of childpublic Set<UsesNode> getUses()
DataNodeContainer
getUses
in interface DataNodeContainer
public final Set<AugmentationSchemaNode> getAvailableAugmentations()
AugmentationTarget
getAvailableAugmentations
in interface AugmentationTarget
public final boolean isPresenceContainer()
ContainerSchemaNode
isPresenceContainer
in interface ContainerSchemaNode
public final Collection<DataSchemaNode> getChildNodes()
DataNodeContainer
Note that the nodes returned are NOT data nodes
, but rather DataSchemaNode
s,
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()
CopyableNode
true
if this node was added by augmentation,
otherwise returns false
.isAugmenting
in interface CopyableNode
true
if this node was added by augmentation,
otherwise returns false
@Deprecated public final boolean isAddedByUses()
AddedByUsesAware
true
if this node was added by uses statement,
otherwise returns false
.isAddedByUses
in interface AddedByUsesAware
true
if this node was added by uses statement,
otherwise returns false
public final boolean isConfiguration()
DataSchemaNode
true
if the data represents configuration data,
otherwise returns false
.isConfiguration
in interface DataSchemaNode
true
if the data represents configuration data,
otherwise returns false
public final Set<ActionDefinition> getActions()
ActionNodeContainer
getActions
in interface ActionNodeContainer
public final Set<NotificationDefinition> getNotifications()
NotificationNodeContainer
AugmentationSchemaNode
s, GroupingDefinition
s, ListSchemaNode
s and
ContainerSchemaNode
s can also contain NotificationDefinition
s.getNotifications
in interface NotificationNodeContainer
public final Collection<MustDefinition> getMustConstraints()
MustConstraintAware
must
YANG substatement has to match.getMustConstraints
in interface MustConstraintAware
MustDefinition
(XPath) instances which represents the concrete data
constraintspublic final Optional<RevisionAwareXPath> getWhenCondition()
WhenConditionAware
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.
getWhenCondition
in interface WhenConditionAware
Copyright © 2019 OpenDaylight. All rights reserved.