org.apache.woden.internal.xml
Class IntOrTokenAnyAttrImpl

java.lang.Object
  extended by org.apache.woden.internal.xml.XMLAttrImpl
      extended by org.apache.woden.internal.xml.IntOrTokenAnyAttrImpl
All Implemented Interfaces:
IntOrTokenAttr, XMLAttr

public class IntOrTokenAnyAttrImpl
extends XMLAttrImpl
implements IntOrTokenAttr

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

Author:
jkaputin@apache.org

Constructor Summary
IntOrTokenAnyAttrImpl(XMLElement ownerEl, QName attrType, java.lang.String attrValue, ErrorReporter errRpt)
           
 
Method Summary
protected  java.lang.Object convert(XMLElement ownerEl, java.lang.String attrValue)
           
 java.lang.Integer getInt()
           
 java.lang.String getToken()
           
 boolean isInt()
           
 boolean isToken()
           
 
Methods inherited from class org.apache.woden.internal.xml.XMLAttrImpl
getAttributeType, getContent, getErrorReporter, isValid, setValid, toExternalForm
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.woden.xml.XMLAttr
getAttributeType, getContent, isValid, toExternalForm
 

Constructor Detail

IntOrTokenAnyAttrImpl

public IntOrTokenAnyAttrImpl(XMLElement ownerEl,
                             QName attrType,
                             java.lang.String attrValue,
                             ErrorReporter errRpt)
                      throws WSDLException
Throws:
WSDLException
Method Detail

isInt

public boolean isInt()
Specified by:
isInt in interface IntOrTokenAttr

isToken

public boolean isToken()
Specified by:
isToken in interface IntOrTokenAttr

getInt

public java.lang.Integer getInt()
Specified by:
getInt in interface IntOrTokenAttr

getToken

public java.lang.String getToken()
Specified by:
getToken in interface IntOrTokenAttr

convert

protected java.lang.Object convert(XMLElement ownerEl,
                                   java.lang.String attrValue)
                            throws WSDLException
Specified by:
convert in class XMLAttrImpl
Throws:
WSDLException


Copyright © 2005-2010 Apache Software Foundation. All Rights Reserved.