/** * @see org.w3c.dom.Node * * @return The value of the attribute * * @throws DOMException */ public String getNodeValue() throws DOMException { return m_attribute.getSimpleString(); }
/** * * @return The value of this attribute returned as string */ public String getValue(){ return m_attribute.getSimpleString(); }
/** * @see org.w3c.dom.Node * * @return The value of the attribute * * @throws DOMException */ public String getNodeValue() throws DOMException { return m_attribute.getSimpleString(); }
/** * * @return The value of this attribute returned as string */ public String getValue(){ return m_attribute.getSimpleString(); }
/** * Return the raw value of the attribute. * * @param namespaceURI Namespace URI of attribute node to get * @param localName Local part of qualified name of attribute node to get * * @return The Attr value as a string, or the empty string if that attribute * does not have a specified or default value */ public String getAttributeNS(String namespaceURI, String localName) { AVT avt = getLiteralResultAttributeNS(namespaceURI, localName); if ((null != avt)) { return avt.getSimpleString(); } return EMPTYSTRING; }
/** * Return the raw value of the attribute. * * @param namespaceURI:localName or localName if the namespaceURI is null of * the attribute to get * * @return The Attr value as a string, or the empty string if that attribute * does not have a specified or default value */ public String getAttribute(String rawName) { AVT avt = getLiteralResultAttribute(rawName); if ((null != avt)) { return avt.getSimpleString(); } return EMPTYSTRING; }
/** * Return the raw value of the attribute. * * @param namespaceURI Namespace URI of attribute node to get * @param localName Local part of qualified name of attribute node to get * * @return The Attr value as a string, or the empty string if that attribute * does not have a specified or default value */ public String getAttributeNS(String namespaceURI, String localName) { AVT avt = getLiteralResultAttributeNS(namespaceURI, localName); if ((null != avt)) { return avt.getSimpleString(); } return EMPTYSTRING; }
/** * Return the raw value of the attribute. * * @param namespaceURI:localName or localName if the namespaceURI is null of * the attribute to get * * @return The Attr value as a string, or the empty string if that attribute * does not have a specified or default value */ public String getAttribute(String rawName) { AVT avt = getLiteralResultAttribute(rawName); if ((null != avt)) { return avt.getSimpleString(); } return EMPTYSTRING; }
/** * @see ElemElement#setName(AVT) */ public void setName(AVT v) { if (v.isSimple()) { if (v.getSimpleString().equals("xmlns")) { throw new IllegalArgumentException(); } } super.setName(v); }
/** * @see ElemElement#setName(AVT) */ public void setName(AVT v) { if (v.isSimple()) { if (v.getSimpleString().equals("xmlns")) { throw new IllegalArgumentException(); } } super.setName(v); }
/** * Set the "xml:space" attribute. * A text node is preserved if an ancestor element of the text node * has an xml:space attribute with a value of preserve, and * no closer ancestor element has xml:space with a value of default. * @see <a href="http://www.w3.org/TR/xslt#strip">strip in XSLT Specification</a> * @see <a href="http://www.w3.org/TR/xslt#section-Creating-Text">section-Creating-Text in XSLT Specification</a> * * @param avt Enumerated value, either Constants.ATTRVAL_PRESERVE * or Constants.ATTRVAL_STRIP. */ public void setXmlSpace(AVT avt) { // This function is a bit-o-hack, I guess... addLiteralResultAttribute(avt); String val = avt.getSimpleString(); if(val.equals("default")) { super.setXmlSpace(Constants.ATTRVAL_STRIP); } else if(val.equals("preserve")) { super.setXmlSpace(Constants.ATTRVAL_PRESERVE); } // else maybe it's a real AVT, so we can't resolve it at this time. }
/** * Set the "xml:space" attribute. * A text node is preserved if an ancestor element of the text node * has an xml:space attribute with a value of preserve, and * no closer ancestor element has xml:space with a value of default. * @see <a href="http://www.w3.org/TR/xslt#strip">strip in XSLT Specification</a> * @see <a href="http://www.w3.org/TR/xslt#section-Creating-Text">section-Creating-Text in XSLT Specification</a> * * @param avt Enumerated value, either Constants.ATTRVAL_PRESERVE * or Constants.ATTRVAL_STRIP. */ public void setXmlSpace(AVT avt) { // This function is a bit-o-hack, I guess... addLiteralResultAttribute(avt); String val = avt.getSimpleString(); if(val.equals("default")) { super.setXmlSpace(Constants.ATTRVAL_STRIP); } else if(val.equals("preserve")) { super.setXmlSpace(Constants.ATTRVAL_PRESERVE); } // else maybe it's a real AVT, so we can't resolve it at this time. }
/** * @see org.w3c.dom.Node * * @return The value of the attribute * * @throws DOMException */ public String getNodeValue() throws DOMException { return m_attribute.getSimpleString(); }
/** * * @return The value of this attribute returned as string */ public String getValue(){ return m_attribute.getSimpleString(); }
/** * @see org.w3c.dom.Node * * @return The value of the attribute * * @throws DOMException */ public String getNodeValue() throws DOMException { return m_attribute.getSimpleString(); }
/** * @see org.w3c.dom.Node * * @return The value of the attribute * * @throws DOMException */ public String getNodeValue() throws DOMException { return m_attribute.getSimpleString(); }
/** * * @return The value of this attribute returned as string */ public String getValue(){ return m_attribute.getSimpleString(); }
/** * @see org.w3c.dom.Node * * @return The value of the attribute * * @throws DOMException */ public String getNodeValue() throws DOMException { return m_attribute.getSimpleString(); }
/** * * @return The value of this attribute returned as string */ public String getValue(){ return m_attribute.getSimpleString(); }
/** * * @return The value of this attribute returned as string */ public String getValue(){ return m_attribute.getSimpleString(); }