KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > icl > saxon > tree > NodeFactory


1 package com.icl.saxon.tree;
2 import com.icl.saxon.om.NodeInfo;
3
4 import org.xml.sax.Locator JavaDoc;
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 <A HREF="mailto:mhkay@iclway.co.uk>Michael H. Kay</A>
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 name 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 sequenceNumber Sequence number to be assigned to represent document order.
27     */

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