| de.finix.contelligent.Type
All known Subclasses: de.finix.contelligent.core.TypeImpl,
Type | public interface Type (Code) | | This class represents the type of a Contelligent
Component .
|
getMergedPropertyMap | Map getMergedPropertyMap()(Code) | | |
getOriginalPropertyMap | Map getOriginalPropertyMap()(Code) | | |
getProperties | Map getProperties(Component component, boolean includeRN) throws TypeException(Code) | | Returns a Map containing those properties of the given
component whose values differ from those of this type. This means that
final properties are never contained in this map.
The keys of the map are the
TypeProperty.getName names of the
properties and the values may either be String or
Double instances depending on the type of the property.
All numeric types will be converted into Double and all
others will be converted into a String instance using the
converter method
Type.toString defined in this handler class.
To determine the value of a property a get method is called which means
the components class must define a method 'getProp' for a property named
'prop'.
Parameters: component - a Component value Parameters: includeRN - indicates whether non-persistent properties are included ornot. a Map value exception: TypeException - if an error occurs See Also: PropertyType |
getProperties | Map getProperties(Component component, boolean includeRN, boolean includeW) throws TypeException(Code) | | Returns a Map containing those properties of the given
component whose values differ from those of this type. This means that
final properties are never contained in this map.
The keys of the map are the
TypeProperty.getName names of the
properties and the values may either be String or
Double instances depending on the type of the property.
All numeric types will be converted into Double and all
others will be converted into a String instance using the
converter method
Type.toString defined in this handler class.
To determine the value of a property a get method is called which means
the components class must define a method 'getProp' for a property named
'prop'.
Parameters: component - a Component value Parameters: includeRN - indicates whether non-persistent properties are included ornot. Parameters: includeW - indicates whether write-only are included ornot. Note that these should never be made accessibleto clients. a Map value exception: TypeException - if an error occurs See Also: PropertyType |
getProperties | Map getProperties(Map componentPropertyMap, boolean includeRN) throws TypeException(Code) | | Returns a newly created Map containing the converted
properties of the given map. The conversion is equivalent to that made by
Type.getProperties(Component,boolean) , the only difference is that
this method is not able to convert any instance values (which may be of
type int or float ) but only the
String values from the given map.
So the given map is expected to contain (String,String) entries only
while the returned one contains either (String, String) or
(String,Double) entries depending on the
PropertyType type of the
property. Only whose values differ from those of this type will be
converted, for example final properties are never contained in the
returned map.
Parameters: componentPropertyMap - a Map value Parameters: typeInfo - a TypeInfo value a Map value exception: PropertyException - if an error occurs |
getSuperType | Type getSuperType()(Code) | | Anser this type's supertype.
|
isBlueprint | boolean isBlueprint()(Code) | | |
isInstanceOf | boolean isInstanceOf(String type)(Code) | | Check whether this type is a subtype of the given type or equal the given
type.
Parameters: type - |
isSubTypeOf | boolean isSubTypeOf(String type)(Code) | | Check whether this type is a subtype of the given type.
Parameters: type - |
restrictsOnly | boolean restrictsOnly()(Code) | | |
setProperties | void setProperties(Component component, Map propertyValues) throws TypeException(Code) | | Sets all properties of the given component according to this type
definition. The map is expected to contain either (String,String) or
(String,Double) entries only. If the map is null or empty all properties
will receive the default value of this type. Properties which are not
defined by this type are ignored.
Parameters: component - a Component value Parameters: propertyMap - a map containing either (String,String) or (String,Double)entries |
|
|