List of utility methods to do XML QName
boolean | hasAnnotatedQname(Object obj) has Annotated Qname return (obj.getClass().getAnnotation(XmlType.class) != null); |
boolean | hasChildElement(QName qName, Element element) has Child Element List<Element> elements = getChildElements(qName, element);
return !elements.isEmpty();
|
boolean | hasGmlNamespace(QName qname) has Gml Namespace return qname.getNamespaceURI().startsWith(GML_BASE_NAMESPACE);
|
boolean | hasQName(final Node e, final QName name) has Q Name return new QName(e.getNamespaceURI(), e.getLocalName()).equals(name); |
boolean | hasQName(Node node, QName qname) Determines if a node has a particular qualified name. return qname.getNamespaceURI().equals(node.getNamespaceURI())
&& qname.getLocalPart().equals(node.getLocalName());
|
boolean | isElementName(Element element, QName name) is Element Name return name.equals(getQNameWithoutPrefix(element));
|
boolean | isEndElement(final XMLEvent event, final QName name) Ueberprueft, ob es ein End-Event mit dem uebergebenen Namen ist. return event.isEndElement() && event.asEndElement().getName().equals(name);
|
boolean | isEventStartOrEndElementWithMatchingName(XMLEvent event, QName elementName) is Event Start Or End Element With Matching Name if (event == null) throw new IllegalArgumentException("Event may not be null."); QName eventElementName = null; if (event.isStartElement()) eventElementName = event.asStartElement().getName(); else if (event.isEndElement()) eventElementName = event.asEndElement().getName(); else ... |
boolean | isJAXBElement(Class is JAXB Element if (value == null) { return false; } else if (value instanceof JAXBElement) { final JAXBElement<?> element = (JAXBElement<?>) value; return element.getName().equals(name) && declaredType.isAssignableFrom(element.getDeclaredType()); } else { return false; |
boolean | isPrimitiveIdlType(QName idlType) is Primitive Idl Type return IDL_TO_SCHEMA_TYPES.get(idlType) != null;
|