org.ucl.xpath.ast
Class SingleType

java.lang.Object
  extended byorg.ucl.xpath.ast.XPathNode
      extended byorg.ucl.xpath.ast.SingleType

public class SingleType
extends XPathNode

Support for Single types.


Constructor Summary
SingleType(QName type)
          Default Constructor for SingleType.
SingleType(QName type, boolean qmark)
          Constructor for SingleType.
 
Method Summary
 java.lang.Object accept(XPathVisitor v)
          Support for Visitor interface.
 boolean qmark()
          Set optional type.
 QName type()
          Support for QName interface.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SingleType

public SingleType(QName type,
                  boolean qmark)
Constructor for SingleType.

Parameters:
type - QName type.
qmark - optional type? (true/false).

SingleType

public SingleType(QName type)
Default Constructor for SingleType.

Method Detail

accept

public java.lang.Object accept(XPathVisitor v)
Support for Visitor interface.

Specified by:
accept in class XPathNode
Returns:
Result of Visitor operation.

qmark

public boolean qmark()
Set optional type.

Returns:
optional type value.

type

public QName type()
Support for QName interface.

Returns:
Result of QName operation.