Methods Summary |
---|
public org.w3c.dom.Element | getChildElement(org.w3c.dom.Element e, java.lang.String name)
Element [] elements = getChildElements(e, name);
if (elements.length == 0)
return null;
return elements[0];
|
public org.w3c.dom.Element[] | getChildElements(org.w3c.dom.Element e, java.lang.String name)
NodeList nl = e.getChildNodes();
Vector els = new Vector();
for (int i = 0; i < nl.getLength(); i++) {
Node thisNode = nl.item(i);
if (!(thisNode instanceof Element))
continue;
Element el = (Element)thisNode;
if (el.getLocalName().equals(name)) {
els.add(el);
}
}
Element [] elements = new Element [els.size()];
els.toArray(elements);
return elements;
|
protected abstract javax.xml.namespace.QName | getElementName()Return the element name of a particular subclass.
|
private void | validateCandidateElement(org.w3c.dom.Element e)Make sure everything looks kosher with the element name.
QName name = getElementName();
if ((null == e) || (null == e.getNamespaceURI())
|| (null == e.getLocalName())
||!e.getNamespaceURI().equals(name.getNamespaceURI())
||!e.getLocalName().equals(name.getLocalPart())) {
throw new WSDDException(Messages.getMessage("invalidWSDD00",
e.getLocalName(),
name.getLocalPart()));
}
|
public abstract void | writeToContext(org.apache.axis.encoding.SerializationContext context)Write this element out to a SerializationContext
|