public interface IntOrTokenAttr extends XMLAttr
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.
| Modifier and Type | Method and Description |
|---|---|
Integer |
getInt() |
String |
getToken() |
boolean |
isInt() |
boolean |
isToken() |
getAttributeType, getContent, isValid, toExternalFormCopyright ? Apache Software Foundation. All Rights Reserved.