Class Bind
java.lang.Object
net.loomchild.segment.util.Bind
Helper class for JAXB binding.
Responsible for marshalling and unmarshalling using given schema and context.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidWrites given object to given writer validating it.voidWrites given object to a file with given name validating it.Retrieves object from given reader validation the input.Retrieves object from a file with given name validating the input.
-
Field Details
-
marshaller
-
unmarshaller
-
-
Constructor Details
-
Bind
Creates Bind.- Parameters:
context- JAXB contextschema- XML schema
-
-
Method Details
-
marshal
-
marshal
-
unmarshal
-
unmarshal
-