public abstract class BaseXMLElement extends Object implements XMLElement
Modifier and Type | Field and Description |
---|---|
protected ErrorReporter |
fErrorReporter |
protected Object |
fSource |
Modifier | Constructor and Description |
---|---|
protected |
BaseXMLElement(ErrorReporter errorReporter) |
Modifier and Type | Method and Description |
---|---|
protected abstract String |
doGetAttributeValue(String attrName) |
protected abstract XMLElement[] |
doGetChildElements() |
protected abstract XMLElement |
doGetFirstChildElement() |
protected abstract String |
doGetLocalName() |
protected abstract URI |
doGetNamespaceURI() |
protected abstract XMLElement |
doGetNextSiblingElement() |
protected abstract QName |
doGetQName() |
protected abstract QName |
doGetQName(String prefixedValue) |
String |
getAttributeValue(String attrName)
Returns the value of the specified attribute or null if it is not found.
|
XMLElement[] |
getChildElements()
Return an array of the child elements of this element or
an empty array if no siblings are found.
|
XMLElement |
getFirstChildElement()
Return the first child element of this element or null if no
children are found.
|
String |
getLocalName() |
URI |
getNamespaceURI() |
XMLElement |
getNextSiblingElement()
Return the next sibling element of this element or null if no
siblings are found.
|
QName |
getQName()
Return the qualified name of this element.
|
QName |
getQName(String prefixedValue)
Return the qualified name from the specified prefixed value.
|
Object |
getSource()
Returns an Object representing an XML element, which the caller must
cast to the expected type.
|
abstract void |
setSource(Object elem)
Accepts an Object representing an XML element.
|
protected Object fSource
protected ErrorReporter fErrorReporter
protected BaseXMLElement(ErrorReporter errorReporter)
public abstract void setSource(Object elem)
XMLElement
setSource
in interface XMLElement
elem
- the Object representing the XML elementpublic final Object getSource()
XMLElement
getSource
in interface XMLElement
public final String getAttributeValue(String attrName)
XMLElement
getAttributeValue
in interface XMLElement
attrName
- name of attribute to look forpublic final URI getNamespaceURI() throws WSDLException
getNamespaceURI
in interface XMLElement
WSDLException
protected abstract URI doGetNamespaceURI() throws WSDLException
WSDLException
public final String getLocalName()
getLocalName
in interface XMLElement
protected abstract String doGetLocalName()
public final QName getQName()
XMLElement
getQName
in interface XMLElement
protected abstract QName doGetQName()
public final QName getQName(String prefixedValue) throws WSDLException
XMLElement
getQName
in interface XMLElement
prefixedValue
- of the form [namespace prefix]:[local name]WSDLException
protected abstract QName doGetQName(String prefixedValue) throws WSDLException
WSDLException
public final XMLElement getFirstChildElement()
XMLElement
getFirstChildElement
in interface XMLElement
protected abstract XMLElement doGetFirstChildElement()
public final XMLElement getNextSiblingElement()
XMLElement
getNextSiblingElement
in interface XMLElement
protected abstract XMLElement doGetNextSiblingElement()
public final XMLElement[] getChildElements()
XMLElement
getChildElements
in interface XMLElement
protected abstract XMLElement[] doGetChildElements()
Copyright © 2005-2012 Apache Software Foundation. All Rights Reserved.