/** * 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); } }
/** * 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); } }
/** * 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; }
/** * 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; }
private static QName createQName( String qName, String nsUri, String localName) { XmlNamespace ns = null; if (!StringUtil.isEmpty(nsUri)) { String[] parts = qName.split(":"); if (parts.length == 2) { ns = new XmlNamespace(parts[0], nsUri); } else { ns = new XmlNamespace(null, nsUri); } } return new QName(ns, localName); } }
private static QName createQName( String qName, String nsUri, String localName) { XmlNamespace ns = null; if (!StringUtil.isEmpty(nsUri)) { String[] parts = qName.split(":"); if (parts.length == 2) { ns = new XmlNamespace(parts[0], nsUri); } else { ns = new XmlNamespace(null, nsUri); } } return new QName(ns, localName); } }
private static QName createQName( String qName, String nsUri, String localName) { XmlNamespace ns = null; if (!StringUtil.isEmpty(nsUri)) { String[] parts = qName.split(":"); if (parts.length == 2) { ns = new XmlNamespace(parts[0], nsUri); } else { ns = new XmlNamespace(null, nsUri); } } return new QName(ns, localName); } }
@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())); } }
private static void addAtompubTransform(MetadataRegistry registry, ElementKey<?, ?> key) { registry.build(key, V1_CONTEXT).setName( new QName(Namespaces.atomPubDraftNs, 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())); } }