Package org.jpmml.model
Class JAXBSerializer
- java.lang.Object
-
- org.jpmml.model.JAXBSerializer
-
- All Implemented Interfaces:
Serializer,TextSerializer
public class JAXBSerializer extends java.lang.Object implements TextSerializer
-
-
Constructor Summary
Constructors Constructor Description JAXBSerializer()JAXBSerializer(jakarta.xml.bind.JAXBContext context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PMMLObjectdeserialize(java.io.InputStream is)voidmarshal(PMMLObject object, javax.xml.transform.Result result)Marshals a class model object.voidmarshalPretty(PMMLObject object, javax.xml.transform.Result result)Marshals a class model object in a pretty way.voidserialize(PMMLObject object, java.io.OutputStream os)voidserializePretty(PMMLObject object, java.io.OutputStream os)PMMLObjectunmarshal(javax.xml.transform.Source source)Unmarshals a class model object.
-
-
-
Method Detail
-
deserialize
public PMMLObject deserialize(java.io.InputStream is) throws jakarta.xml.bind.JAXBException
- Specified by:
deserializein interfaceSerializer- Throws:
jakarta.xml.bind.JAXBException- See Also:
unmarshal(Source)
-
serialize
public void serialize(PMMLObject object, java.io.OutputStream os) throws jakarta.xml.bind.JAXBException
- Specified by:
serializein interfaceSerializer- Throws:
jakarta.xml.bind.JAXBException- See Also:
marshal(PMMLObject, Result)
-
serializePretty
public void serializePretty(PMMLObject object, java.io.OutputStream os) throws jakarta.xml.bind.JAXBException
- Specified by:
serializePrettyin interfaceTextSerializer- Throws:
jakarta.xml.bind.JAXBException- See Also:
marshalPretty(PMMLObject, Result)
-
unmarshal
public PMMLObject unmarshal(javax.xml.transform.Source source) throws jakarta.xml.bind.JAXBException
Unmarshals a class model object.
- Parameters:
source- Input source containing a complete PMML schema version 4.4 document or any fragment of it.- Throws:
jakarta.xml.bind.JAXBException
-
marshal
public void marshal(PMMLObject object, javax.xml.transform.Result result) throws jakarta.xml.bind.JAXBException
Marshals a class model object.
- Throws:
jakarta.xml.bind.JAXBException
-
marshalPretty
public void marshalPretty(PMMLObject object, javax.xml.transform.Result result) throws jakarta.xml.bind.JAXBException
Marshals a class model object in a pretty way.
- Throws:
jakarta.xml.bind.JAXBException
-
-