org.apache.woden.types

## Class QNameTokenUnion

- java.lang.Object
- - org.apache.woden.types.QNameTokenUnion

-     public class QNameTokenUnion
      extends 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

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `static QNameTokenUnion` | `ANY`
    `static QNameTokenUnion` | `NONE`
    `static QNameTokenUnion` | `OTHER`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `QNameTokenUnion(QName qname)` Constructs a QNameTokenUnion as a 'QName' type with the specified qname value.

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `QName` | `getQName()` Returns the QName if it exists otherwise null.
    `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:
        `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 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 ? Apache Software Foundation. All Rights Reserved.