All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.sf.saxon.tree.NodeFactory Maven / Gradle / Ivy

Go to download

Provides a basic XSLT 2.0 and XQuery 1.0 processor (W3C Recommendations, January 2007). Command line interfaces and implementations of several Java APIs (DOM, XPath, s9api) are also included.

The newest version!
package net.sf.saxon.tree;
import net.sf.saxon.event.LocationProvider;
import net.sf.saxon.om.AttributeCollectionImpl;
import net.sf.saxon.om.NodeInfo;


/**
  * Interface NodeFactory. 
* A Factory for nodes used to build a tree.
* Currently only allows Element nodes to be user-constructed. * @author Michael H. Kay * @version 25 February 2000 */ public interface NodeFactory { /** * Create an Element node * @param parent The parent element * @param nameCode The element name * @param attlist The attribute collection, excluding any namespace attributes * @param namespaces List of new namespace declarations for this element, as a sequence * of namespace codes representing pairs of strings: (prefix1, uri1), (prefix2, uri2)... * @param namespacesUsed the number of elemnts of the namespaces array actually used * @param locator Indicates the source document and line number containing the node * @param locationId Indicates the source document and line number containing the node * @param sequenceNumber Sequence number to be assigned to represent document order. */ public ElementImpl makeElementNode( NodeInfo parent, int nameCode, AttributeCollectionImpl attlist, int[] namespaces, int namespacesUsed, LocationProvider locator, int locationId, int sequenceNumber); } // // The contents of this file are subject to the Mozilla Public License Version 1.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.mozilla.org/MPL/ // // Software distributed under the License is distributed on an "AS IS" basis, // WITHOUT WARRANTY OF ANY KIND, either express or implied. // See the License for the specific language governing rights and limitations under the License. // // The Original Code is: all this file. // // The Initial Developer of the Original Code is Michael H. Kay. // // Portions created by (your name) are Copyright (C) (your legal entity). All Rights Reserved. // // Contributor(s): none. //




© 2015 - 2025 Weber Informatics LLC | Privacy Policy