/** * @see org.w3c.dom.Node * * @return The namespace URI of this node, or null if it is * unspecified */ public String getNamespaceURI() { String uri = m_attribute.getURI(); return (uri.equals(""))?null:uri; }
/** * @see org.w3c.dom.Node * * @return The namespace URI of this node, or null if it is * unspecified */ public String getNamespaceURI() { String uri = m_attribute.getURI(); return (uri.length() == 0)?null:uri; }
/** * @see org.w3c.dom.Node * * @return The name of the attribute */ public String getNodeName() { String uri = m_attribute.getURI(); String localName = getLocalName(); return (uri.equals(""))?localName:uri+":"+localName; }
/** * @see org.w3c.dom.Node * * @return The namespace prefix of this node, or null if it is * unspecified */ public String getPrefix() { String uri = m_attribute.getURI(); String rawName = m_attribute.getRawName(); return (uri.equals(""))? null:rawName.substring(0, rawName.indexOf(":")); }
/** * @see org.w3c.dom.Node * * @return The name of the attribute */ public String getNodeName() { String uri = m_attribute.getURI(); String localName = getLocalName(); return (uri.length() == 0)?localName:uri+":"+localName; }
/** * @see org.w3c.dom.Node * * @return The namespace prefix of this node, or null if it is * unspecified */ public String getPrefix() { String uri = m_attribute.getURI(); String rawName = m_attribute.getRawName(); return (uri.length() == 0)? null:rawName.substring(0, rawName.indexOf(":")); }
/** * Get a literal result attribute by name. * * @param namespaceURI Namespace URI of attribute node to get * @param localName Local part of qualified name of attribute node to get * * @return literal result attribute (AVT) */ public AVT getLiteralResultAttributeNS(String namespaceURI, String localName) { if (null != m_avts) { int nAttrs = m_avts.size(); for (int i = (nAttrs - 1); i >= 0; i--) { AVT avt = (AVT) m_avts.get(i); if (avt.getName().equals(localName) && avt.getURI().equals(namespaceURI)) { return avt; } } // end for } return null; }
/** * Get a literal result attribute by name. * * @param namespaceURI Namespace URI of attribute node to get * @param localName Local part of qualified name of attribute node to get * * @return literal result attribute (AVT) */ public AVT getLiteralResultAttributeNS(String namespaceURI, String localName) { if (null != m_avts) { int nAttrs = m_avts.size(); for (int i = (nAttrs - 1); i >= 0; i--) { AVT avt = (AVT) m_avts.get(i); if (avt.getName().equals(localName) && avt.getURI().equals(namespaceURI)) { return avt; } } // end for } return null; }
/** * Get a literal result attribute by name. The name is namespaceURI:localname * if namespace is not null. * * @param name Name of literal result attribute to get * * @return literal result attribute (AVT) */ public AVT getLiteralResultAttribute(String name) { if (null != m_avts) { int nAttrs = m_avts.size(); String namespace = null; for (int i = (nAttrs - 1); i >= 0; i--) { AVT avt = (AVT) m_avts.get(i); namespace = avt.getURI(); if ((namespace != null && (!namespace.equals("")) && (namespace +":"+avt.getName()).equals(name))|| ((namespace == null || namespace.equals(""))&& avt.getRawName().equals(name))) { return avt; } } // end for } return null; }
/** * Get a literal result attribute by name. The name is namespaceURI:localname * if namespace is not null. * * @param name Name of literal result attribute to get * * @return literal result attribute (AVT) */ public AVT getLiteralResultAttribute(String name) { if (null != m_avts) { int nAttrs = m_avts.size(); String namespace = null; for (int i = (nAttrs - 1); i >= 0; i--) { AVT avt = (AVT) m_avts.get(i); namespace = avt.getURI(); if ((namespace != null && (namespace.length() != 0) && (namespace +":"+avt.getName()).equals(name))|| ((namespace == null || namespace.length() == 0)&& avt.getRawName().equals(name))) { return avt; } } // end for } return null; }
if (localName.equals(avt.getName())) String nsURI = avt.getURI(); if ((uri == null && nsURI == null) || (uri != null && uri.equals(nsURI)))
if (localName.equals(avt.getName())) String nsURI = avt.getURI(); if ((namespaceURI == null && nsURI == null) || (namespaceURI != null && namespaceURI.equals(nsURI)))
if (localName.equals(avt.getName())) String nsURI = avt.getURI(); if ((uri == null && nsURI == null) || (uri != null && uri.equals(nsURI)))
if (localName.equals(avt.getName())) String nsURI = avt.getURI(); if ((namespaceURI == null && nsURI == null) || (namespaceURI != null && namespaceURI.equals(nsURI)))
String ns = avt.getURI();
String ns = avt.getURI();
avt.getURI(), avt.getName(), avt.getRawName(),
avt.getURI(), avt.getName(), avt.getRawName(),
/** * @see org.w3c.dom.Node * * @return The namespace URI of this node, or null if it is * unspecified */ public String getNamespaceURI() { String uri = m_attribute.getURI(); return (uri.equals(""))?null:uri; }
/** * @see org.w3c.dom.Node * * @return The name of the attribute */ public String getNodeName() { String uri = m_attribute.getURI(); String localName = getLocalName(); return (uri.equals(""))?localName:uri+":"+localName; }