public abstract class PathSegment extends Object
Modifier and Type | Class and Description |
---|---|
static class |
PathSegment.ArraySegment |
static class |
PathSegment.NameSegment |
Modifier and Type | Field and Description |
---|---|
protected Object |
originalValue
Holds original value associated with the path segment.
|
protected TypeProtos.MajorType |
originalValueType
Indicates the type of original value.
|
Constructor and Description |
---|
PathSegment(PathSegment child,
Object originalValue,
TypeProtos.MajorType originalValueType) |
Modifier and Type | Method and Description |
---|---|
abstract PathSegment |
clone() |
abstract PathSegment |
cloneWithNewChild(PathSegment newChild)
Makes copy of segment chain with
newChild added at the end. |
boolean |
contains(PathSegment otherSeg)
Check if another path is contained in this one.
|
boolean |
equals(Object obj) |
PathSegment.ArraySegment |
getArraySegment() |
PathSegment |
getChild() |
PathSegment.NameSegment |
getNameSegment() |
Object |
getOriginalValue() |
TypeProtos.MajorType |
getOriginalValueType() |
int |
hashCode() |
abstract boolean |
isArray() |
boolean |
isLastPath() |
abstract boolean |
isNamed() |
protected abstract boolean |
segmentEquals(PathSegment other) |
protected abstract int |
segmentHashCode() |
protected final Object originalValue
protected final TypeProtos.MajorType originalValueType
originalValue
public PathSegment(PathSegment child, Object originalValue, TypeProtos.MajorType originalValueType)
public abstract PathSegment cloneWithNewChild(PathSegment newChild)
newChild
added at the end.newChild
- new child to addpublic abstract PathSegment clone()
public Object getOriginalValue()
public TypeProtos.MajorType getOriginalValueType()
public PathSegment.NameSegment getNameSegment()
public PathSegment.ArraySegment getArraySegment()
public abstract boolean isArray()
public abstract boolean isNamed()
public boolean isLastPath()
public PathSegment getChild()
protected abstract int segmentHashCode()
protected abstract boolean segmentEquals(PathSegment other)
public boolean contains(PathSegment otherSeg)
otherSeg
- - path segment to check if it is contained below this one.Copyright © 1970 The Apache Software Foundation. All rights reserved.