aspoev.manager.adapter
Class CompositeObjectAdapter
java.lang.Object
aspoev.manager.adapter.InstanceAdapter
aspoev.manager.adapter.CompositeObjectAdapter
- Direct Known Subclasses:
- UpdateBackdateAdapter
- public class CompositeObjectAdapter
- extends InstanceAdapter
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CompositeObjectAdapter
public CompositeObjectAdapter()
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 converttype - 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)