org.progeeks.meta.util
Class PreferencesMetaKit

java.lang.Object
  extended by org.progeeks.meta.util.PreferencesMetaKit
All Implemented Interfaces:
java.io.Serializable, MetaKit

public class PreferencesMetaKit
extends java.lang.Object
implements MetaKit, java.io.Serializable

MetaKit implementation to directly support PreferencesMetaObjects.

Version:
$Revision: 1.3 $
Author:
Paul Speed
See Also:
Serialized Form

Field Summary
static PreferencesMetaKit DEFAULT_KIT
           
 
Constructor Summary
PreferencesMetaKit()
           
 
Method Summary
 java.lang.Object getInternalObject(MetaObject object)
          Returns the internal object representation for the specified meta-object if one exists.
 MetaClass getMetaClassForObject(java.lang.Object object)
          Returns the appropriate meta-class for the specified object.
 MetaClass getMetaClassForObject(java.lang.Object object, MetaClassRegistry classRegistry)
          Returns the appropriate meta-class for the specified object.
 MetaObjectFactory getMetaObjectFactory()
          Returns a factory that can be used to create new MetaObject based values using this kit's underlying implementation.
 MetaObject wrapObject(java.lang.Object object, MetaClass mClass)
          Wraps the specified object in a meta-object adapter specific to this kit's implementation layer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_KIT

public static final PreferencesMetaKit DEFAULT_KIT
Constructor Detail

PreferencesMetaKit

public PreferencesMetaKit()
Method Detail

getInternalObject

public java.lang.Object getInternalObject(MetaObject object)
Returns the internal object representation for the specified meta-object if one exists. For meta-object implementations that wrap an internal object, this will return the internal object. null is returned if the meta-object implementation does not internally wrap real objects.

Specified by:
getInternalObject in interface MetaKit

getMetaClassForObject

public MetaClass getMetaClassForObject(java.lang.Object object,
                                       MetaClassRegistry classRegistry)
Returns the appropriate meta-class for the specified object. If an appropriate meta-class has not been registered then this method returns null.

Specified by:
getMetaClassForObject in interface MetaKit

getMetaClassForObject

public MetaClass getMetaClassForObject(java.lang.Object object)
Returns the appropriate meta-class for the specified object. If an appropriate meta-class has not been registered then this method returns null. The meta-class is looked up in the root class registry.

Specified by:
getMetaClassForObject in interface MetaKit

wrapObject

public MetaObject wrapObject(java.lang.Object object,
                             MetaClass mClass)
Wraps the specified object in a meta-object adapter specific to this kit's implementation layer. Returns null if the object cannot be wrapped. Throws UnsupportedOperationException if this kit doesn't support wrapping.

Specified by:
wrapObject in interface MetaKit

getMetaObjectFactory

public MetaObjectFactory getMetaObjectFactory()
Returns a factory that can be used to create new MetaObject based values using this kit's underlying implementation.

Specified by:
getMetaObjectFactory in interface MetaKit


Copyright © 2002-2003 Paul Speed. All Rights Reserved.