org.overlord.sramp.common.query.xpath.ast
Class RelationshipPath

java.lang.Object
  extended by org.overlord.sramp.common.query.xpath.ast.AbstractXPathNode
      extended by org.overlord.sramp.common.query.xpath.ast.RelationshipPath

public class RelationshipPath
extends AbstractXPathNode

Models a relationship path.

Author:
eric.wittmann@redhat.com

Constructor Summary
RelationshipPath()
          Default constructor.
RelationshipPath(String relationshipType)
          Constructor.
 
Method Summary
 void accept(XPathVisitor visitor)
          Accepts a visitor.
 String getRelationshipType()
           
 void setRelationshipType(String relationshipType)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RelationshipPath

public RelationshipPath()
Default constructor.


RelationshipPath

public RelationshipPath(String relationshipType)
Constructor.

Parameters:
relationshipOrFunction -
Method Detail

getRelationshipType

public String getRelationshipType()
Returns:
the relationshipType

setRelationshipType

public void setRelationshipType(String relationshipType)
Parameters:
relationshipType - the relationshipType to set

accept

public void accept(XPathVisitor visitor)
Description copied from class: AbstractXPathNode
Accepts a visitor.

Specified by:
accept in class AbstractXPathNode
See Also:
AbstractXPathNode.accept(org.overlord.sramp.common.query.xpath.visitors.XPathVisitor)


Copyright © 2011-2013 JBoss, a division of Red Hat. All Rights Reserved.