org.plasma.query.dsl
Class PathNode

java.lang.Object
  extended by org.plasma.query.dsl.DomainObject
      extended by org.plasma.query.dsl.PathNode
All Implemented Interfaces:
PathProperty, Property, Term
Direct Known Subclasses:
DomainRoot

public class PathNode
extends DomainObject
implements PathProperty

A domain object which is not an end point but a single step within a path within a query graph.


Field Summary
protected  Expression expr
           
protected  boolean isRoot
           
protected  Type type
           
 
Fields inherited from class org.plasma.query.dsl.DomainObject
source, sourceProperty
 
Constructor Summary
protected PathNode(PathNode source, String sourceProperty)
           
protected PathNode(PathNode source, String sourceProperty, Expression expr)
           
protected PathNode(Type type)
           
 
Method Summary
protected  PathNode getSource()
           
protected  String getSourceProperty()
           
 Expression group(Expression source)
           
 Expression isNotNull()
          Returns a boolean expression where this property is not equal to null.
 Expression isNull()
          Returns a boolean expression where this property is equal to null.
 boolean isRoot()
           
 Wildcard wildcard()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

type

protected Type type

isRoot

protected boolean isRoot

expr

protected Expression expr
Constructor Detail

PathNode

protected PathNode(Type type)

PathNode

protected PathNode(PathNode source,
                   String sourceProperty)

PathNode

protected PathNode(PathNode source,
                   String sourceProperty,
                   Expression expr)
Method Detail

isRoot

public boolean isRoot()

getSource

protected PathNode getSource()

getSourceProperty

protected String getSourceProperty()

wildcard

public Wildcard wildcard()

group

public Expression group(Expression source)

isNotNull

public Expression isNotNull()
Description copied from interface: PathProperty
Returns a boolean expression where this property is not equal to null.

Specified by:
isNotNull in interface PathProperty
Returns:
the boolean expression

isNull

public Expression isNull()
Description copied from interface: PathProperty
Returns a boolean expression where this property is equal to null.

Specified by:
isNull in interface PathProperty
Returns:
the boolean expression


Copyright © 2013. All rights reserved.