org.apache.woden.xml

## Interface IntOrTokenAttr

- All Superinterfaces:
    XMLAttr

      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

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `Integer` | `getInt()`
    `String` | `getToken()`
    `boolean` | `isInt()`
    `boolean` | `isToken()`

    - ### Methods inherited from interface org.apache.woden.xml.XMLAttr

      `getAttributeType, getContent, isValid, toExternalForm`

- - ### Method Detail

    - #### isInt

          boolean isInt()

    - #### isToken

          boolean isToken()

    - #### getInt

          Integer getInt()

    - #### getToken

          String getToken()

Copyright ? Apache Software Foundation. All Rights Reserved.