Changeset 7476
- Timestamp:
- 11/23/06 22:24:38 (5 years ago)
- Location:
- trunk/Jav_XslDom/com/scenari/xsldom/xalan/stree
- Files:
-
- 2 edited
-
CDATASectionImpl.java (modified) (1 diff)
-
TextImpl.java (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Jav_XslDom/com/scenari/xsldom/xalan/stree/CDATASectionImpl.java
r1711 r7476 102 102 * Class to hold information about a CDATASection node 103 103 */ 104 public class CDATASectionImpl extends TextImpl implements CDATASection 105 { 104 public class CDATASectionImpl extends TextImpl implements CDATASection { 106 105 107 /** 108 * Constructor CDATASectionImpl 109 * 110 * 111 * @param doc Document object 112 * @param data CDATASection data 113 */ 114 public CDATASectionImpl(DocumentImpl doc, String data) 115 { 116 super(doc, data); 117 } 106 /** 107 * Constructor CDATASectionImpl 108 * 109 * 110 * @param doc Document object 111 * @param data CDATASection data 112 */ 113 public CDATASectionImpl(DocumentImpl doc, String data) { 114 super(doc, data); 115 } 118 116 119 /** 120 * Constructor CDATASectionImpl 121 * 122 * 123 * @param doc Document object 124 * @param ch Array of characters in CDATASection 125 * @param start Beginning of CDATASection data in the array 126 * @param length Number of characters in CDATASection data in the array 127 */ 128 public CDATASectionImpl(DocumentImpl doc, char ch[], int start, int length) 129 { 130 super(doc, ch, start, length); 131 } 117 /** 118 * Constructor CDATASectionImpl 119 * 120 * 121 * @param doc Document object 122 * @param ch Array of characters in CDATASection 123 * @param start Beginning of CDATASection data in the array 124 * @param length Number of characters in CDATASection data in the array 125 */ 126 public CDATASectionImpl(DocumentImpl doc, char ch[], int start, int length) { 127 super(doc, ch, start, length); 128 } 132 129 133 /** 134 * Returns the node type. 135 * 136 * @return node type 137 */ 138 public short getNodeType() 139 { 140 return Node.CDATA_SECTION_NODE; 141 } 130 /** 131 * Constructor CDATASectionImpl 132 * 133 * 134 * @param doc Document object 135 * @param data CDATASection data 136 */ 137 public CDATASectionImpl(DocumentImpl doc) { 138 super(doc, null, 0, 0); 139 } 142 140 143 /** 144 * Returns the node name. 145 * 146 * @return node name 147 */ 148 public String getNodeName() 149 { 150 return "#cdata-section"; 151 } 141 /** 142 * Returns the node type. 143 * 144 * @return node type 145 */ 146 public short getNodeType() { 147 return Node.CDATA_SECTION_NODE; 148 } 152 149 153 /** 154 * Returns the local part of the qualified name of this node. 155 * <br>For nodes created with a DOM Level 1 method, such as 156 * <code>createElement</code> from the <code>Document</code> interface, 157 * it is <code>null</code>. 158 * @since DOM Level 2 159 * 160 * @return node local name 161 */ 162 public String getLocalName() 163 { 164 return "#cdata-section"; 165 } 150 /** 151 * Returns the node name. 152 * 153 * @return node name 154 */ 155 public String getNodeName() { 156 return "#cdata-section"; 157 } 158 159 /** 160 * Returns the local part of the qualified name of this node. 161 * <br>For nodes created with a DOM Level 1 method, such as 162 * <code>createElement</code> from the <code>Document</code> interface, 163 * it is <code>null</code>. 164 * @since DOM Level 2 165 * 166 * @return node local name 167 */ 168 public String getLocalName() { 169 return "#cdata-section"; 170 } 166 171 167 172 } -
trunk/Jav_XslDom/com/scenari/xsldom/xalan/stree/TextImpl.java
r7438 r7476 174 174 m_start = fsb.length(); // Isolate from internal representation 175 175 m_length = length; 176 fsb.append(ch, start, length); 176 if(m_length>0) { 177 fsb.append(ch, start, length); 178 } 177 179 } 178 180 } … … 278 280 * The number of characters to read from the array. 279 281 */ 280 void appendText(char ch[], int start, int length) {282 public void appendText(char ch[], int start, int length) { 281 283 if (null == m_data) { 282 284 if(m_doc.m_chars.size() == m_start + m_length) {
Note: See TracChangeset
for help on using the changeset viewer.