Package org.citydb.database.schema.path
Class AbstractNode<T extends AbstractPathElement>
- java.lang.Object
-
- org.citydb.database.schema.path.AbstractNode<T>
-
- Direct Known Subclasses:
AbstractTypeNode
,ComplexAttributeNode
,ComplexPropertyNode
,FeaturePropertyNode
,GeometryPropertyNode
,ImplicitGeometryPropertyNode
,ObjectPropertyNode
,SimpleAttributeNode
public abstract class AbstractNode<T extends AbstractPathElement> extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected AbstractNode<? extends AbstractPathElement>
child
protected AbstractNode<? extends AbstractPathElement>
parent
protected T
pathElement
protected AbstractNodePredicate
predicate
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractNode(AbstractNode<T> other)
protected
AbstractNode(T pathElement)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description AbstractNode<? extends AbstractPathElement>
child()
protected abstract AbstractNode<T>
copy()
T
getPathElement()
AbstractNodePredicate
getPredicate()
boolean
isEqualTo(AbstractNode<? extends AbstractPathElement> other, boolean includePredicates)
boolean
isSetPredicate()
protected abstract boolean
isValidChild(AbstractPathElement candidate)
protected abstract boolean
isValidPredicate(AbstractNodePredicate candidate)
AbstractNode<? extends AbstractPathElement>
parent()
protected void
setChild(AbstractNode<? extends AbstractPathElement> node)
void
setPredicate(AbstractNodePredicate predicate)
java.lang.String
toString()
void
unsetPredicate()
-
-
-
Field Detail
-
pathElement
protected final T extends AbstractPathElement pathElement
-
predicate
protected AbstractNodePredicate predicate
-
child
protected AbstractNode<? extends AbstractPathElement> child
-
parent
protected AbstractNode<? extends AbstractPathElement> parent
-
-
Constructor Detail
-
AbstractNode
protected AbstractNode(T pathElement)
-
AbstractNode
protected AbstractNode(AbstractNode<T> other)
-
-
Method Detail
-
isValidChild
protected abstract boolean isValidChild(AbstractPathElement candidate)
-
isValidPredicate
protected abstract boolean isValidPredicate(AbstractNodePredicate candidate)
-
copy
protected abstract AbstractNode<T> copy()
-
child
public final AbstractNode<? extends AbstractPathElement> child()
-
parent
public final AbstractNode<? extends AbstractPathElement> parent()
-
getPathElement
public final T getPathElement()
-
setChild
protected final void setChild(AbstractNode<? extends AbstractPathElement> node) throws InvalidSchemaPathException
- Throws:
InvalidSchemaPathException
-
setPredicate
public final void setPredicate(AbstractNodePredicate predicate) throws InvalidSchemaPathException
- Throws:
InvalidSchemaPathException
-
isSetPredicate
public boolean isSetPredicate()
-
getPredicate
public AbstractNodePredicate getPredicate()
-
unsetPredicate
public void unsetPredicate()
-
isEqualTo
public boolean isEqualTo(AbstractNode<? extends AbstractPathElement> other, boolean includePredicates)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-