@Beta public final class SingleChildDataNodeContainer extends Object implements DataNodeContainer
Constructor and Description |
---|
SingleChildDataNodeContainer(DataSchemaNode child) |
Modifier and Type | Method and Description |
---|---|
Optional<DataSchemaNode> |
findDataChildByName(QName name)
Returns the child node corresponding to the specified name.
|
Collection<DataSchemaNode> |
getChildNodes()
Returns set of all child nodes defined within this DataNodeContainer.
|
Set<GroupingDefinition> |
getGroupings()
Returns set of all groupings defined within this DataNodeContainer.
|
Set<TypeDefinition<?>> |
getTypeDefinitions()
Returns set of all newly defined types within this DataNodeContainer.
|
Set<UsesNode> |
getUses()
Returns grouping nodes used ny this container.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
findDataChildByName, findDataTreeChild, findDataTreeChild, findDataTreeChild, getDataChildByName
public SingleChildDataNodeContainer(DataSchemaNode child)
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 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
public Set<TypeDefinition<?>> getTypeDefinitions()
DataNodeContainer
getTypeDefinitions
in interface DataNodeContainer
public Set<GroupingDefinition> getGroupings()
DataNodeContainer
getGroupings
in interface DataNodeContainer
public Set<UsesNode> getUses()
DataNodeContainer
getUses
in interface DataNodeContainer
Copyright © 2019 OpenDaylight. All rights reserved.