|
XTAS Project (0.6 beta)
|
PREV CLASS
NEXT CLASS |
FRAMES
NO FRAMES |
SUMMARY: INNER | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD |
xtas.object
Interface ObjectMarshaller
- All Known Implementing Classes:
- CastorMappedMarshaller, CastorClassMarshaller
- public interface ObjectMarshaller
Abstract Java-Object/ XML marshaller/unmarshaller
Every concrete marshaller must implement this.
- Version:
- $Id: ObjectMarshaller.java,v 1.5 2003/03/26 13:37:01 geaz Exp $
Method Summary |
void |
loadMapping(java.lang.Object source)
Loads mapping for marshalling/unmarshalling.
|
org.w3c.dom.Document |
marshal(java.lang.Object obj)
Marshals Object to XML (as DOM Document) using loaded mapping
Note: the loadMapping() must be called first |
java.util.Collection |
unmarshal(org.w3c.dom.Document source)
Unmarshals XML (as DOM Document) to Collection of Objects using loaded mapping
Note: the loadMapping() must be called first |
loadMapping
public void loadMapping(java.lang.Object source)
throws ObjectMappingException
- Loads mapping for marshalling/unmarshalling.
As it is does not be realised for now constraints for
mapping's format - incoming object is ANY subclass
of Java Object
unmarshal
public java.util.Collection unmarshal(org.w3c.dom.Document source)
throws ObjectMarshalException,
ObjectMappingException
- Unmarshals XML (as DOM Document) to Collection of Objects using loaded mapping
Note: the loadMapping() must be called first
marshal
public org.w3c.dom.Document marshal(java.lang.Object obj)
throws ObjectMarshalException,
ObjectMappingException
- Marshals Object to XML (as DOM Document) using loaded mapping
Note: the loadMapping() must be called first
|
XTAS Project (0.6 beta)
|
PREV CLASS
NEXT CLASS |
FRAMES
NO FRAMES |
SUMMARY: INNER | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD |