| java.lang.Object com.opensymphony.webwork.views.xslt.AbstractAdapterNode com.opensymphony.webwork.views.xslt.AbstractAdapterElement com.opensymphony.webwork.views.xslt.StringAdapter
StringAdapter | public class StringAdapter extends AbstractAdapterElement (Code) | | StringAdapter adapts a Java String value to a DOM Element with the specified
property name containing the String's text.
e.g. a property String getFoo() { return "My Text!"; }
will appear in the result DOM as:
MyText!
Subclasses may override the getStringValue() method in order to use StringAdapter
as a simplified custom XML adapter for Java types. A subclass can enable XML
parsing of the value string via the setParseStringAsXML() method and then
override getStringValue() to return a String containing the custom formatted XML.
author: Philipp Meier author: Pat Niemeyer (pat@pat.net) |
Method Summary | |
protected List | buildChildAdapters() | public boolean | getParseStringAsXML() | protected String | getStringValue() Get the object to be adapted as a String value.
This method can be overridden by subclasses that wish to use StringAdapter
as a simplified customizable XML adapter for Java types. | public 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. |
parseStringAsXML | boolean parseStringAsXML(Code) | | |
StringAdapter | public StringAdapter()(Code) | | |
buildChildAdapters | protected List buildChildAdapters()(Code) | | |
getStringValue | protected String getStringValue()(Code) | | Get the object to be adapted as a String value.
This method can be overridden by subclasses that wish to use StringAdapter
as a simplified customizable XML adapter for Java types. A subclass can
enable parsing of the value string as containing XML text via the
setParseStringAsXML() method and then override getStringValue() to return a
String containing the custom formatted XML.
|
setParseStringAsXML | public void setParseStringAsXML(boolean parseStringAsXML)(Code) | | When set to true the StringAdapter will interpret its String value
as containing XML text and parse it to a DOM Element. The new DOM
Element will be a child of this String element. (i.e. wrapped in an
element of the property name specified for this StringAdapter).
Parameters: parseStringAsXML - See Also: StringAdapter.getParseStringAsXML() |
Methods inherited from com.opensymphony.webwork.views.xslt.AbstractAdapterElement | protected Map buildAttributeAdapters()(Code)(Java Doc) public String getAttribute(String string)(Code)(Java Doc) protected Map getAttributeAdapters()(Code)(Java Doc) public String getAttributeNS(String string, String string1)(Code)(Java Doc) public Attr getAttributeNode(String name)(Code)(Java Doc) public Attr getAttributeNodeNS(String string, String string1)(Code)(Java Doc) public String getNodeName()(Code)(Java Doc) public short getNodeType()(Code)(Java Doc) public TypeInfo getSchemaTypeInfo()(Code)(Java Doc) public String getTagName()(Code)(Java Doc) public boolean hasAttribute(String string)(Code)(Java Doc) public boolean hasAttributeNS(String string, String string1)(Code)(Java Doc) public boolean hasChildNodes()(Code)(Java Doc) public void removeAttribute(String string) throws DOMException(Code)(Java Doc) public void removeAttributeNS(String string, String string1) throws DOMException(Code)(Java Doc) public Attr removeAttributeNode(Attr attr) throws DOMException(Code)(Java Doc) public void setAttribute(String string, String string1) throws DOMException(Code)(Java Doc) public void setAttributeNS(String string, String string1, String string2) throws DOMException(Code)(Java Doc) public Attr setAttributeNode(Attr attr) throws DOMException(Code)(Java Doc) public Attr setAttributeNodeNS(Attr attr) throws DOMException(Code)(Java Doc) public void setIdAttribute(String string, boolean b) throws DOMException(Code)(Java Doc) public void setIdAttributeNS(String string, String string1, boolean b) throws DOMException(Code)(Java Doc) public void setIdAttributeNode(Attr attr, boolean b) throws DOMException(Code)(Java Doc)
|
Methods inherited from com.opensymphony.webwork.views.xslt.AbstractAdapterNode | public Node appendChild(Node node) throws DOMException(Code)(Java Doc) protected List buildChildAdapters()(Code)(Java Doc) public Node cloneNode(boolean b)(Code)(Java Doc) public short compareDocumentPosition(Node node) throws DOMException(Code)(Java Doc) public AdapterFactory getAdapterFactory()(Code)(Java Doc) public NamedNodeMap getAttributes()(Code)(Java Doc) public String getBaseURI()(Code)(Java Doc) protected List getChildAdapters()(Code)(Java Doc) public Node getChildAfter(Node child)(Code)(Java Doc) public Node getChildBefore(Node child)(Code)(Java Doc) public Node getChildBeforeOrAfter(Node child, boolean before)(Code)(Java Doc) public NodeList getChildNodes()(Code)(Java Doc) public NodeList getElementsByTagName(String tagName)(Code)(Java Doc) public NodeList getElementsByTagNameNS(String string, String string1)(Code)(Java Doc) public Object getFeature(String string, String string1)(Code)(Java Doc) public Node getFirstChild()(Code)(Java Doc) public Node getLastChild()(Code)(Java Doc) public String getLocalName()(Code)(Java Doc) public String getNamespaceURI()(Code)(Java Doc) public Node getNextSibling()(Code)(Java Doc) public String getNodeName()(Code)(Java Doc) public short getNodeType()(Code)(Java Doc) public String getNodeValue() throws DOMException(Code)(Java Doc) public Document getOwnerDocument()(Code)(Java Doc) public AdapterNode getParent()(Code)(Java Doc) public Node getParentNode()(Code)(Java Doc) public String getPrefix()(Code)(Java Doc) public Node getPreviousSibling()(Code)(Java Doc) public String getPropertyName()(Code)(Java Doc) public Object getPropertyValue()(Code)(Java Doc) public String getTextContent() throws DOMException(Code)(Java Doc) public Object getUserData(String string)(Code)(Java Doc) public boolean hasAttributes()(Code)(Java Doc) public boolean hasChildNodes()(Code)(Java Doc) public Node insertBefore(Node node, Node node1) throws DOMException(Code)(Java Doc) public boolean isDefaultNamespace(String string)(Code)(Java Doc) public boolean isEqualNode(Node node)(Code)(Java Doc) public boolean isSameNode(Node node)(Code)(Java Doc) public boolean isSupported(String string, String string1)(Code)(Java Doc) public String lookupNamespaceURI(String string)(Code)(Java Doc) public String lookupPrefix(String string)(Code)(Java Doc) public void normalize()(Code)(Java Doc) protected WebWorkException operationNotSupported()(Code)(Java Doc) public Node removeChild(Node node) throws DOMException(Code)(Java Doc) public Node replaceChild(Node node, Node node1) throws DOMException(Code)(Java Doc) public void setAdapterFactory(AdapterFactory adapterFactory)(Code)(Java Doc) protected void setContext(AdapterFactory adapterFactory, AdapterNode parent, String propertyName, Object value)(Code)(Java Doc) public void setNodeValue(String string) throws DOMException(Code)(Java Doc) public void setParent(AdapterNode parent)(Code)(Java Doc) public void setPrefix(String string) throws DOMException(Code)(Java Doc) public void setPropertyName(String name)(Code)(Java Doc) public void setPropertyValue(Object prop)(Code)(Java Doc) public void setTextContent(String string) throws DOMException(Code)(Java Doc) public Object setUserData(String string, Object object, UserDataHandler userDataHandler)(Code)(Java Doc) public String toString()(Code)(Java Doc)
|
|
|