KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > net > sf > saxon > tree > NodeFactory


1 package net.sf.saxon.tree;
2 import net.sf.saxon.event.LocationProvider;
3 import net.sf.saxon.om.AttributeCollectionImpl;
4 import net.sf.saxon.om.NodeInfo;
5
6
7 /**
8   * Interface NodeFactory. <br>
9   * A Factory for nodes used to build a tree. <br>
10   * Currently only allows Element nodes to be user-constructed.
11   * @author Michael H. Kay
12   * @version 25 February 2000
13   */

14
15 public interface NodeFactory {
16
17     /**
18     * Create an Element node
19     * @param parent The parent element
20     * @param nameCode The element name
21     * @param attlist The attribute collection, excluding any namespace attributes
22     * @param namespaces List of new namespace declarations for this element, as a sequence
23     * of namespace codes representing pairs of strings: (prefix1, uri1), (prefix2, uri2)...
24     * @param namespacesUsed the number of elemnts of the namespaces array actually used
25     * @param locator Indicates the source document and line number containing the node
26     * @param locationId Indicates the source document and line number containing the node
27     * @param sequenceNumber Sequence number to be assigned to represent document order.
28     */

29
30     public ElementImpl makeElementNode(
31             NodeInfo parent,
32             int nameCode,
33             AttributeCollectionImpl attlist,
34             int[] namespaces,
35             int namespacesUsed,
36             LocationProvider locator,
37             int locationId,
38             int sequenceNumber);
39
40 }
41
42 //
43
// The contents of this file are subject to the Mozilla Public License Version 1.0 (the "License");
44
// you may not use this file except in compliance with the License. You may obtain a copy of the
45
// License at http://www.mozilla.org/MPL/
46
//
47
// Software distributed under the License is distributed on an "AS IS" basis,
48
// WITHOUT WARRANTY OF ANY KIND, either express or implied.
49
// See the License for the specific language governing rights and limitations under the License.
50
//
51
// The Original Code is: all this file.
52
//
53
// The Initial Developer of the Original Code is Michael H. Kay.
54
//
55
// Portions created by (your name) are Copyright (C) (your legal entity). All Rights Reserved.
56
//
57
// Contributor(s): none.
58
//
59
Popular Tags