org.apache.woden.xml
Interface QNameOrTokenAttr
- All Superinterfaces:
- XMLAttr
- All Known Implementing Classes:
- QNameOrTokenAnyAttrImpl
public interface QNameOrTokenAttr
- extends XMLAttr
This interface represents XML attribute information items of type
'Union of xs:QName or xs:token', for example
the wsoap:code extension attribute of binding <fault>.
The isQName
method can be used to determine whether
to call the getQName
method or the getToken
method. If the implementor object is initialized with a QName,
isQName
will return 'true', getQName
will return the QName object and getToken
will return
null. If it is initialized with a xs:token, isQName
will
return 'false', getQName
will return null and
getToken
will return the token string.
If the implementor object is initialized with a null value (i.e. because
of an attribute value conversion error or because the attribute value
was empty in the WSDL), the getContents
,
getQName
and getToken
methods will return null
and isQName
and isValid
will return false.
- Author:
- jkaputin@apache.org
isQName
boolean isQName()
isToken
boolean isToken()
getQName
QName getQName()
getToken
java.lang.String getToken()
Copyright © 2005-2009 Apache Software Foundation. All Rights Reserved.