org.apache.woden.xml
Interface IntOrTokenAttr

All Superinterfaces:
XMLAttr
All Known Implementing Classes:
IntOrTokenAnyAttrImpl

public interface IntOrTokenAttr
extends XMLAttr

This interface represents XML attribute information items of type 'Union of xs:int, xs:token', for example the whttp:code extension attribute of binding <fault>.

The isInt and isToken methods determine whether to call the getInt or getToken methods. If the implementor object is initialized with an int, isInt will return 'true', isToken will return 'false', getInt will return the int value and getToken will return null. If it is initialized with an xs:token, isInt will return 'false', isToken will return 'true', getInt 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, getInt and getToken methods will return null and isInt, isToken and isValid will return false.

Author:
jkaputin@apache.org

Method Summary
 java.lang.Integer getInt()
           
 java.lang.String getToken()
           
 boolean isInt()
           
 boolean isToken()
           
 
Methods inherited from interface org.apache.woden.xml.XMLAttr
getAttributeType, getContent, init, isValid, setErrorReporter, toExternalForm
 

Method Detail

isInt

boolean isInt()

isToken

boolean isToken()

getInt

java.lang.Integer getInt()

getToken

java.lang.String getToken()


Copyright © 2007. All Rights Reserved.