public abstract class SchemaPath extends Object implements Immutable
Modifier and Type | Field and Description |
---|---|
static @NonNull SchemaPath |
ROOT
Shared instance of the conceptual root schema node.
|
static @NonNull SchemaPath |
SAME
Shared instance of the "same" relative schema node.
|
Modifier and Type | Method and Description |
---|---|
protected MoreObjects.ToStringHelper |
addToStringAttributes(MoreObjects.ToStringHelper toStringHelper) |
static @NonNull SchemaPath |
create(boolean absolute,
QName... path)
Constructs new instance of this class with the concrete path.
|
static @NonNull SchemaPath |
create(boolean absolute,
QName element)
Constructs new instance of this class with the concrete path.
|
static @NonNull SchemaPath |
create(Iterable<QName> path,
boolean absolute)
Constructs new instance of this class with the concrete path.
|
@NonNull SchemaPath |
createChild(Iterable<QName> relative)
Create a child path based on concatenation of this path and a relative path.
|
@NonNull SchemaPath |
createChild(QName... elements)
Create a child path based on concatenation of this path and additional
path elements.
|
abstract @NonNull SchemaPath |
createChild(QName element)
Create a child path based on concatenation of this path and an additional path element.
|
@NonNull SchemaPath |
createChild(SchemaPath 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.
|
SchemaPath |
getParent()
Returns the immediate parent SchemaPath.
|
List<QName> |
getPath()
Deprecated.
Use
getPathFromRoot() instead. |
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 path is|isn't absolute.
|
String |
toString() |
public static final @NonNull SchemaPath ROOT
public static final @NonNull SchemaPath SAME
@Deprecated public List<QName> getPath()
getPathFromRoot()
instead.QName
instances which represents complete
path to schema nodepublic static @NonNull SchemaPath 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 @NonNull SchemaPath create(boolean absolute, QName element)
absolute
- boolean value which specifies if the path is absolute or
relativeelement
- a single QName which specifies exact path to the
module nodepublic static @NonNull SchemaPath 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 @NonNull SchemaPath createChild(Iterable<QName> relative)
relative
- Relative pathpublic @NonNull SchemaPath createChild(SchemaPath relative)
relative
- Relative SchemaPathpublic abstract @NonNull SchemaPath createChild(QName element)
element
- Relative SchemaPath elementspublic @NonNull SchemaPath 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 SchemaPath getParent()
public final QName getLastComponent()
public abstract boolean isAbsolute()
true
if schema path is
absolute.protected MoreObjects.ToStringHelper addToStringAttributes(MoreObjects.ToStringHelper toStringHelper)
Copyright © 2020 OpenDaylight. All rights reserved.