@Override public int hashCode() { if (getNs() == null) { return getLocalName().hashCode(); } return getNs().getUri().hashCode() * 13 + getLocalName().hashCode(); }
@Override public int hashCode() { if (getNs() == null) { return getLocalName().hashCode(); } return getNs().getUri().hashCode() * 13 + getLocalName().hashCode(); }
@Override public int hashCode() { if (getNs() == null) { return getLocalName().hashCode(); } return getNs().getUri().hashCode() * 13 + getLocalName().hashCode(); }
@Override public String toString() { if (getNs() == null || "".equals(getNs().getAlias())) { return getLocalName(); } return getNs().getAlias() + ":" + getLocalName(); }
/** * 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; }
@Override public String toString() { if (getNs() == null || "".equals(getNs().getAlias())) { return getLocalName(); } return getNs().getAlias() + ":" + getLocalName(); }
@Override public String toString() { if (getNs() == null || "".equals(getNs().getAlias())) { return getLocalName(); } return getNs().getAlias() + ":" + getLocalName(); }
/** * 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; }
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()); } }
private static void addAtompubTransform(MetadataRegistry registry, ElementKey<?, ?> key) { registry.build(key, V1_CONTEXT).setName( new QName(Namespaces.atomPubDraftNs, key.getId().getLocalName())); } }
@SuppressWarnings("deprecation") private static void addOssTransform(MetadataRegistry registry, ElementKey<?, ?> key) { registry.build(key, V1_CONTEXT).setName( new QName(Namespaces.openSearchNs, key.getId().getLocalName())); } }
@SuppressWarnings("deprecation") private static void addOssTransform(MetadataRegistry registry, ElementKey<?, ?> key) { registry.build(key, V1_CONTEXT).setName( new QName(Namespaces.openSearchNs, key.getId().getLocalName())); } }
private static void addAtompubTransform(MetadataRegistry registry, ElementKey<?, ?> key) { registry.build(key, V1_CONTEXT).setName( new QName(Namespaces.atomPubDraftNs, key.getId().getLocalName())); } }
@SuppressWarnings("deprecation") private static void addOssTransform(MetadataRegistry registry, ElementKey<?, ?> key) { registry.build(key, V1_CONTEXT).setName( new QName(Namespaces.openSearchNs, key.getId().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; }