Your browser does not support JavaScript and this site utilizes JavaScript to build content and provide links to additional information. You should either enable JavaScript in your browser settings or use a browser that supports JavaScript in order to take full advantage of this site.
1 16 19 package org.apache.xalan.templates; 20 21 import org.apache.xalan.res.XSLTErrorResources; 22 23 36 public class ElemText extends ElemTemplateElement 37 { 38 39 43 private boolean m_disableOutputEscaping = false; 44 45 65 public void setDisableOutputEscaping(boolean v) 66 { 67 m_disableOutputEscaping = v; 68 } 69 70 90 public boolean getDisableOutputEscaping() 91 { 92 return m_disableOutputEscaping; 93 } 94 95 102 public int getXSLToken() 103 { 104 return Constants.ELEMNAME_TEXT; 105 } 106 107 112 public String getNodeName() 113 { 114 return Constants.ELEMNAME_TEXT_STRING; 115 } 116 117 126 public ElemTemplateElement appendChild(ElemTemplateElement newChild) 127 { 128 129 int type = ((ElemTemplateElement) newChild).getXSLToken(); 130 131 switch (type) 132 { 133 case Constants.ELEMNAME_TEXTLITERALRESULT : 134 break; 135 default : 136 error(XSLTErrorResources.ER_CANNOT_ADD, 137 new Object []{ newChild.getNodeName(), 138 this.getNodeName() }); 140 } 142 143 return super.appendChild(newChild); 144 } 145 } 146
| Popular Tags
|