Package jadex.rules.state.io.xml
Class OAVObjectWriterHandler
- java.lang.Object
- 
- jadex.xml.writer.AbstractObjectWriterHandler
- 
- jadex.rules.state.io.xml.OAVObjectWriterHandler
 
 
- 
- All Implemented Interfaces:
- IObjectWriterHandler
 
 public class OAVObjectWriterHandler extends AbstractObjectWriterHandler OAV version for fetching write info for an object.
- 
- 
Field Summary- 
Fields inherited from class jadex.xml.writer.AbstractObjectWriterHandlerflattening, gentypetags, prefertags, titmanager
 
- 
 - 
Constructor SummaryConstructors Constructor 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.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.ObjectgetDefaultValue(java.lang.Object property)Get the default value.java.lang.ObjectgetObjectType(java.lang.Object object, IContext context)Get the object typeprotected java.util.CollectiongetProperties(java.lang.Object object, IContext context, boolean includemethods, boolean includefields)Get the properties of an object.protected java.lang.ObjectgetProperty(java.lang.Object info)Get the property.protected java.lang.StringgetPropertyName(java.lang.Object property)Get the name of a property.QNamegetTagName(java.lang.Object object, IContext context)Get the tag name for an object.QNamegetTagWithPrefix(QName tag, IContext context)Get the tag with namespace.protected java.lang.ObjectgetValue(java.lang.Object object, java.lang.Object attr, IContext context, java.lang.Object info)Get a value from an object.protected booleanisBasicType(java.lang.Object property, java.lang.Object value)Test if a value is a basic type.protected booleanisDecodableToSameType(java.lang.Object property, java.lang.Object value, IContext context)Test if a value is decodable to the same type.protected booleanisTypeCompatible(java.lang.Object object, ObjectInfo info, IContext context)Test if a value is compatible with the defined typeinfo.- 
Methods inherited from class jadex.xml.writer.AbstractObjectWriterHandlercreatePath, getObjectWriteInfo, getPreProcessors, getTypeInfo, getTypeInfoManager
 
- 
 
- 
- 
- 
Constructor Detail- 
OAVObjectWriterHandlerpublic OAVObjectWriterHandler(java.util.Set typeinfos) Create a new writer.
 - 
OAVObjectWriterHandlerpublic OAVObjectWriterHandler(boolean gentypetags, java.util.Set typeinfos)Create a new writer.
 - 
OAVObjectWriterHandlerpublic OAVObjectWriterHandler(boolean gentypetags, boolean prefertags, java.util.Set typeinfos)Create a new writer.
 - 
OAVObjectWriterHandlerpublic OAVObjectWriterHandler(boolean gentypetags, boolean prefertags, boolean flattening, java.util.Set typeinfos)Create a new writer.
 
- 
 - 
Method Detail- 
getObjectTypepublic java.lang.Object getObjectType(java.lang.Object object, IContext context)Get the object type- Specified by:
- getObjectTypein class- AbstractObjectWriterHandler
- Parameters:
- object- The object.
- Returns:
- The object type.
 
 - 
getTagNamepublic QName getTagName(java.lang.Object object, IContext context) Get the tag name for an object.
 - 
getTagWithPrefixpublic QName getTagWithPrefix(QName tag, IContext context) Get the tag with namespace.
 - 
getValueprotected java.lang.Object getValue(java.lang.Object object, java.lang.Object attr, IContext context, java.lang.Object info)Get a value from an object.- Specified by:
- getValuein class- AbstractObjectWriterHandler
 
 - 
getPropertyprotected java.lang.Object getProperty(java.lang.Object info) Get the property.- Specified by:
- getPropertyin class- AbstractObjectWriterHandler
 
 - 
getPropertyNameprotected java.lang.String getPropertyName(java.lang.Object property) Get the name of a property. Cuts off all before "_has_" (hack?!).- Specified by:
- getPropertyNamein class- AbstractObjectWriterHandler
 
 - 
isBasicTypeprotected boolean isBasicType(java.lang.Object property, java.lang.Object value)Test if a value is a basic type.- Specified by:
- isBasicTypein class- AbstractObjectWriterHandler
 
 - 
getPropertiesprotected java.util.Collection getProperties(java.lang.Object object, IContext context, boolean includemethods, boolean includefields)Get the properties of an object.- Specified by:
- getPropertiesin class- AbstractObjectWriterHandler
 
 - 
getDefaultValueprotected java.lang.Object getDefaultValue(java.lang.Object property) Get the default value.- Overrides:
- getDefaultValuein class- AbstractObjectWriterHandler
 
 - 
isTypeCompatibleprotected boolean isTypeCompatible(java.lang.Object object, ObjectInfo info, IContext context)Test if a value is compatible with the defined typeinfo.- Specified by:
- isTypeCompatiblein class- AbstractObjectWriterHandler
 
 - 
isDecodableToSameTypeprotected boolean isDecodableToSameType(java.lang.Object property, java.lang.Object value, IContext context)Test if a value is decodable to the same type. Works for basic (final) types only and checks if the two types are of same class.- Specified by:
- isDecodableToSameTypein class- AbstractObjectWriterHandler
 
 
- 
 
-