org.apache.woden.types
Class QNameTokenUnion

java.lang.Object
  extended by org.apache.woden.types.QNameTokenUnion

public class QNameTokenUnion
extends java.lang.Object

This class represents the data type "Union of xs:QName and xs:Token" where the token values are #any, #none, or #other.

Author:
Dan Harvey, danharvey42@gmail.com

Field Summary
static QNameTokenUnion ANY
           
static QNameTokenUnion NONE
           
static QNameTokenUnion OTHER
           
 
Constructor Summary
QNameTokenUnion(QName qname)
          Constructs a QNameTokenUnion as a 'QName' type with the specified qname value.
 
Method Summary
 QName getQName()
          Returns the QName if it exists otherwise null.
 java.lang.String getToken()
          Returns the token value if it exists otherwise null.
 boolean isQName()
          Returns True if a QName exists, otherwise it returns False;
 boolean isToken()
          Returns True is a token value exists, otherwise it returns False.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ANY

public static final QNameTokenUnion ANY

NONE

public static final QNameTokenUnion NONE

OTHER

public static final QNameTokenUnion OTHER
Constructor Detail

QNameTokenUnion

public QNameTokenUnion(QName qname)
Constructs a QNameTokenUnion as a 'QName' type with the specified qname value. The qname parameter must not be null.

Parameters:
qname - the QName to set as its value.
Throws:
java.lang.NullPointerException - if qname is null
Method Detail

getQName

public QName getQName()
Returns the QName if it exists otherwise null.

Returns:
a QName if it exists otherwise null.

getToken

public java.lang.String getToken()
Returns the token value if it exists otherwise null.

Returns:
a String value of the token if it exists otherwise null.

isQName

public boolean isQName()
Returns True if a QName exists, otherwise it returns False;

Returns:
a boolean representing if this has a QName value.

isToken

public boolean isToken()
Returns True is a token value exists, otherwise it returns False.

Returns:
a boolean representing if this has a token value.


Copyright © 2005-2009 Apache Software Foundation. All Rights Reserved.