author | joehw |
Tue, 29 Jul 2014 20:52:36 -0700 | |
changeset 25834 | aba3efbf4ec5 |
parent 12457 | c348e06f0e82 |
permissions | -rw-r--r-- |
6 | 1 |
/* |
2 |
* reserved comment block |
|
3 |
* DO NOT REMOVE OR ALTER! |
|
4 |
*/ |
|
5 |
/* |
|
25834
aba3efbf4ec5
8035467: Xerces Update: Move to Xalan based DOM L3 serializer. Deprecate Xerces' native serializer.
joehw
parents:
12457
diff
changeset
|
6 |
* Licensed to the Apache Software Foundation (ASF) under one or more |
aba3efbf4ec5
8035467: Xerces Update: Move to Xalan based DOM L3 serializer. Deprecate Xerces' native serializer.
joehw
parents:
12457
diff
changeset
|
7 |
* contributor license agreements. See the NOTICE file distributed with |
aba3efbf4ec5
8035467: Xerces Update: Move to Xalan based DOM L3 serializer. Deprecate Xerces' native serializer.
joehw
parents:
12457
diff
changeset
|
8 |
* this work for additional information regarding copyright ownership. |
aba3efbf4ec5
8035467: Xerces Update: Move to Xalan based DOM L3 serializer. Deprecate Xerces' native serializer.
joehw
parents:
12457
diff
changeset
|
9 |
* The ASF licenses this file to You under the Apache License, Version 2.0 |
aba3efbf4ec5
8035467: Xerces Update: Move to Xalan based DOM L3 serializer. Deprecate Xerces' native serializer.
joehw
parents:
12457
diff
changeset
|
10 |
* (the "License"); you may not use this file except in compliance with |
aba3efbf4ec5
8035467: Xerces Update: Move to Xalan based DOM L3 serializer. Deprecate Xerces' native serializer.
joehw
parents:
12457
diff
changeset
|
11 |
* the License. You may obtain a copy of the License at |
6 | 12 |
* |
13 |
* http://www.apache.org/licenses/LICENSE-2.0 |
|
14 |
* |
|
15 |
* Unless required by applicable law or agreed to in writing, software |
|
16 |
* distributed under the License is distributed on an "AS IS" BASIS, |
|
17 |
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
18 |
* See the License for the specific language governing permissions and |
|
19 |
* limitations under the License. |
|
20 |
*/ |
|
21 |
||
22 |
||
23 |
package com.sun.org.apache.xml.internal.serialize; |
|
24 |
||
25 |
||
26 |
import java.util.Hashtable; |
|
27 |
||
28 |
||
29 |
/** |
|
30 |
* Holds the state of the currently serialized element. |
|
31 |
* |
|
32 |
* @author <a href="mailto:arkin@intalio.com">Assaf Arkin</a> |
|
33 |
* @see BaseMarkupSerializer |
|
25834
aba3efbf4ec5
8035467: Xerces Update: Move to Xalan based DOM L3 serializer. Deprecate Xerces' native serializer.
joehw
parents:
12457
diff
changeset
|
34 |
* |
aba3efbf4ec5
8035467: Xerces Update: Move to Xalan based DOM L3 serializer. Deprecate Xerces' native serializer.
joehw
parents:
12457
diff
changeset
|
35 |
* @deprecated As of JDK 1.9, Xerces 2.9.0, Xerces DOM L3 Serializer implementation |
aba3efbf4ec5
8035467: Xerces Update: Move to Xalan based DOM L3 serializer. Deprecate Xerces' native serializer.
joehw
parents:
12457
diff
changeset
|
36 |
* is replaced by that of Xalan. Main class |
aba3efbf4ec5
8035467: Xerces Update: Move to Xalan based DOM L3 serializer. Deprecate Xerces' native serializer.
joehw
parents:
12457
diff
changeset
|
37 |
* {@link com.sun.org.apache.xml.internal.serialize.DOMSerializerImpl} is replaced |
aba3efbf4ec5
8035467: Xerces Update: Move to Xalan based DOM L3 serializer. Deprecate Xerces' native serializer.
joehw
parents:
12457
diff
changeset
|
38 |
* by {@link com.sun.org.apache.xml.internal.serializer.dom3.LSSerializerImpl}. |
6 | 39 |
*/ |
40 |
public class ElementState |
|
41 |
{ |
|
42 |
||
43 |
||
44 |
/** |
|
45 |
* The element's raw tag name (local or prefix:local). |
|
46 |
*/ |
|
47 |
public String rawName; |
|
48 |
||
49 |
||
50 |
/** |
|
51 |
* The element's local tag name. |
|
52 |
*/ |
|
53 |
public String localName; |
|
54 |
||
55 |
||
56 |
/** |
|
57 |
* The element's namespace URI. |
|
58 |
*/ |
|
59 |
public String namespaceURI; |
|
60 |
||
61 |
||
62 |
/** |
|
63 |
* True if element is space preserving. |
|
64 |
*/ |
|
65 |
public boolean preserveSpace; |
|
66 |
||
67 |
||
68 |
/** |
|
69 |
* True if element is empty. Turns false immediately |
|
70 |
* after serializing the first contents of the element. |
|
71 |
*/ |
|
72 |
public boolean empty; |
|
73 |
||
74 |
||
75 |
/** |
|
76 |
* True if the last serialized node was an element node. |
|
77 |
*/ |
|
78 |
public boolean afterElement; |
|
79 |
||
80 |
||
81 |
/** |
|
82 |
* True if the last serialized node was a comment node. |
|
83 |
*/ |
|
84 |
public boolean afterComment; |
|
85 |
||
86 |
||
87 |
/** |
|
88 |
* True if textual content of current element should be |
|
89 |
* serialized as CDATA section. |
|
90 |
*/ |
|
91 |
public boolean doCData; |
|
92 |
||
93 |
||
94 |
/** |
|
95 |
* True if textual content of current element should be |
|
96 |
* serialized as raw characters (unescaped). |
|
97 |
*/ |
|
98 |
public boolean unescaped; |
|
99 |
||
100 |
||
101 |
/** |
|
102 |
* True while inside CData and printing text as CData. |
|
103 |
*/ |
|
104 |
public boolean inCData; |
|
105 |
||
106 |
||
107 |
/** |
|
108 |
* Association between namespace URIs (keys) and prefixes (values). |
|
109 |
*/ |
|
110 |
public Hashtable prefixes; |
|
111 |
||
112 |
||
113 |
} |