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)
XMLElementsetSource in interface XMLElementelem - the Object representing the XML elementpublic final Object getSource()
XMLElementgetSource in interface XMLElementpublic final String getAttributeValue(String attrName)
XMLElementgetAttributeValue in interface XMLElementattrName - name of attribute to look forpublic final URI getNamespaceURI() throws WSDLException
getNamespaceURI in interface XMLElementWSDLExceptionprotected abstract URI doGetNamespaceURI() throws WSDLException
WSDLExceptionpublic final String getLocalName()
getLocalName in interface XMLElementprotected abstract String doGetLocalName()
public final QName getQName()
XMLElementgetQName in interface XMLElementprotected abstract QName doGetQName()
public final QName getQName(String prefixedValue) throws WSDLException
XMLElementgetQName in interface XMLElementprefixedValue - of the form [namespace prefix]:[local name]WSDLExceptionprotected abstract QName doGetQName(String prefixedValue) throws WSDLException
WSDLExceptionpublic final XMLElement getFirstChildElement()
XMLElementgetFirstChildElement in interface XMLElementprotected abstract XMLElement doGetFirstChildElement()
public final XMLElement getNextSiblingElement()
XMLElementgetNextSiblingElement in interface XMLElementprotected abstract XMLElement doGetNextSiblingElement()
public final XMLElement[] getChildElements()
XMLElementgetChildElements in interface XMLElementprotected abstract XMLElement[] doGetChildElements()
Copyright © 2005-2012 Apache Software Foundation. All Rights Reserved.