public final class EffectiveAugmentationSchema extends Object implements AugmentationSchemaNode
DocumentedNode.WithStatus
Constructor and Description |
---|
EffectiveAugmentationSchema(AugmentationSchemaNode augmentSchema,
Set<DataSchemaNode> realChildSchemas) |
Modifier and Type | Method and Description |
---|---|
static AugmentationSchemaNode |
create(AugmentationSchemaNode schema,
DataNodeContainer parent)
Returns an AugmentationSchemaNode as effective in a parent node.
|
Optional<DataSchemaNode> |
findDataChildByName(QName name)
Returns the child node corresponding to the specified name.
|
Set<ActionDefinition> |
getActions()
Return the set of actions.
|
Set<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.
|
Set<NotificationDefinition> |
getNotifications()
Return the set of notifications in this container, keyed by QName.
|
Optional<AugmentationSchemaNode> |
getOriginalDefinition()
Returns Augmentation Definition from which this augmentation is derived
if augmentation was added transitively via augmented uses.
|
Optional<String> |
getReference()
Returns the value of the argument of YANG
reference keyword. |
Status |
getStatus()
Returns status of the instance of the type
SchemaNode . |
SchemaPath |
getTargetPath()
Returns augmentation schema path.
|
Set<TypeDefinition<?>> |
getTypeDefinitions()
Returns set of all newly defined types within this DataNodeContainer.
|
List<UnknownSchemaNode> |
getUnknownSchemaNodes()
Returns unknown schema nodes which belongs to this instance.
|
Set<UsesNode> |
getUses()
Returns grouping nodes used ny this container.
|
Optional<RevisionAwareXPath> |
getWhenCondition()
Returns when statement.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
findDataTreeChild, findDataTreeChild, findDataTreeChild, getDataChildByName
public EffectiveAugmentationSchema(AugmentationSchemaNode augmentSchema, Set<DataSchemaNode> realChildSchemas)
public static AugmentationSchemaNode create(AugmentationSchemaNode schema, DataNodeContainer parent)
schema
- Augmentation schemaparent
- Parent schemaNullPointerException
- if any of the arguments is nullpublic 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
public Optional<String> getDescription()
DocumentedNode
description
keyword.getDescription
in interface DocumentedNode
public Optional<String> getReference()
DocumentedNode
reference
keyword.getReference
in interface DocumentedNode
public Status getStatus()
DocumentedNode.WithStatus
SchemaNode
.getStatus
in interface DocumentedNode.WithStatus
status
substatementpublic SchemaPath getTargetPath()
AugmentationSchemaNode
getTargetPath
in interface AugmentationSchemaNode
public List<UnknownSchemaNode> getUnknownSchemaNodes()
DocumentedNode
getUnknownSchemaNodes
in interface DocumentedNode
public Set<TypeDefinition<?>> getTypeDefinitions()
DataNodeContainer
getTypeDefinitions
in interface DataNodeContainer
public Set<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
public Set<GroupingDefinition> getGroupings()
DataNodeContainer
getGroupings
in interface DataNodeContainer
public 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 Optional<AugmentationSchemaNode> getOriginalDefinition()
AugmentationSchemaNode
getOriginalDefinition
in interface AugmentationSchemaNode
public Set<ActionDefinition> getActions()
ActionNodeContainer
getActions
in interface ActionNodeContainer
public Set<NotificationDefinition> getNotifications()
NotificationNodeContainer
AugmentationSchemaNode
s, GroupingDefinition
s, ListSchemaNode
s and
ContainerSchemaNode
s can also contain NotificationDefinition
s.getNotifications
in interface NotificationNodeContainer
Copyright © 2019 OpenDaylight. All rights reserved.