org.xcmis.search.model.constraint
Class ChildNode

java.lang.Object
  extended by org.xcmis.search.model.constraint.Constraint
      extended by org.xcmis.search.model.constraint.ChildNode
All Implemented Interfaces:
Serializable, QueryElement

public class ChildNode
extends Constraint

A constraint requiring that the selected node is a child of the node reachable by the supplied absolute path.

See Also:
Serialized Form

Constructor Summary
ChildNode(SelectorName selectorName, String parentPath)
          Create a constraint requiring that the node identified by the selector is a child of the node reachable by the supplied absolute path.
 
Method Summary
 void accept(QueryObjectModelVisitor visitor)
          Accepts a visitor and calls the appropriate visit method depending on the type of this QOM node.
 boolean equals(Object obj)
          
 String getParentPath()
          Get the path of the parent.
 SelectorName getSelectorName()
          Get the name of the selector representing the child
 int hashCode()
          
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ChildNode

public ChildNode(SelectorName selectorName,
                 String parentPath)
Create a constraint requiring that the node identified by the selector is a child of the node reachable by the supplied absolute path.

Parameters:
selectorName - the name of the selector
parentPath - the absolute path to the parent
Method Detail

accept

public void accept(QueryObjectModelVisitor visitor)
            throws VisitException
Description copied from interface: QueryElement
Accepts a visitor and calls the appropriate visit method depending on the type of this QOM node.

Parameters:
visitor - the visitor.
Throws:
VisitException
See Also:
QueryElement.accept(org.xcmis.search.QueryObjectModelVisitor)

equals

public boolean equals(Object obj)

Overrides:
equals in class Object
See Also:
Object.equals(java.lang.Object)

getParentPath

public final String getParentPath()
Get the path of the parent.

Returns:
the parent path; never null

getSelectorName

public final SelectorName getSelectorName()
Get the name of the selector representing the child

Returns:
the selector name; never null

hashCode

public int hashCode()

Overrides:
hashCode in class Object
See Also:
Object.hashCode()

toString

public String toString()

Overrides:
toString in class Object
See Also:
Object.toString()


Copyright © 2010 eXo Platform SAS. All Rights Reserved.