org.eclipse.higgins.icard
Interface ISimpleClaimType

All Superinterfaces:
IClaimType

public interface ISimpleClaimType
extends IClaimType

The ISimpleClaimType interface defines a set of methods to describe simple types of an IClaim objects.


Method Summary
 Object fromString(String stringValue)
          Converts given lexicalForm to value form of claim of this type.
 Class getDataType()
          Returns a Class object which represents a type of values of claim objects of this type.
 int getMaxCardinality()
          Returns maximum count of values allowed for claim objects of this type.
 String toString(Object value)
          Converts given value to string form of claim object of this type.
 
Methods inherited from interface org.eclipse.higgins.icard.IClaimType
getDescription, getDisplayName, getType, getTypeLocalName, getUIDescriptor, isEditable, isSimple, isVisible
 

Method Detail

getMaxCardinality

int getMaxCardinality()
Returns maximum count of values allowed for claim objects of this type.


getDataType

Class getDataType()
Returns a Class object which represents a type of values of claim objects of this type.


fromString

Object fromString(String stringValue)
                  throws InvalidValueException
Converts given lexicalForm to value form of claim of this type.

Parameters:
stringValue - String value to be converted.
Returns:
an Object which represents valid value form of claim object of this type.
Throws:
InvalidValueException - if given String can't be converted.

toString

String toString(Object value)
                throws InvalidValueException
Converts given value to string form of claim object of this type.

Parameters:
value - Object value to be converted.
Returns:
a String which represents valid lexical form of claim of this type.
Throws:
InvalidValueException - if given Object can't be converted.