org.apache.woden.xml
Interface QNameListOrTokenAttr

All Superinterfaces:
XMLAttr
All Known Implementing Classes:
QNameListOrTokenAnyAttrImpl

public interface QNameListOrTokenAttr
extends XMLAttr

This interface represents XML attribute information items of type 'Union of list of xs:QName or xs:token', for example the wsoap:subcodes extension attribute of binding <fault>.

The isQNameList method can be used to determine whether to call the getQNames method or the getToken method. If the implementor object is initialized with a list of QNames, isQNameList will return 'true', getQNames will return an array of QName objects and getToken will return null. If it is initialized with a xs:token, isQNameList will return 'false', getQNames 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, getQNameList and getToken methods will return null and isQNameList and isValid will return false.

Author:
jkaputin@apache.org

Method Summary
 QName[] getQNames()
           
 java.lang.String getToken()
           
 boolean isQNameList()
           
 boolean isToken()
           
 
Methods inherited from interface org.apache.woden.xml.XMLAttr
getAttributeType, getContent, init, isValid, setErrorReporter, toExternalForm
 

Method Detail

isQNameList

boolean isQNameList()

isToken

boolean isToken()

getQNames

QName[] getQNames()

getToken

java.lang.String getToken()


Copyright © 2007. All Rights Reserved.