public interface DataNodeContainer
Modifier and Type | Method and Description |
---|---|
Optional<DataSchemaNode> |
findDataChildByName(QName name)
Returns the child node corresponding to the specified name.
|
default Optional<DataSchemaNode> |
findDataChildByName(QName first,
QName... others)
Returns the child node corresponding to the specified name.
|
default Optional<DataSchemaNode> |
findDataTreeChild(Iterable<QName> path)
Returns a
data node identified by a series of QNames. |
default Optional<DataSchemaNode> |
findDataTreeChild(QName... path)
Returns a
data node identified by a series of QNames. |
default Optional<DataSchemaNode> |
findDataTreeChild(QName name)
Returns a
data node identified by a QName. |
Collection<DataSchemaNode> |
getChildNodes()
Returns set of all child nodes defined within this DataNodeContainer.
|
default @Nullable DataSchemaNode |
getDataChildByName(QName name)
Deprecated.
Use
findDataChildByName(QName) instead. |
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.
|
Set<TypeDefinition<?>> getTypeDefinitions()
Collection<DataSchemaNode> getChildNodes()
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
.
Set<GroupingDefinition> getGroupings()
@Deprecated default @Nullable DataSchemaNode getDataChildByName(QName name)
findDataChildByName(QName)
instead.
Note that the nodes searched are NOT data nodes
, but rather DataSchemaNode
s,
hence ChoiceSchemaNode
and CaseSchemaNode
are returned instead of their matching children. This
is consistent with schema tree
.
name
- QName of childNullPointerException
- if name
is nullOptional<DataSchemaNode> findDataChildByName(QName name)
Note that the nodes searched are NOT data nodes
, but rather DataSchemaNode
s,
hence ChoiceSchemaNode
and CaseSchemaNode
are returned instead of their matching children.
name
- QName of childNullPointerException
- if name
is nulldefault Optional<DataSchemaNode> findDataChildByName(QName first, QName... others)
Note that the nodes searched are NOT data nodes
, but rather DataSchemaNode
s,
hence ChoiceSchemaNode
and CaseSchemaNode
are returned instead of their matching children.
first
- QName of first childothers
- QNames of subsequent childrenNullPointerException
- if any argument is nullSet<UsesNode> getUses()
@Beta default Optional<DataSchemaNode> findDataTreeChild(QName name)
data node
identified by a QName. This method is distinct from
findDataChildByName(QName)
in that it skips over ChoiceSchemaNode
s and CaseSchemaNode
s,
hence mirroring layout of the data tree
, not schema tree
.name
- QName identifier of the data nodedata node
, empty otherwiseNullPointerException
- if name
is null@Beta default Optional<DataSchemaNode> findDataTreeChild(QName... path)
data node
identified by a series of QNames. This is equivalent to incrementally calling
findDataTreeChild(QName)
.path
- Series of QNames towards identifying the requested data nodedata node
, empty otherwiseIllegalArgumentException
- if path
is determined to go beyond a not-container-nor-list node.NoSuchElementException
- if path
is emptyNullPointerException
- if path
is null or contains a null@Beta default Optional<DataSchemaNode> findDataTreeChild(Iterable<QName> path)
data node
identified by a series of QNames. This is equivalent to incrementally calling
findDataTreeChild(QName)
.path
- Series of QNames towards identifying the requested data nodedata node
, empty otherwiseIllegalArgumentException
- if path
is determined to go beyond a not-container-nor-list node.NoSuchElementException
- if path
is emptyNullPointerException
- if path
is null or contains a nullCopyright © 2020 OpenDaylight. All rights reserved.