1 5 package com.opensymphony.webwork.views.xslt; 6 7 import java.util.ArrayList ; 8 import java.util.List ; 9 10 import org.w3c.dom.Attr ; 11 import org.w3c.dom.DOMException ; 12 import org.w3c.dom.Node ; 13 import org.w3c.dom.TypeInfo ; 14 import org.w3c.dom.UserDataHandler ; 15 16 17 22 public class ToStringAdapter extends DefaultElementAdapter { 23 25 public ToStringAdapter(DOMAdapter rootAdapter, AdapterNode parent, String propertyName, Object value) { 26 super(rootAdapter, parent, propertyName, value); 27 } 28 29 31 protected List buildChildrenAdapters() { 32 List children = new ArrayList (); 33 children.add(new SimpleTextNode(getRootAdapter(), this, "text", getValue())); 34 35 return children; 36 } 37 38 41 public String getBaseURI() { 42 return null; 44 } 45 46 49 public short compareDocumentPosition(Node other) throws DOMException { 50 return 0; 52 } 53 54 57 public String getTextContent() throws DOMException { 58 return null; 60 } 61 62 65 public void setTextContent(String textContent) throws DOMException { 66 68 } 69 70 73 public boolean isSameNode(Node other) { 74 return false; 76 } 77 78 81 public String lookupPrefix(String namespaceURI) { 82 return null; 84 } 85 86 89 public boolean isDefaultNamespace(String namespaceURI) { 90 return false; 92 } 93 94 97 public String lookupNamespaceURI(String prefix) { 98 return null; 100 } 101 102 105 public boolean isEqualNode(Node arg) { 106 return false; 108 } 109 110 113 public Object getFeature(String feature, String version) { 114 return null; 116 } 117 118 121 public Object setUserData(String key, Object data, UserDataHandler handler) { 122 return null; 124 } 125 126 129 public Object getUserData(String key) { 130 return null; 132 } 133 134 137 public TypeInfo getSchemaTypeInfo() { 138 return null; 140 } 141 142 145 public void setIdAttribute(String name, boolean isId) throws DOMException { 146 148 } 149 150 153 public void setIdAttributeNS(String namespaceURI, String localName, boolean isId) throws DOMException { 154 156 } 157 158 161 public void setIdAttributeNode(Attr idAttr, boolean isId) throws DOMException { 162 164 } 165 } 166 | Popular Tags |