|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.nodal.nav.PathOp
Nested Class Summary | |
static class |
PathOp.Factory
An abstract Factory class for PathOp instances. |
Field Summary | |
protected static java.lang.String[] |
NO_ARGS
|
Constructor Summary | |
PathOp()
|
Method Summary | |
Path |
applyTo(Path path)
Apply this PathOp to the given Path. |
java.lang.Object |
arg(int i)
Default implementation of i-th argument. |
abstract Getter |
bindFrom(Path pg)
Apply this PathOp to the binding of a bound Path. |
java.lang.String |
encoded()
Default implementation of encoded for PathOp-derived classes. |
protected Path |
findDir(Path path)
Find the closest directory containing this Path. |
boolean |
isAbsolute()
In general, a PathOp is relative. |
abstract boolean |
isDocumentOp()
Is this PathOperator a document-level operator? |
abstract boolean |
isFragmentOp()
Is this PathOperator a fragment-level operator? |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.nodal.nav.PathOperator |
args, functionName |
Field Detail |
protected static java.lang.String[] NO_ARGS
Constructor Detail |
public PathOp()
Method Detail |
public abstract boolean isDocumentOp()
PathOperator
All Path operators either select a Document or a location within a Document. Those that select Documents are referred to as "document" operators.
PathOperators may work on both levels (e.g. DerefOp)
isDocumentOp
in interface PathOperator
public abstract boolean isFragmentOp()
PathOperator
All Path operators either select a Document or a location within a Document. Those that operate inside Documents are referred to as "fragment" operators.
PathOperators may work on both levels (e.g. DerefOp)
isFragmentOp
in interface PathOperator
public boolean isAbsolute()
isAbsolute
in interface PathOperator
public Path applyTo(Path path) throws Path.Failure
applyTo
in interface PathOperator
Path.Failure
public abstract Getter bindFrom(Path pg) throws Path.Failure
bindFrom
in interface PathOperator
pg
- the parent Path for this operator
Path.Failure
- if there is a type mismatch when accessing the
Getterpublic java.lang.String encoded()
encoded
in interface PathOperator
protected Path findDir(Path path)
path
- the Path to search in
public java.lang.Object arg(int i)
arg
in interface PathOperator
i
- the index of the argument requested
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |