01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * http://www.apache.org/licenses/LICENSE-2.0
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: */
17:
18: package org.apache.xml.serialize;
19:
20: import java.util.Hashtable;
21:
22: /**
23: * Holds the state of the currently serialized element.
24: *
25: * @deprecated This class was deprecated in Xerces 2.9.0. It is recommended
26: * that new applications use the DOM Level 3 LSSerializer or JAXP's Transformation
27: * API for XML (TrAX) for serializing XML. See the Xerces documentation for more
28: * information.
29: * @version $Revision: 476047 $ $Date: 2006-11-16 23:27:45 -0500 (Thu, 16 Nov 2006) $
30: * @author <a href="mailto:arkin@intalio.com">Assaf Arkin</a>
31: * @see BaseMarkupSerializer
32: */
33: public class ElementState {
34:
35: /**
36: * The element's raw tag name (local or prefix:local).
37: */
38: public String rawName;
39:
40: /**
41: * The element's local tag name.
42: */
43: public String localName;
44:
45: /**
46: * The element's namespace URI.
47: */
48: public String namespaceURI;
49:
50: /**
51: * True if element is space preserving.
52: */
53: public boolean preserveSpace;
54:
55: /**
56: * True if element is empty. Turns false immediately
57: * after serializing the first contents of the element.
58: */
59: public boolean empty;
60:
61: /**
62: * True if the last serialized node was an element node.
63: */
64: public boolean afterElement;
65:
66: /**
67: * True if the last serialized node was a comment node.
68: */
69: public boolean afterComment;
70:
71: /**
72: * True if textual content of current element should be
73: * serialized as CDATA section.
74: */
75: public boolean doCData;
76:
77: /**
78: * True if textual content of current element should be
79: * serialized as raw characters (unescaped).
80: */
81: public boolean unescaped;
82:
83: /**
84: * True while inside CData and printing text as CData.
85: */
86: public boolean inCData;
87:
88: /**
89: * Association between namespace URIs (keys) and prefixes (values).
90: */
91: public Hashtable prefixes;
92:
93: }
|