public abstract class SchemaNodeIdentifier extends Object implements Immutable
Modifier and Type | Class and Description |
---|---|
static class |
SchemaNodeIdentifier.Absolute
An absolute schema node identifier.
|
static class |
SchemaNodeIdentifier.Relative
A relative schema node identifier.
|
Modifier and Type | Field and Description |
---|---|
static SchemaNodeIdentifier.Absolute |
ROOT
Shared instance of the conceptual root schema node.
|
static SchemaNodeIdentifier.Relative |
SAME
Shared instance of the "same" relative schema node.
|
Modifier and Type | Method and Description |
---|---|
protected com.google.common.base.MoreObjects.ToStringHelper |
addToStringAttributes(com.google.common.base.MoreObjects.ToStringHelper toStringHelper) |
SchemaPath |
asSchemaPath()
Create the
SchemaPath equivalent of this identifier. |
static SchemaNodeIdentifier |
create(boolean absolute,
QName... path)
Constructs new instance of this class with the concrete path.
|
static SchemaNodeIdentifier |
create(Iterable<QName> path,
boolean absolute)
Constructs new instance of this class with the concrete path.
|
SchemaNodeIdentifier |
createChild(Iterable<QName> relative)
Create a child path based on concatenation of this path and a relative path.
|
SchemaNodeIdentifier |
createChild(QName... elements)
Create a child path based on concatenation of this path and additional
path elements.
|
abstract SchemaNodeIdentifier |
createChild(QName element)
Create a child path based on concatenation of this path and an additional path element.
|
SchemaNodeIdentifier |
createChild(SchemaNodeIdentifier relative)
Create a child path based on concatenation of this path and a relative path.
|
boolean |
equals(Object obj) |
QName |
getLastComponent()
Get the last component of this path.
|
SchemaNodeIdentifier |
getParent()
Returns the immediate parent SchemaPath.
|
Iterable<QName> |
getPathFromRoot()
Returns the list of nodes which need to be traversed to get from the
starting point (root for absolute SchemaPaths) to the node represented
by this object.
|
Iterable<QName> |
getPathTowardsRoot()
Returns the list of nodes which need to be traversed to get from this
node to the starting point (root for absolute SchemaPaths).
|
int |
hashCode() |
abstract boolean |
isAbsolute()
Describes whether schema node identifier is|isn't absolute.
|
String |
toString() |
public static final SchemaNodeIdentifier.Absolute ROOT
public static final SchemaNodeIdentifier.Relative SAME
public static SchemaNodeIdentifier create(Iterable<QName> path, boolean absolute)
path
- list of QName instances which specifies exact path to the
module nodeabsolute
- boolean value which specifies if the path is absolute or
relativepublic static SchemaNodeIdentifier create(boolean absolute, QName... path)
absolute
- boolean value which specifies if the path is absolute or
relativepath
- one or more QName instances which specifies exact path to the
module nodepublic SchemaNodeIdentifier createChild(Iterable<QName> relative)
relative
- Relative pathpublic SchemaNodeIdentifier createChild(SchemaNodeIdentifier relative)
relative
- Relative SchemaPathpublic abstract SchemaNodeIdentifier createChild(QName element)
element
- Next SchemaPath elementpublic SchemaNodeIdentifier createChild(QName... elements)
elements
- Relative SchemaPath elementspublic Iterable<QName> getPathFromRoot()
qname
instances which represents
path from the root to the schema node.public Iterable<QName> getPathTowardsRoot()
qname
instances which represents
path from the schema node towards the root.public SchemaNodeIdentifier getParent()
public final QName getLastComponent()
public final SchemaPath asSchemaPath()
SchemaPath
equivalent of this identifier.public abstract boolean isAbsolute()
true
if schema path is
absolute.protected com.google.common.base.MoreObjects.ToStringHelper addToStringAttributes(com.google.common.base.MoreObjects.ToStringHelper toStringHelper)
Copyright © 2019 OpenDaylight. All rights reserved.