org.apache.woden.internal.xml
Class XMLAttrImpl

java.lang.Object
  extended by org.apache.woden.internal.xml.XMLAttrImpl
All Implemented Interfaces:
XMLAttr
Direct Known Subclasses:
ArgumentArrayAttrImpl, BooleanAttrImpl, HTTPAuthenticationSchemeAttrImpl, IntOrTokenAnyAttrImpl, ModelReferenceAttrImpl, QNameAttrImpl, QNameListAttrImpl, QNameListOrTokenAnyAttrImpl, QNameOrTokenAnyAttrImpl, SchemaMappingAttrImpl, StringAttrImpl, TokenAttrImpl, URIAttrImpl

public abstract class XMLAttrImpl
extends java.lang.Object
implements XMLAttr

This is an abstract superclass for all classes representing different types of XML attribute information items.

Author:
jkaputin@apache.org

Field Summary
protected  QName fAttrType
           
protected  java.lang.Object fContent
           
protected  java.lang.String fExternalForm
           
protected  boolean fValid
           
 
Constructor Summary
protected XMLAttrImpl()
           
protected XMLAttrImpl(XMLElement ownerEl, QName attrType, java.lang.String attrValue, ErrorReporter errRpt)
           
 
Method Summary
protected abstract  java.lang.Object convert(XMLElement ownerEl, java.lang.String attrValue)
           
 QName getAttributeType()
           
 java.lang.Object getContent()
           
protected  ErrorReporter getErrorReporter()
           
 void init(XMLElement ownerEl, QName attrType, java.lang.String attrValue)
          Take the external string form of the attribute and initialize its internal object representation.
 boolean isValid()
           
 void setErrorReporter(ErrorReporter errRpt)
           
 void setValid(boolean validity)
           
 java.lang.String toExternalForm()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fAttrType

protected QName fAttrType

fContent

protected java.lang.Object fContent

fExternalForm

protected java.lang.String fExternalForm

fValid

protected boolean fValid
Constructor Detail

XMLAttrImpl

protected XMLAttrImpl()

XMLAttrImpl

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

setErrorReporter

public void setErrorReporter(ErrorReporter errRpt)
Specified by:
setErrorReporter in interface XMLAttr

init

public void init(XMLElement ownerEl,
                 QName attrType,
                 java.lang.String attrValue)
          throws WSDLException
Description copied from interface: XMLAttr
Take the external string form of the attribute and initialize its internal object representation.

Specified by:
init in interface XMLAttr
Throws:
WSDLException - if conversion errors occur

getAttributeType

public QName getAttributeType()
Specified by:
getAttributeType in interface XMLAttr

getContent

public java.lang.Object getContent()
Specified by:
getContent in interface XMLAttr

toExternalForm

public java.lang.String toExternalForm()
Specified by:
toExternalForm in interface XMLAttr

isValid

public boolean isValid()
Specified by:
isValid in interface XMLAttr

convert

protected abstract java.lang.Object convert(XMLElement ownerEl,
                                            java.lang.String attrValue)
                                     throws WSDLException
Throws:
WSDLException

getErrorReporter

protected ErrorReporter getErrorReporter()
                                  throws WSDLException
Throws:
WSDLException

setValid

public void setValid(boolean validity)


Copyright © 2007. All Rights Reserved.