Ignore:
Timestamp:
11/23/06 22:24:38 (6 years ago)
Author:
sys
Message:

Implementation api IData.getNode()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Jav_XslDom/com/scenari/xsldom/xalan/stree/CDATASectionImpl.java

    r1711 r7476  
    102102 * Class to hold information about a CDATASection node 
    103103 */ 
    104 public class CDATASectionImpl extends TextImpl implements CDATASection 
    105 { 
     104public class CDATASectionImpl extends TextImpl implements CDATASection { 
    106105 
    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        } 
    118116 
    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        } 
    132129 
    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        } 
    142140 
    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        } 
    152149 
    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        } 
    166171 
    167172} 
Note: See TracChangeset for help on using the changeset viewer.