|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--fdda.propertyTypes.AbstractGenerator | +--fdda.propertyTypes.implementations.IntegerGenerator
Generator for Integer values.
Field Summary |
Fields inherited from class fdda.propertyTypes.AbstractGenerator |
correctValueRetCode |
Fields inherited from interface fdda.propertyTypes.TypeGenerator |
FACET_DEFAULT_IS_GREATER_THAN_MAX, FACET_DEFAULT_IS_LOWER_THAN_MIN, FACET_DEFAULT_NOT_ALLOWED, FACET_MIN_IS_GREATER_THAN_MAX, FACET_OF_WRONG_TYPE, VALUE_SET_TO_CLASS_DEFAULT, VALUE_SET_TO_MAX, VALUE_SET_TO_MIN, VALUE_SET_TO_USER_DEFAULT, WELL_DONE, WRONG_CLASS_OBJECT |
Constructor Summary | |
IntegerGenerator()
Default constructor. |
Method Summary | |
Object |
cloneValue(Object valueObject)
Returns a 'deep' copy of a value. |
int |
correctFacets(Property property)
Checks whether the facets of a property fit to the type and corrects them, if necessary. |
Object |
correctValue(Object inValue,
Property property)
Corrects a value of a property so that it fits to the type and facets. |
Object |
parseString(String string)
Returns a value parsed from a String representation. |
Methods inherited from class fdda.propertyTypes.AbstractGenerator |
describeAction, getlastCorrectAction |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public IntegerGenerator()
Method Detail |
public Object cloneValue(Object valueObject)
TypeGenerator
valueObject
- the value
public Object parseString(String string) throws ParseException
TypeGenerator
string
- the representation of the value
ParseException
- if the String doesn't represent a value of the typepublic Object correctValue(Object inValue, Property property) throws WrongFacetException
TypeGenerator
inValue
- the valueproperty
- the property (to get the facets)
WrongFacetException
- if the facets of the property are erroneous.public int correctFacets(Property property)
TypeGenerator
property
- the property that holds the facets
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |