public class QNameTokenUnion extends Object
Modifier and Type | Field and Description |
---|---|
static QNameTokenUnion |
ANY |
static QNameTokenUnion |
NONE |
static QNameTokenUnion |
OTHER |
Constructor and Description |
---|
QNameTokenUnion(QName qname)
Constructs a QNameTokenUnion as a 'QName' type with the specified qname value.
|
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.
|
public static final QNameTokenUnion ANY
public static final QNameTokenUnion NONE
public static final QNameTokenUnion OTHER
public QNameTokenUnion(QName qname)
qname
- the QName to set as its value.NullPointerException
- if qname is nullpublic QName getQName()
public String getToken()
public boolean isQName()
public boolean isToken()
Copyright © 2005–2014 Apache Software Foundation. All rights reserved.