/** * Gets the root ID for a qualified name. All names in the same namespace * will be stored together, to allow transforms to affect all properties in * a namespace through transforms on uri:*. */ private static QName getRootId(QName id) { if (id.getNs() != null && !"*".equals(id.getLocalName())) { return new QName(id.getNs(), "*"); } return id; }
/** * Gets the root ID for a qualified name. All names in the same namespace * will be stored together, to allow transforms to affect all properties in * a namespace through transforms on uri:*. */ private static QName getRootId(QName id) { if (id.getNs() != null && !"*".equals(id.getLocalName())) { return new QName(id.getNs(), "*"); } return id; }
/** * Returns an id of the form ns:*, if the given id does not already represent * the * localname. */ private QName toWildcardLocalName(QName id) { return new QName(id.getNs(), QName.ANY_LOCALNAME); } }
public XmlNamespace getDefaultNamespace() { // The default implementation uses the default namespace for the in-use name return getName().getNs(); }
/** * Returns an id of the form ns:*, if the given id does not already represent * the * localname. */ private QName toWildcardLocalName(QName id) { return new QName(id.getNs(), QName.ANY_LOCALNAME); } }
/** * Gets the root ID for a qualified name. All names in the same namespace * will be stored together, to allow transforms to affect all properties in * a namespace through transforms on uri:*. */ private static QName getRootId(QName id) { if (id.getNs() != null && !"*".equals(id.getLocalName())) { return new QName(id.getNs(), "*"); } return id; }
/** * Returns an id of the form ns:*, if the given id does not already represent * the * localname. */ private QName toWildcardLocalName(QName id) { return new QName(id.getNs(), QName.ANY_LOCALNAME); } }
public XmlNamespace getDefaultNamespace() { // The default implementation uses the default namespace for the in-use name return getName().getNs(); }
public void endElement(XmlWriter xw, Element e, ElementMetadata<?, ?> metadata) throws IOException { QName name = getName(e, metadata); xw.endElement(name.getNs(), name.getLocalName()); } }
public void endElement(XmlWriter xw, Element e, ElementMetadata<?, ?> metadata) throws IOException { QName name = getName(e, metadata); xw.endElement(name.getNs(), name.getLocalName()); } }
public void endElement(XmlWriter xw, Element e, ElementMetadata<?, ?> metadata) throws IOException { QName name = getName(e, metadata); xw.endElement(name.getNs(), name.getLocalName()); } }
public boolean startElement(XmlWriter xw, Element parent, Element e, ElementMetadata<?, ?> metadata) throws IOException { Collection<XmlNamespace> namespaces = getNamespaces(parent, e, metadata); List<XmlWriter.Attribute> attrs = getAttributes(e, metadata); QName name = getName(e, metadata); xw.startElement(name.getNs(), name.getLocalName(), attrs, namespaces); return true; }
public boolean startElement(XmlWriter xw, Element parent, Element e, ElementMetadata<?, ?> metadata) throws IOException { Collection<XmlNamespace> namespaces = getNamespaces(parent, e, metadata); List<XmlWriter.Attribute> attrs = getAttributes(e, metadata); QName name = getName(e, metadata); xw.startElement(name.getNs(), name.getLocalName(), attrs, namespaces); return true; }
public boolean startElement(XmlWriter xw, Element parent, Element e, ElementMetadata<?, ?> metadata) throws IOException { Collection<XmlNamespace> namespaces = getNamespaces(parent, e, metadata); List<XmlWriter.Attribute> attrs = getAttributes(e, metadata); QName name = getName(e, metadata); xw.startElement(name.getNs(), name.getLocalName(), attrs, namespaces); return true; }