org.plasma.sdo.xml.xslt
Class XSLTDataBinding

java.lang.Object
  extended by org.plasma.sdo.xml.xslt.XSLTDataBinding
All Implemented Interfaces:
DataBinding

public class XSLTDataBinding
extends java.lang.Object
implements DataBinding


Field Summary
static java.lang.Class<?>[] FACTORIES
           
static java.lang.String FILENAME_SCHEMA_CHAIN_ROOT
           
static java.lang.Class<?> RESOURCE_CLASS
           
 
Constructor Summary
XSLTDataBinding(BindingValidationEventHandler validationEventHandler)
           
 
Method Summary
 java.lang.Class<?>[] getObjectFactories()
           
 BindingValidationEventHandler getValidationEventHandler()
           
 java.lang.String marshal(java.lang.Object root)
           
 void marshal(java.lang.Object root, java.io.OutputStream stream)
           
 java.lang.Object unmarshal(java.io.InputStream stream)
           
 java.lang.Object unmarshal(java.lang.String xml)
           
 java.lang.Object validate(java.io.InputStream xml)
           
 java.lang.Object validate(java.lang.String xml)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FILENAME_SCHEMA_CHAIN_ROOT

public static java.lang.String FILENAME_SCHEMA_CHAIN_ROOT

RESOURCE_CLASS

public static java.lang.Class<?> RESOURCE_CLASS

FACTORIES

public static java.lang.Class<?>[] FACTORIES
Constructor Detail

XSLTDataBinding

public XSLTDataBinding(BindingValidationEventHandler validationEventHandler)
                throws javax.xml.bind.JAXBException,
                       org.xml.sax.SAXException
Throws:
javax.xml.bind.JAXBException
org.xml.sax.SAXException
Method Detail

getObjectFactories

public java.lang.Class<?>[] getObjectFactories()

marshal

public java.lang.String marshal(java.lang.Object root)
                         throws javax.xml.bind.JAXBException
Specified by:
marshal in interface DataBinding
Throws:
javax.xml.bind.JAXBException

marshal

public void marshal(java.lang.Object root,
                    java.io.OutputStream stream)
             throws javax.xml.bind.JAXBException
Throws:
javax.xml.bind.JAXBException

unmarshal

public java.lang.Object unmarshal(java.lang.String xml)
                           throws javax.xml.bind.JAXBException
Specified by:
unmarshal in interface DataBinding
Throws:
javax.xml.bind.JAXBException

unmarshal

public java.lang.Object unmarshal(java.io.InputStream stream)
                           throws javax.xml.bind.JAXBException
Specified by:
unmarshal in interface DataBinding
Throws:
javax.xml.bind.JAXBException

validate

public java.lang.Object validate(java.lang.String xml)
                          throws javax.xml.bind.JAXBException
Specified by:
validate in interface DataBinding
Throws:
javax.xml.bind.JAXBException

validate

public java.lang.Object validate(java.io.InputStream xml)
                          throws javax.xml.bind.JAXBException,
                                 javax.xml.bind.UnmarshalException
Specified by:
validate in interface DataBinding
Throws:
javax.xml.bind.JAXBException
javax.xml.bind.UnmarshalException

getValidationEventHandler

public BindingValidationEventHandler getValidationEventHandler()
                                                        throws javax.xml.bind.JAXBException
Specified by:
getValidationEventHandler in interface DataBinding
Throws:
javax.xml.bind.JAXBException


Copyright © 2013. All Rights Reserved.