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 |
ROOT
Shared instance of the conceptual root schema node.
|
static SchemaNodeIdentifier |
SAME
Shared instance of the "same" relative schema node.
|
Modifier | Constructor and Description |
---|---|
protected |
SchemaNodeIdentifier(SchemaNodeIdentifier parent,
QName qname) |
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.
|
SchemaNodeIdentifier |
createChild(SchemaNodeIdentifier relative)
Create a child path based on concatenation of this path and a relative path.
|
protected abstract SchemaNodeIdentifier |
createInstance(SchemaNodeIdentifier parent,
QName qname)
Create a new instance.
|
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 ROOT
public static final SchemaNodeIdentifier SAME
protected SchemaNodeIdentifier(SchemaNodeIdentifier parent, QName qname)
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 nodeprotected abstract SchemaNodeIdentifier createInstance(SchemaNodeIdentifier parent, QName qname)
parent
- Parent schema node identifierqname
- next path elementpublic SchemaNodeIdentifier createChild(Iterable<QName> relative)
relative
- Relative pathpublic SchemaNodeIdentifier createChild(SchemaNodeIdentifier relative)
relative
- Relative SchemaPathpublic 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 © 2018 OpenDaylight. All rights reserved.