/** * Returns the value of this attribute. * * @see org.w3c.dom.Attr#getValue() */ public String getValue() { return (this.attrValue == null) ? null : this.attrValue.getText(); }
/** * Returns the attribute value. * * @see org.apache.axiom.om.OMAttribute#getAttributeValue() */ public String getAttributeValue() { return this.attrValue.getText(); }
public String getNodeValue() throws DOMException { return this.getText(); }
public String getData() throws DOMException { return this.getText(); }
/** * Writes the relevant output. * * @param writer * @throws XMLStreamException */ private void writeOutput(XMLStreamWriter writer) throws XMLStreamException { int type = getType(); if (type == OMNode.TEXT_NODE || type == SPACE_NODE) { writer.writeCharacters(this.getText()); } else if (type == OMNode.CDATA_SECTION_NODE) { writer.writeCData(this.getText()); } else if (type == OMNode.ENTITY_REFERENCE_NODE) { writer.writeEntityRef(this.getText()); } }
private void internalSerializeLocal(XMLStreamWriter writer2) throws XMLStreamException { MTOMXMLStreamWriter writer = (MTOMXMLStreamWriter) writer2; if (!this.isBinary) { writeOutput(writer); } else { if (writer.isOptimized()) { if (contentID == null) { contentID = writer.getNextContentId(); } // send binary as MTOM optimised this.attribute = new AttrImpl(this.ownerNode, "href", new NamespaceImpl("", ""), "cid:" + getContentID(), this.factory); this.serializeStartpart(writer); writer.writeOptimized(this); writer.writeEndElement(); } else { writer.writeCharacters(this.getText()); } } }