org.apache.woden.xml
Interface XMLAttr

All Known Subinterfaces:
ArgumentArrayAttr, BooleanAttr, HTTPAuthenticationSchemeAttr, IntOrTokenAttr, ModelReferenceAttr, QNameAttr, QNameListAttr, QNameListOrTokenAttr, QNameOrTokenAttr, SchemaMappingAttr, StringAttr, TokenAttr, URIAttr
All Known Implementing Classes:
ArgumentArrayAttrImpl, BooleanAttrImpl, HTTPAuthenticationSchemeAttrImpl, IntOrTokenAnyAttrImpl, ModelReferenceAttrImpl, QNameAttrImpl, QNameListAttrImpl, QNameListOrTokenAnyAttrImpl, QNameOrTokenAnyAttrImpl, SchemaMappingAttrImpl, StringAttrImpl, TokenAttrImpl, UnknownAttr, URIAttrImpl, XMLAttrImpl

public interface XMLAttr

This interface represents an XML attribute information item. It can be initialized with the string value of an attribute and the implementation must convert the string into an object of the appropriate type. The getContent() method will return the converted Object and the caller must cast this to the appropriate type. If a conversion error occured because the string was not in the correct form, the isValid() method will return false. The toExternalForm() method will return the attribute's original string value.

Author:
jkaputin@apache.org

Method Summary
 QName getAttributeType()
           
 java.lang.Object getContent()
           
 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)
           
 java.lang.String toExternalForm()
           
 

Method Detail

setErrorReporter

void setErrorReporter(ErrorReporter errRpt)

init

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

Throws:
WSDLException - if conversion errors occur

getAttributeType

QName getAttributeType()

getContent

java.lang.Object getContent()

toExternalForm

java.lang.String toExternalForm()

isValid

boolean isValid()


Copyright © 2007. All Rights Reserved.