|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.util.transforms.Transforms
public class Transforms
The Transforms class manages the list of registered transforms used by the property linking mechanism of the com.sas.LinkPropertiesInterface and com.sas.PropertyLinkAdaptor.
Field Summary | |
---|---|
protected static boolean |
defaultTransformsRegistered
This flag is used by all public methods of this class to determine if the default transforms have already be registered. |
protected static java.util.Hashtable |
inputClasses
inputClasses is a Hashtable which maintains a hash of Class objects to HashTables. |
Constructor Summary | |
---|---|
Transforms()
|
Method Summary | |
---|---|
static java.util.Enumeration |
getRegisteredSourceClasses()
Gets all the source classes the have a transform registered to that type. |
static java.util.Enumeration |
getRegisteredSourceClassesForTransform(com.sas.util.transforms.TransformInterface transform)
Gets all the source classes that the specifed transform is registered to. |
static java.util.Hashtable |
getRegisteredSourceTransforms(java.lang.Class inputClass)
Get the registered transforms that have the specified type as source objects. |
static java.util.Hashtable |
getRegisteredTargetTransforms(java.lang.Class targetClass)
Get the registered transforms that have the specified type as target objects. |
static com.sas.util.transforms.TransformInterface[] |
getRegisteredTransforms()
Returns an array of unique registered transform objects. |
static boolean |
isTransformable(java.lang.Class inputClass,
java.lang.Class outputClass)
Check for a transformation from inputClass to outputClass from the pool of registered transformations. |
static boolean |
isTransformable(java.lang.Object source,
java.lang.String sourceProperty,
java.lang.Object target,
java.lang.String targetProperty)
Returns whether or not the specified source property can be transformed to the type of the specified target property. |
static com.sas.util.transforms.TransformInterface |
lookupTransform(java.lang.Class inputClass,
java.lang.Class outputClass)
Finds a transformation from inputClass to outputClass from the pool of registered transformations. |
static void |
registerDefaultTransforms()
registerDefaultTransforms registers a set of default transforms so that there is a base set of transforms to use in linking properties. |
static void |
registerTransform(java.lang.Class inputClass,
java.lang.Class outputClass,
com.sas.util.transforms.TransformInterface converterClass)
Registers a transformation (converterClass) from inputClass to outputClass. |
protected static void |
registerTransformsForClasses(java.lang.Class[][] sourceClassLists,
java.lang.Class destClass,
com.sas.util.transforms.TransformInterface transform)
This is a helper method used to register transforms between the various Number subclasses. |
static void |
unregisterTransform(java.lang.Class inputClass,
java.lang.Class outputClass,
com.sas.util.transforms.TransformInterface converterClass)
Unregisters a transformation (converterClass) from inputClass to outputClass. |
Field Detail |
---|
protected static boolean defaultTransformsRegistered
protected static java.util.Hashtable inputClasses
registerTransform(java.lang.Class, java.lang.Class, com.sas.util.transforms.TransformInterface)
,
unregisterTransform(java.lang.Class, java.lang.Class, com.sas.util.transforms.TransformInterface)
,
lookupTransform(java.lang.Class, java.lang.Class)
Constructor Detail |
---|
public Transforms()
Method Detail |
---|
public static void registerDefaultTransforms()
protected static void registerTransformsForClasses(java.lang.Class[][] sourceClassLists, java.lang.Class destClass, com.sas.util.transforms.TransformInterface transform)
public static void registerTransform(java.lang.Class inputClass, java.lang.Class outputClass, com.sas.util.transforms.TransformInterface converterClass)
unregisterTransform(java.lang.Class, java.lang.Class, com.sas.util.transforms.TransformInterface)
,
lookupTransform(java.lang.Class, java.lang.Class)
public static void unregisterTransform(java.lang.Class inputClass, java.lang.Class outputClass, com.sas.util.transforms.TransformInterface converterClass)
registerTransform(java.lang.Class, java.lang.Class, com.sas.util.transforms.TransformInterface)
,
lookupTransform(java.lang.Class, java.lang.Class)
public static boolean isTransformable(java.lang.Class inputClass, java.lang.Class outputClass)
lookupTransform(java.lang.Class, java.lang.Class)
,
registerTransform(java.lang.Class, java.lang.Class, com.sas.util.transforms.TransformInterface)
,
unregisterTransform(java.lang.Class, java.lang.Class, com.sas.util.transforms.TransformInterface)
public static com.sas.util.transforms.TransformInterface lookupTransform(java.lang.Class inputClass, java.lang.Class outputClass)
registerTransform(java.lang.Class, java.lang.Class, com.sas.util.transforms.TransformInterface)
,
unregisterTransform(java.lang.Class, java.lang.Class, com.sas.util.transforms.TransformInterface)
public static com.sas.util.transforms.TransformInterface[] getRegisteredTransforms()
public static java.util.Hashtable getRegisteredSourceTransforms(java.lang.Class inputClass)
public static java.util.Hashtable getRegisteredTargetTransforms(java.lang.Class targetClass)
public static java.util.Enumeration getRegisteredSourceClasses()
public static java.util.Enumeration getRegisteredSourceClassesForTransform(com.sas.util.transforms.TransformInterface transform)
public static boolean isTransformable(java.lang.Object source, java.lang.String sourceProperty, java.lang.Object target, java.lang.String targetProperty)
This is used by the IDE.
registerTransform(java.lang.Class, java.lang.Class, com.sas.util.transforms.TransformInterface)
,
unregisterTransform(java.lang.Class, java.lang.Class, com.sas.util.transforms.TransformInterface)
,
lookupTransform(java.lang.Class, java.lang.Class)
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |