KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > xml > serialize > ElementState


1 /*
2  * Copyright 1999-2002,2004 The Apache Software Foundation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

16
17
18 package org.apache.xml.serialize;
19
20
21 import java.util.Hashtable JavaDoc;
22
23
24 /**
25  * Holds the state of the currently serialized element.
26  *
27  *
28  * @version $Revision: 1.11 $ $Date: 2004/02/24 23:34:03 $
29  * @author <a HREF="mailto:arkin@intalio.com">Assaf Arkin</a>
30  * @see BaseMarkupSerializer
31  */

32 public class ElementState
33 {
34
35
36     /**
37      * The element's raw tag name (local or prefix:local).
38      */

39     public String JavaDoc rawName;
40
41
42     /**
43      * The element's local tag name.
44      */

45     public String JavaDoc localName;
46
47
48     /**
49      * The element's namespace URI.
50      */

51     public String JavaDoc namespaceURI;
52
53
54     /**
55      * True if element is space preserving.
56      */

57     public boolean preserveSpace;
58
59
60     /**
61      * True if element is empty. Turns false immediately
62      * after serializing the first contents of the element.
63      */

64     public boolean empty;
65
66
67     /**
68      * True if the last serialized node was an element node.
69      */

70     public boolean afterElement;
71
72
73     /**
74      * True if the last serialized node was a comment node.
75      */

76     public boolean afterComment;
77
78
79     /**
80      * True if textual content of current element should be
81      * serialized as CDATA section.
82      */

83     public boolean doCData;
84
85
86     /**
87      * True if textual content of current element should be
88      * serialized as raw characters (unescaped).
89      */

90     public boolean unescaped;
91
92
93     /**
94      * True while inside CData and printing text as CData.
95      */

96     public boolean inCData;
97
98
99     /**
100      * Association between namespace URIs (keys) and prefixes (values).
101      */

102     public Hashtable JavaDoc prefixes;
103
104
105 }
106
Popular Tags