|
Novell exteNd Web Services SDK API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sssw.jbroker.web.encoding.ValueTypeMarshaler
General purpose marshaler for serializing Java Beans. Only the read/write properties are marshaled.
| Field Summary | |
static com.sssw.jbroker.util.Messages |
_messages
|
| Constructor Summary | |
ValueTypeMarshaler()
Construct a ValueTypeMarshaler, which can marshal
any type. |
|
ValueTypeMarshaler(Class javaType)
Construct a ValueTypeMarshaler, which prefers to
marshal javaType. |
|
ValueTypeMarshaler(Class javaType,
PropertyDescriptor[] propDescs,
Field[] fields)
Construct a ValueTypeMarshaler, which prefers to
marshal javaType. |
|
| Method Summary | |
Object |
deserialize(InputStream is,
Class javaType)
Initialize the given bean object from the given input stream |
Attribute[] |
getAttributes(Object obj)
Get the element attributes |
String |
getMechanismType()
Get the serializer's mechanism type. |
static TypeMap |
getTypeMap(Class javaType)
returns the java to xml TypeMap for the parameter type |
static boolean |
isJAXRPCValueType(Class type)
returns true if the type is a JAX-RPC value type. |
void |
serialize(OutputStream os,
Object obj)
Serialize the given bean object to the given output stream |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final com.sssw.jbroker.util.Messages _messages
| Constructor Detail |
public ValueTypeMarshaler()
ValueTypeMarshaler, which can marshal
any type.
public ValueTypeMarshaler(Class javaType)
ValueTypeMarshaler, which prefers to
marshal javaType. The marshaler can still marshall
other objects, but will perform better with javaType.
The bean properties are marshaled first and then the public fields
in the order they are returned by the java.lang.reflect.Fields getFields method.
javaType - The preferred Java type.
public ValueTypeMarshaler(Class javaType,
PropertyDescriptor[] propDescs,
Field[] fields)
ValueTypeMarshaler, which prefers to
marshal javaType. The marshaler can still marshall
other objects, but will perform better with javaType.
javaType - The preferred Java type.propDescs - The bean properties in the order they will be marshaled.fields - The fields in the order they will be marshaled.| Method Detail |
public String getMechanismType()
getMechanismType in interface Serializerpublic Attribute[] getAttributes(Object obj)
getAttributes in interface Serializerobj - the object that is being serialized
public void serialize(OutputStream os,
Object obj)
throws IOException
serialize in interface Serializeros - the portable output streamobj - the object to write
IOException - if an I/O exception occurred during write
public Object deserialize(InputStream is,
Class javaType)
throws IOException
deserialize in interface Deserializeris - the input stream to read object fromjavaType - the expected Java type
IOException - if an I/O exception occurred duing readpublic static boolean isJAXRPCValueType(Class type)
public static TypeMap getTypeMap(Class javaType)
|
Novell exteNd Web Services SDK API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||