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
isInt
public boolean isInt()
isToken
public boolean isToken()
getInt
public java.lang.Integer getInt()
getToken
public java.lang.String getToken()
Copyright © 2005-2007 Apache Software Foundation. All Rights Reserved.