<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<
HTML>
<
h1>TODO</
h1>
<
li>On request validation instead of Vetos and other setter constrains (see JAXB)
<
li>Use setPROP (checks WF and R/O and call impl) and setPROPImpl (just set and fire) pattern
<
li>
mark checkXXX final ()
<
H1>Tree package</
H1>
<p>It represent parser tree as tree of beans. The beans should
form the tree using BeanContext.
<p>The tree is produced by <
tt>TreeBuilder</
tt> that is basically a SAX handler.
<h2>Document and Declaration Nodes</h2>
Basically two kinds of nodes exist:
<
ul>
<
li>declaratin nodes <
tt>*.Decl[.]java</
tt>
<
li>document nodes
</
ul>
from any suitable document node can be obtained its declaration node by <
tt>getDecl()</
tt>.
<h3>Document Nodes</h3>
Element nodes can be classified as:
<
ul>
<
li>nodes that allows subelements <
tt>boolean allowElements()</
tt>
<
li>nodes that allows text <
tt>boolean allowText()</
tt>
</
ul>
<h2>Indentation</h2>
The tree nodes implement method <
tt>toXMLString(bool,
Map)</
tt> that is used
while generating plain text from the tree. The second argument holds
formatting arguments or null for no formating is applied at all.
</
HTML>