01: /* CData.java
02:
03: {{IS_NOTE
04:
05: Purpose:
06: Description:
07: History:
08: 2001/10/22 20:52:22, Create, Tom M. Yeh.
09: }}IS_NOTE
10:
11: Copyright (C) 2001 Potix Corporation. All Rights Reserved.
12:
13: {{IS_RIGHT
14: This program is distributed under GPL Version 2.0 in the hope that
15: it will be useful, but WITHOUT ANY WARRANTY.
16: }}IS_RIGHT
17: */
18: package org.zkoss.idom;
19:
20: import org.w3c.dom.CDATASection;
21: import org.zkoss.idom.impl.*;
22:
23: /**
24: * The iDOM CDATA.
25: *
26: * @author tomyeh
27: * @see Text
28: */
29: public class CData extends AbstractTextual implements CDATASection {
30: /** Constructor.
31: */
32: public CData(String text) {
33: super (text);
34: }
35:
36: /** Constructor.
37: */
38: public CData() {
39: }
40:
41: //-- AbstractTextual --//
42: protected void checkText(String text) {
43: Verifier.checkCData(text, getLocator());
44: }
45:
46: //-- Item --//
47: public final String getName() {
48: return "#cdata-section";
49: }
50:
51: //-- Node --//
52: public final short getNodeType() {
53: return CDATA_SECTION_NODE;
54: }
55: }
|