public class OAVObjectWriterHandler
extends jadex.xml.writer.AbstractObjectWriterHandler
| Constructor and Description |
|---|
OAVObjectWriterHandler(boolean gentypetags,
boolean prefertags,
boolean flattening,
java.util.Set typeinfos)
Create a new writer.
|
OAVObjectWriterHandler(boolean gentypetags,
boolean prefertags,
java.util.Set typeinfos)
Create a new writer.
|
OAVObjectWriterHandler(boolean gentypetags,
java.util.Set typeinfos)
Create a new writer.
|
OAVObjectWriterHandler(java.util.Set typeinfos)
Create a new writer.
|
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.Object |
getDefaultValue(java.lang.Object property)
Get the default value.
|
java.lang.Object |
getObjectType(java.lang.Object object,
jadex.xml.IContext context)
Get the object type
|
protected java.util.Collection |
getProperties(java.lang.Object object,
jadex.xml.IContext context,
boolean includemethods,
boolean includefields)
Get the properties of an object.
|
protected java.lang.Object |
getProperty(java.lang.Object info)
Get the property.
|
protected java.lang.String |
getPropertyName(java.lang.Object property)
Get the name of a property.
|
jadex.xml.stax.QName |
getTagName(java.lang.Object object,
jadex.xml.IContext context)
Get the tag name for an object.
|
jadex.xml.stax.QName |
getTagWithPrefix(jadex.xml.stax.QName tag,
jadex.xml.IContext context)
Get the tag with namespace.
|
protected java.lang.Object |
getValue(java.lang.Object object,
java.lang.Object attr,
jadex.xml.IContext context,
java.lang.Object info)
Get a value from an object.
|
protected boolean |
isBasicType(java.lang.Object property,
java.lang.Object value)
Test if a value is a basic type.
|
protected boolean |
isDecodableToSameType(java.lang.Object property,
java.lang.Object value,
jadex.xml.IContext context)
Test if a value is decodable to the same type.
|
protected boolean |
isTypeCompatible(java.lang.Object object,
jadex.xml.ObjectInfo info,
jadex.xml.IContext context)
Test if a value is compatible with the defined typeinfo.
|
public OAVObjectWriterHandler(java.util.Set typeinfos)
public OAVObjectWriterHandler(boolean gentypetags,
java.util.Set typeinfos)
public OAVObjectWriterHandler(boolean gentypetags,
boolean prefertags,
java.util.Set typeinfos)
public OAVObjectWriterHandler(boolean gentypetags,
boolean prefertags,
boolean flattening,
java.util.Set typeinfos)
public java.lang.Object getObjectType(java.lang.Object object,
jadex.xml.IContext context)
getObjectType in class jadex.xml.writer.AbstractObjectWriterHandlerobject - The object.public jadex.xml.stax.QName getTagName(java.lang.Object object,
jadex.xml.IContext context)
public jadex.xml.stax.QName getTagWithPrefix(jadex.xml.stax.QName tag,
jadex.xml.IContext context)
protected java.lang.Object getValue(java.lang.Object object,
java.lang.Object attr,
jadex.xml.IContext context,
java.lang.Object info)
getValue in class jadex.xml.writer.AbstractObjectWriterHandlerprotected java.lang.Object getProperty(java.lang.Object info)
getProperty in class jadex.xml.writer.AbstractObjectWriterHandlerprotected java.lang.String getPropertyName(java.lang.Object property)
getPropertyName in class jadex.xml.writer.AbstractObjectWriterHandlerprotected boolean isBasicType(java.lang.Object property,
java.lang.Object value)
isBasicType in class jadex.xml.writer.AbstractObjectWriterHandlerprotected java.util.Collection getProperties(java.lang.Object object,
jadex.xml.IContext context,
boolean includemethods,
boolean includefields)
getProperties in class jadex.xml.writer.AbstractObjectWriterHandlerprotected java.lang.Object getDefaultValue(java.lang.Object property)
getDefaultValue in class jadex.xml.writer.AbstractObjectWriterHandlerprotected boolean isTypeCompatible(java.lang.Object object,
jadex.xml.ObjectInfo info,
jadex.xml.IContext context)
isTypeCompatible in class jadex.xml.writer.AbstractObjectWriterHandlerprotected boolean isDecodableToSameType(java.lang.Object property,
java.lang.Object value,
jadex.xml.IContext context)
isDecodableToSameType in class jadex.xml.writer.AbstractObjectWriterHandler