/** * Transform an qualified name consisting of prefix and local part to an expanded name, based on the registered * binding. * * @param prefix * the prefix * @param localName * the local part * @return the expanded name * @throws NamespaceBindingException * if the namespace name is not bound to a prefix */ protected EName toEName(String prefix, String localName) { return new EName(bindings.getNamespaceURI(prefix), localName); }
/** * Transform a qualified name to an expanded name, based on the registered binding. * * @param qName * the qualified name, e.g. <code>dcterms:title</code> or <code>title</code> * @return the expanded name * @throws NamespaceBindingException * if the namespace name is not bound to a prefix */ protected EName toEName(String qName) { String[] parts = splitQName(qName); return new EName(bindings.getNamespaceURI(parts[0]), parts[1]); }