public abstract class LeafRefPath extends Object implements Immutable
Modifier and Type | Field and Description |
---|---|
static LeafRefPath |
ROOT
Shared instance of the conceptual root schema node.
|
static LeafRefPath |
SAME
Shared instance of the "same" relative schema node.
|
Modifier | Constructor and Description |
---|---|
protected |
LeafRefPath(LeafRefPath parent,
QNameWithPredicate qname) |
Modifier and Type | Method and Description |
---|---|
static LeafRefPath |
create(boolean absolute,
QNameWithPredicate... path)
Constructs new instance of this class with the concrete path.
|
static LeafRefPath |
create(Iterable<QNameWithPredicate> path,
boolean absolute)
Constructs new instance of this class with the concrete path.
|
LeafRefPath |
createChild(Iterable<QNameWithPredicate> relative)
Create a child path based on concatenation of this path and a relative path.
|
LeafRefPath |
createChild(LeafRefPath relative)
Create a child path based on concatenation of this path and a relative path.
|
LeafRefPath |
createChild(QNameWithPredicate... elements)
Create a child path based on concatenation of this path and additional path elements.
|
protected abstract LeafRefPath |
createInstance(LeafRefPath newParent,
QNameWithPredicate newQname)
Create a new instance.
|
boolean |
equals(Object obj) |
QNameWithPredicate |
getLastComponent()
Get the last component of this path.
|
LeafRefPath |
getParent()
Returns the immediate parent LeafRefPath.
|
Iterable<QNameWithPredicate> |
getPathFromRoot()
Returns the list of nodes which need to be traversed to get from the starting point (root for absolute
LeafRefPaths) to the node represented by this object.
|
Iterable<QNameWithPredicate> |
getPathTowardsRoot()
Returns the list of nodes which need to be traversed to get from this node to the starting point (root
for absolute LeafRefPaths).
|
int |
hashCode() |
abstract boolean |
isAbsolute()
Describes whether schema path is|isn't absolute.
|
String |
toString() |
public static final LeafRefPath ROOT
public static final LeafRefPath SAME
protected LeafRefPath(LeafRefPath parent, QNameWithPredicate qname)
public static LeafRefPath create(Iterable<QNameWithPredicate> path, boolean absolute)
path
- list of QNameWithPredicate instances which specifies exact path to the module nodeabsolute
- boolean value which specifies if the path is absolute or relativepublic static LeafRefPath create(boolean absolute, QNameWithPredicate... path)
absolute
- boolean value which specifies if the path is absolute or relativepath
- one or more QNameWithPredicate instances which specifies exact path to the module nodeprotected abstract LeafRefPath createInstance(LeafRefPath newParent, QNameWithPredicate newQname)
newParent
- Parent LeafRefPathnewQname
- next path elementpublic LeafRefPath createChild(Iterable<QNameWithPredicate> relative)
relative
- Relative pathpublic LeafRefPath createChild(LeafRefPath relative)
relative
- Relative LeafRefPathpublic LeafRefPath createChild(QNameWithPredicate... elements)
elements
- Relative LeafRefPath elementspublic Iterable<QNameWithPredicate> getPathFromRoot()
qname
instances which represents path from the root to the schema node.public Iterable<QNameWithPredicate> getPathTowardsRoot()
qname
instances which represents path from the schema node towards the root.public LeafRefPath getParent()
public final QNameWithPredicate getLastComponent()
public abstract boolean isAbsolute()
true
if schema path is absolute.Copyright © 2019 OpenDaylight. All rights reserved.