|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.util.xml.xslt.XMLSourceFactory
This factory class produces implementation instances of the interfaces
in this package. Instances of this class should not be assumed to be
thread-safe.
Supported API: true
Extendable: false
Field Summary | |
private static String |
CLASSNAME
|
private static String |
RESOURCE
|
Constructor Summary | |
XMLSourceFactory()
|
Method Summary | |
(package private) static XMLSource |
convertSAXtoSAX2(XMLSource xmlSource)
|
static XMLSourceFactory |
getFactory()
Create an instance of the defauly implementation provided with Windchill. |
static XMLSourceFactory |
getFactory(SAXParserFactory saxParserFactory,
DocumentBuilderFactory documentBuilderFactory,
TransformerFactory transformerFactory)
Create an instance specifying factory instances explicitly. |
static Parser |
getParserForSAXSource(SAXXMLSource source)
|
static XMLReader |
getXMLReaderForSAX2Source(SAX2XMLSource source)
|
DOMXMLSource |
newDOMSource(Node node)
Create a new DOMXMLSource for the provided DOM Node. |
DOMXMLSource |
newDOMSource(Node node,
String baseURI)
Create a new DOMXMLSource for the provided DOM Node and base URI. |
ReaderXMLSource |
newReaderSource(Reader reader)
Create a new ReaderXMLSource for the provided Reader. |
ReaderXMLSource |
newReaderSource(Reader reader,
String baseURI)
Create a new ReaderXMLSource for the provided Reader and base URI. |
StreamXMLSource |
newStreamSource(InputStream inputStream)
Create a new StreamXMLSource for the provided InputStream. |
StreamXMLSource |
newStreamSource(InputStream inputStream,
String baseURI)
Create a new StreamXMLSource for the provided InputStream and base URI. |
abstract Stylesheet |
newStylesheet(XMLSource xslSource)
Create a new Stylesheet instance for the XSL document identified by the XMLSource. |
URLXMLSource |
newURLSource(File file)
Create a new URLXMLSource for the provided File. |
URLXMLSource |
newURLSource(URL url)
Create a new URLXMLSource for the provided URL. |
URLXMLSource |
newURLSource(URL url,
String baseURI)
Create a new URLXMLSource for the provided URL and base URI. |
abstract XSLTransform |
newXSLTransform(XMLSource xmlSource,
Stylesheet stylesheet,
Hashtable inputParameters)
Create an XSLTransform instance to apply the stylesheet to the XML document identified by xmlSource. |
abstract XSLTransform |
newXSLTransform(XMLSource xmlSource,
Stylesheet stylesheet,
Hashtable inputParameters,
String baseURI)
Create an XSLTransform instance to apply the stylesheet to the XML document identified by xmlSource. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
Constructor Detail |
public XMLSourceFactory()
Method Detail |
public static XMLSourceFactory getFactory()
public URLXMLSource newURLSource(URL url)
url
-
public URLXMLSource newURLSource(URL url, String baseURI)
document()
to load additional XML
data using relative URLs with a base location that differs from the
XML source data's URL
url
- baseURI
-
public URLXMLSource newURLSource(File file) throws MalformedURLException
file
-
MalformedURLException
public DOMXMLSource newDOMSource(Node node)
document()
to fail when URLs passed to it are not fully
qualified. Similarly, DTDs referenced from DOCTYPE tags within the
XML document without fully qualified URLs will not be found.
node
-
public DOMXMLSource newDOMSource(Node node, String baseURI)
document()
with URLs that are
relative, will be relative to the base URI. Similarly, DTD's that
are referenced from DOCTYPE tags in the XML data via relative URLs
will be loaded from the base URI.
node
- baseURI
-
public StreamXMLSource newStreamSource(InputStream inputStream)
document()
to fail when URLs passed to it are not fully
qualified. Similarly, DTDs referenced from DOCTYPE tags within the
XML document without fully qualified URLs will not be found.
inputStream
-
public StreamXMLSource newStreamSource(InputStream inputStream, String baseURI)
document()
with URLs that are
relative, will be relative to the base URI. Similarly, DTD's that
are referenced from DOCTYPE tags in the XML data via relative URLs
will be loaded from the base URI.
inputStream
- baseURI
-
public ReaderXMLSource newReaderSource(Reader reader)
document()
to fail when URLs passed to it are not fully
qualified. Similarly, DTDs referenced from DOCTYPE tags within the
XML document without fully qualified URLs will not be found.
reader
-
public ReaderXMLSource newReaderSource(Reader reader, String baseURI)
document()
with URLs that are
relative, will be relative to the base URI. Similarly, DTD's that
are referenced from DOCTYPE tags in the XML data via relative URLs
will be loaded from the base URI.
reader
- baseURI
-
public abstract XSLTransform newXSLTransform(XMLSource xmlSource, Stylesheet stylesheet, Hashtable inputParameters) throws SAXException, IOException
xmlSource
- stylesheet
- inputParameters
-
SAXException
IOException
Stylesheet
,
XMLSource
public abstract XSLTransform newXSLTransform(XMLSource xmlSource, Stylesheet stylesheet, Hashtable inputParameters, String baseURI) throws SAXException, IOException
xmlSource
- stylesheet
- inputParameters
- baseURI
-
SAXException
IOException
Stylesheet
,
XMLSource
public abstract Stylesheet newStylesheet(XMLSource xslSource) throws SAXException, IOException
xslSource
-
SAXException
IOException
XSLTransform
,
newXSLTransform(wt.util.xml.xslt.XMLSource, wt.util.xml.xslt.Stylesheet, java.util.Hashtable)
public static XMLSourceFactory getFactory(SAXParserFactory saxParserFactory, DocumentBuilderFactory documentBuilderFactory, TransformerFactory transformerFactory)
saxParserFactory
- documentBuilderFactory
- transformerFactory
-
public static Parser getParserForSAXSource(SAXXMLSource source)
public static XMLReader getXMLReaderForSAX2Source(SAX2XMLSource source)
static XMLSource convertSAXtoSAX2(XMLSource xmlSource)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |