|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.axis.encoding.ser.BeanSerializer
General purpose serializer/deserializerFactory for an arbitrary java bean.
| Field Summary | |
protected BeanPropertyDescriptor[] |
propertyDescriptor
|
protected TypeDesc |
typeDesc
|
| Constructor Summary | |
BeanSerializer(Class javaType,
javax.xml.namespace.QName xmlType)
|
|
BeanSerializer(Class javaType,
javax.xml.namespace.QName xmlType,
TypeDesc typeDesc)
|
|
BeanSerializer(Class javaType,
javax.xml.namespace.QName xmlType,
TypeDesc typeDesc,
BeanPropertyDescriptor[] propertyDescriptor)
|
|
| Method Summary | |
String |
getMechanismType()
|
protected Attributes |
getObjectAttributes(Object value,
Attributes attributes,
SerializationContext context)
Check for meta-data in the bean that will tell us if any of the properties are actually attributes, add those to the element attribute list |
void |
serialize(javax.xml.namespace.QName name,
Attributes attributes,
Object value,
SerializationContext context)
Serialize a bean. |
protected void |
writeAttribute(Types types,
String fieldName,
Class fieldType,
javax.xml.namespace.QName fieldXmlType,
Element where)
write aa attribute element and append it to the 'where' Node |
protected void |
writeField(Types types,
String fieldName,
Class fieldType,
boolean isUnbounded,
boolean isOmittable,
Element where,
boolean isAnonymous)
write a schema representation of the given Class field and append it to the where Node, recurse on complex types |
Element |
writeSchema(Class javaType,
Types types)
Return XML schema for the specified type, suitable for insertion into the <types> element of a WSDL document, or underneath an <element> or <attribute> declaration. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected BeanPropertyDescriptor[] propertyDescriptor
protected TypeDesc typeDesc
| Constructor Detail |
public BeanSerializer(Class javaType, javax.xml.namespace.QName xmlType)
public BeanSerializer(Class javaType, javax.xml.namespace.QName xmlType, TypeDesc typeDesc)
public BeanSerializer(Class javaType, javax.xml.namespace.QName xmlType, TypeDesc typeDesc, BeanPropertyDescriptor[] propertyDescriptor)
| Method Detail |
public void serialize(javax.xml.namespace.QName name,
Attributes attributes,
Object value,
SerializationContext context)
throws IOException
serialize in interface Serializername - is the element nameattributes - are the attributes...serialize is free to add more.value - is the valuecontext - is the SerializationContext
IOExceptionpublic String getMechanismType()
getMechanismType in interface javax.xml.rpc.encoding.Serializerpublic Element writeSchema(Class javaType, Types types) throws Exception
writeSchema in interface Serializerprotected void writeField(Types types, String fieldName, Class fieldType, boolean isUnbounded, boolean isOmittable, Element where, boolean isAnonymous) throws Exception
fieldName - name of the fieldfieldType - type of the fieldisUnbounded - causes maxOccurs="unbounded" if setwhere - location for the generated schema node
Exceptionprotected void writeAttribute(Types types, String fieldName, Class fieldType, javax.xml.namespace.QName fieldXmlType, Element where) throws Exception
fieldName - name of the fieldfieldType - type of the fieldwhere - location for the generated schema node
Exceptionprotected Attributes getObjectAttributes(Object value, Attributes attributes, SerializationContext context)
value - the object we are serializing
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||