net.sf.xolite.transform
Class XMLSerializableSource

java.lang.Object
  extended by javax.xml.transform.sax.SAXSource
      extended by net.sf.xolite.transform.XMLSerializableSource
All Implemented Interfaces:
Source

public class XMLSerializableSource
extends SAXSource

Object allowing a XMLSerializable to be the source of a XSL transformation.

Author:
Olivier Berlanger

Field Summary
 
Fields inherited from class javax.xml.transform.sax.SAXSource
FEATURE
 
Constructor Summary
XMLSerializableSource(XMLSerializable rootSerializable)
           
 
Method Summary
 InputSource getInputSource()
           
 String getSystemId()
           
 XMLReader getXMLReader()
           
protected  SaxXMLSerializer getXMLSerializer()
           
protected  void serialize()
           
 void setInputSource(InputSource inputSource)
           
 void setSystemId(String systemId)
           
 void setXMLReader(XMLReader xreader)
           
 void startPrefixMapping(String prefix, String namespaceUri)
           
 
Methods inherited from class javax.xml.transform.sax.SAXSource
sourceToInputSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLSerializableSource

public XMLSerializableSource(XMLSerializable rootSerializable)
Method Detail

getXMLSerializer

protected SaxXMLSerializer getXMLSerializer()

serialize

protected void serialize()
                  throws SAXException
Throws:
SAXException

startPrefixMapping

public void startPrefixMapping(String prefix,
                               String namespaceUri)
                        throws XMLSerializeException
Throws:
XMLSerializeException

setXMLReader

public void setXMLReader(XMLReader xreader)
Overrides:
setXMLReader in class SAXSource

getXMLReader

public XMLReader getXMLReader()
Overrides:
getXMLReader in class SAXSource

setInputSource

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

getInputSource

public InputSource getInputSource()
Overrides:
getInputSource in class SAXSource

setSystemId

public void setSystemId(String systemId)
Specified by:
setSystemId in interface Source
Overrides:
setSystemId in class SAXSource

getSystemId

public String getSystemId()
Specified by:
getSystemId in interface Source
Overrides:
getSystemId in class SAXSource


Copyright © 2012. All Rights Reserved.