|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnl.hippo.client.webdav.binding.facets.FacetsMarshaller
public class FacetsMarshaller
Custom Jibx Marshaller/Unmarshaller for binding the facets XML to the HashMap of facets in FacetCollectionImpl
| Constructor Summary | |
|---|---|
FacetsMarshaller(String uri,
int index,
String name)
|
|
| Method Summary | |
|---|---|
boolean |
isExtension(int index)
Copied javadoc from org.jibx.runtime.IMarshaller. |
boolean |
isPresent(IUnmarshallingContext ctx)
Copied javadoc from org.jibx.runtime.IUnMarshaller. |
void |
marshal(Object obj,
IMarshallingContext ictx)
Copied javadoc from org.jibx.runtime.IUnMarshaller. |
Object |
unmarshal(Object obj,
IUnmarshallingContext ictx)
Copied javadoc from org.jibx.runtime.IUnMarshaller. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FacetsMarshaller(String uri,
int index,
String name)
| Method Detail |
|---|
public boolean isPresent(IUnmarshallingContext ctx)
throws JiBXException
Check if instance present in XML. This method can be called when the unmarshalling context is positioned at or just before the start of the data corresponding to an instance of this mapping. It verifies that the expected data is present.
isPresent in interface IUnmarshallerctx - unmarshalling context
true if expected parse data found,
false if not
JiBXException - on error in unmarshalling process
public Object unmarshal(Object obj,
IUnmarshallingContext ictx)
throws JiBXException
Unmarshal instance of handled class. This method call is responsible for all handling of the unmarshalling of an object from XML text, including creating the instance of the handled class if an instance is not supplied. When it is called the unmarshalling context is always positioned at or just before the start tag corresponding to the start of the class data.
unmarshal in interface IUnmarshallerobj - object to be unmarshalled (may be null)ictx - unmarshalling context
null)
JiBXException - on error in unmarshalling processpublic boolean isExtension(int index)
Check if marshaller represents an extension mapping. This is used by the framework in generated code to verify compatibility of objects being marshalled using an abstract mapping.
isExtension in interface IMarshallerindex - abstract mapping index to be checked
true if this mapping is an extension of the abstract
mapping, false if not
public void marshal(Object obj,
IMarshallingContext ictx)
throws JiBXException
Marshal instance of handled class. This method call is responsible for all handling of the marshalling of an object to XML text. It is called at the point where the start tag for the associated element should be generated.
marshal in interface IMarshallerobj - object to be marshalled (may be null if property is
not optional)ictx - XML text output context
JiBXException - on error in marshalling process
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||