aspoev.manager.adapter
Class CompositeObjectAdapter

java.lang.Object
  extended byaspoev.manager.adapter.InstanceAdapter
      extended byaspoev.manager.adapter.CompositeObjectAdapter
Direct Known Subclasses:
UpdateBackdateAdapter

public class CompositeObjectAdapter
extends InstanceAdapter


Constructor Summary
CompositeObjectAdapter()
           
 
Method Summary
 MetaObject convert(MetaObject object, TypeReferenceElement type)
          Attempts to physically convert the objects by creating a new Vejal object of the requested type and copying all matching fields.
protected  FieldMask getFieldMask(TypeReferenceElement typeOne, TypeReferenceElement typeTwo)
          This method evaluates the additive properties of the second type with respect to the first type, and creates a field mask to hide these properties.
protected  MetaObject getObjectSlice(TypeReferenceElement objectType, TypeReferenceElement sliceType)
           
protected  boolean haveSharedProperties(TypeReferenceElement one, TypeReferenceElement two)
           
 MetaObject retypeCompositeObject(CompositeObject object, TypeReferenceElement type)
           
 
Methods inherited from class aspoev.manager.adapter.InstanceAdapter
convertPrimitive, executeMethod, getCommonAncestor, getDefaultValue, getDerivationHistory, getVersionDerivationPath, retypeObject, testVersionDerivation, unknownField, unknownMethod
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompositeObjectAdapter

public CompositeObjectAdapter()
Method Detail

convert

public MetaObject convert(MetaObject object,
                          TypeReferenceElement type)
Description copied from class: InstanceAdapter
Attempts to physically convert the objects by creating a new Vejal object of the requested type and copying all matching fields. Implementing strategies can convert the object however they see fit.

Overrides:
convert in class InstanceAdapter
Parameters:
object - The Object to convert
type - The type to convet the object to.

retypeCompositeObject

public MetaObject retypeCompositeObject(CompositeObject object,
                                        TypeReferenceElement type)

getFieldMask

protected FieldMask getFieldMask(TypeReferenceElement typeOne,
                                 TypeReferenceElement typeTwo)
This method evaluates the additive properties of the second type with respect to the first type, and creates a field mask to hide these properties.


getObjectSlice

protected MetaObject getObjectSlice(TypeReferenceElement objectType,
                                    TypeReferenceElement sliceType)

haveSharedProperties

protected boolean haveSharedProperties(TypeReferenceElement one,
                                       TypeReferenceElement two)