public Element getChildElement(Element e, String name) { Element [] elements = getChildElements(e, name); if (elements.length == 0) return null; return elements[0]; }
/** * Create an element in WSDD that wraps an extant DOM element * @param e (Element) XXX * @throws WSDDException XXX */ public WSDDElement(Element e) throws WSDDException { validateCandidateElement(e); }
/** * Make sure everything looks kosher with the element name. */ private void validateCandidateElement(Element e) throws WSDDException { 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())); } }
/** * Make sure everything looks kosher with the element name. */ private void validateCandidateElement(Element e) throws WSDDException { 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())); } }
/** * Create an element in WSDD that wraps an extant DOM element * @param e (Element) XXX * @throws WSDDException XXX */ public WSDDElement(Element e) throws WSDDException { validateCandidateElement(e); }
public Element getChildElement(Element e, String name) { Element [] elements = getChildElements(e, name); if (elements.length == 0) return null; return elements[0]; }
/** * Make sure everything looks kosher with the element name. */ private void validateCandidateElement(Element e) throws WSDDException { 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())); } }
/** * Create an element in WSDD that wraps an extant DOM element * @param e (Element) XXX * @throws WSDDException XXX */ public WSDDElement(Element e) throws WSDDException { validateCandidateElement(e); }
public Element getChildElement(Element e, String name) { Element [] elements = getChildElements(e, name); if (elements.length == 0) return null; return elements[0]; }