Java Doc for StringAdapter.java in  » J2EE » webwork-2.2.6 » com » opensymphony » webwork » views » xslt » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » J2EE » webwork 2.2.6 » com.opensymphony.webwork.views.xslt 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


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)


Field Summary
 booleanparseStringAsXML
    

Constructor Summary
public  StringAdapter()
    
public  StringAdapter(AdapterFactory adapterFactory, AdapterNode parent, String propertyName, String value)
    

Method Summary
protected  ListbuildChildAdapters()
    
public  booleangetParseStringAsXML()
    
protected  StringgetStringValue()
     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  voidsetParseStringAsXML(boolean parseStringAsXML)
     When set to true the StringAdapter will interpret its String value as containing XML text and parse it to a DOM Element.

Field Detail
parseStringAsXML
boolean parseStringAsXML(Code)




Constructor Detail
StringAdapter
public StringAdapter()(Code)



StringAdapter
public StringAdapter(AdapterFactory adapterFactory, AdapterNode parent, String propertyName, String value)(Code)




Method Detail
buildChildAdapters
protected List buildChildAdapters()(Code)



getParseStringAsXML
public boolean getParseStringAsXML()(Code)
Is this StringAdapter to interpret its string values as containing XML Text?
See Also:   StringAdapter.setParseStringAsXML(boolean)



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)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.