/** * @param name the QName to convert to string * @param child argument used just for the purpose of debugging when throwing an exception * @return a string representation of the QualifiedName */ public String qualifiedNameToString(QName name, Namespace child) { if ((getDefaultNamespace()!=null) && (getDefaultNamespace().equals(name.getNamespaceURI()))) { return name.getLocalPart(); } else { String pref=getNamespaces().get(name.getNamespaceURI()); if (pref!=null) { return pref + ":" + name.getLocalPart(); } else { if (parent!=null) { return parent.qualifiedNameToString(name,this); } else throw new QualifiedNameException("unknown qualified name " + name + " with namespace " + toString() + ((child==null)? "" : (" and " + child))); } } }
/** * @param name the QName to convert to string * @param child argument used just for the purpose of debugging when throwing an exception * @return a string representation of the QualifiedName */ public String qualifiedNameToString(QName name, Namespace child) { if ((getDefaultNamespace()!=null) && (getDefaultNamespace().equals(name.getNamespaceURI()))) { return name.getLocalPart(); } else { String pref=getNamespaces().get(name.getNamespaceURI()); if (pref!=null) { return pref + ":" + name.getLocalPart(); } else { if (parent!=null) { return parent.qualifiedNameToString(name,this); } else throw new QualifiedNameException("unknown qualified name " + name + " with namespace " + toString() + ((child==null)? "" : (" and " + child))); } } }
/** * @param name the QualifiedName to convert to string * @param child argument used just for the purpose of debugging when throwing an exception * @return a string representation of the QualifiedName */ public String qualifiedNameToString(QualifiedName name, Namespace child) { if ((getDefaultNamespace()!=null) && (getDefaultNamespace().equals(name.getNamespaceURI()))) { return name.getLocalPart(); } else { String pref=getNamespaces().get(name.getNamespaceURI()); if (pref!=null) { return pref + ":" + name.getLocalPart(); } else { if (parent!=null) { return parent.qualifiedNameToString(name,this); } else throw new QualifiedNameException("unknown qualified name " + name + " with namespace " + toString() + ((child==null)? "" : (" and " + child))); } } } /**
/** * @param name the QualifiedName to convert to string * @param child argument used just for the purpose of debugging when throwing an exception * @return a string representation of the QualifiedName */ public String qualifiedNameToString(QualifiedName name, Namespace child) { if ((getDefaultNamespace()!=null) && (getDefaultNamespace().equals(name.getNamespaceURI()))) { return name.getLocalPart(); } else { String pref=getNamespaces().get(name.getNamespaceURI()); if (pref!=null) { return pref + ":" + name.getLocalPart(); } else { if (parent!=null) { return parent.qualifiedNameToString(name,this); } else throw new QualifiedNameException("unknown qualified name " + name + " with namespace " + toString() + ((child==null)? "" : (" and " + child))); } } } /**