dk.brics.xact.operations
Class XMLSource

java.lang.Object
  extended by javax.xml.transform.sax.SAXSource
      extended by dk.brics.xact.operations.XMLSource
All Implemented Interfaces:
Source

public class XMLSource
extends SAXSource

JAXP SAXSource for XML templates. Gaps in the XML templates are ignored.


Field Summary
 
Fields inherited from class javax.xml.transform.sax.SAXSource
FEATURE
 
Constructor Summary
XMLSource(XML x)
          Creates a JAXP SAXSource for the given XML template.
 
Method Summary
 XMLReader getXMLReader()
          Returns the XMLReader to be used for the JAXP SAXSource.
 void setDocument(XML x)
          Sets the XML template.
 void setInputSource(InputSource inputSource)
           
 void setXMLReader(XMLReader reader)
          Sets the XMLReader used for the JAXP SAXSource.
 
Methods inherited from class javax.xml.transform.sax.SAXSource
getInputSource, getSystemId, setSystemId, sourceToInputSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLSource

public XMLSource(XML x)
Creates a JAXP SAXSource for the given XML template.

Method Detail

getXMLReader

public XMLReader getXMLReader()
Returns the XMLReader to be used for the JAXP SAXSource.

Overrides:
getXMLReader in class SAXSource

setDocument

public void setDocument(XML x)
Sets the XML template.


setInputSource

public void setInputSource(InputSource inputSource)
                    throws UnsupportedOperationException
Overrides:
setInputSource in class SAXSource
Throws:
UnsupportedOperationException

setXMLReader

public void setXMLReader(XMLReader reader)
                  throws UnsupportedOperationException
Sets the XMLReader used for the JAXP SAXSource.

Overrides:
setXMLReader in class SAXSource
Throws:
UnsupportedOperationException


Copyright © 2005-2011 Aarhus University.