public class StringAdapter extends AbstractAdapterElement
String getFoo() { return "My Text!"; }
will appear in the result DOM as:
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE| Constructor and Description |
|---|
StringAdapter() |
StringAdapter(AdapterFactory adapterFactory,
AdapterNode parent,
String propertyName,
String value) |
| Modifier and Type | Method and Description |
|---|---|
protected List<Node> |
buildChildAdapters()
subclasses override to produce their children
|
boolean |
getParseStringAsXML()
Is this StringAdapter to interpret its string values as containing
XML Text?
|
protected String |
getStringValue()
Get the object to be adapted as a String value.
|
void |
setParseStringAsXML(boolean parseStringAsXML)
When set to true the StringAdapter will interpret its String value
as containing XML text and parse it to a DOM Element.
|
buildAttributeAdapters, getAttribute, getAttributeAdapters, getAttributeNode, getAttributeNodeNS, getAttributeNS, getNodeName, getNodeType, getSchemaTypeInfo, getTagName, hasAttribute, hasAttributeNS, hasChildNodes, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setIdAttribute, setIdAttributeNode, setIdAttributeNSappendChild, cloneNode, compareDocumentPosition, getAdapterFactory, getAttributes, getBaseURI, getChildAdapters, getChildAfter, getChildBefore, getChildBeforeOrAfter, getChildNodes, getElementsByTagName, getElementsByTagNameNS, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeValue, getOwnerDocument, getParent, getParentNode, getPrefix, getPreviousSibling, getPropertyName, getPropertyValue, getTextContent, getUserData, hasAttributes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, operationNotSupported, removeChild, replaceChild, setAdapterFactory, setContext, setNodeValue, setParent, setPrefix, setPropertyName, setPropertyValue, setTextContent, setUserData, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetElementsByTagName, getElementsByTagNameNSappendChild, cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasAttributes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserDatapublic StringAdapter()
public StringAdapter(AdapterFactory adapterFactory, AdapterNode parent, String propertyName, String value)
protected String getStringValue()
protected List<Node> buildChildAdapters()
AbstractAdapterNodebuildChildAdapters in class AbstractAdapterNodepublic boolean getParseStringAsXML()
setParseStringAsXML(boolean)public void setParseStringAsXML(boolean parseStringAsXML)
parseStringAsXML - getParseStringAsXML()Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.