org.eclipse.higgins.idas.api.model
Interface IAttributeSimpleValueModel

All Superinterfaces:
IAttributeValueModel, IModel

public interface IAttributeSimpleValueModel
extends IAttributeValueModel

Represents value's model of simple attributes as it defined in the context's schema.

See Also:
ISimpleAttrValue, http://www.eclipse.org/higgins/ontologies/2008/6/higgins#SimpleValue

Method Summary
 boolean isValid(String lexicalForm)
          Determines whether given String is valid lexical form of represented value.
 boolean isValidValue(Object valueForm)
          Determines whether given Object is valid value form of represented value.
 String toLexicalForm(Object value)
          Convert given Object to lexical form of represented value.
 Object toValueForm(String lexicalForm)
          Convert given String to value form of represented value.
 
Methods inherited from interface org.eclipse.higgins.idas.api.model.IAttributeValueModel
getMaxCardinality, getMinCardinality, isSimple
 
Methods inherited from interface org.eclipse.higgins.idas.api.model.IModel
getDisplayData, getType
 

Method Detail

isValidValue

public boolean isValidValue(Object valueForm)
                     throws IdASException
Determines whether given Object is valid value form of represented value.

Parameters:
valueForm - value to be checked.
Returns:
true if valueForm is valid value form and false otherwise.
Throws:
IdASException

isValid

public boolean isValid(String lexicalForm)
                throws IdASException
Determines whether given String is valid lexical form of represented value.

Parameters:
lexicalForm - value to be checked.
Returns:
true if lexicalForm is valid lexical form and false otherwise.
Throws:
IdASException

toValueForm

public Object toValueForm(String lexicalForm)
                   throws IdASException
Convert given String to value form of represented value.

Parameters:
lexicalForm - String value to be converted.
Returns:
Object which represents valid value form of represented value.
Throws:
IdASModelException - if given String can't be converted.
IdASException

toLexicalForm

public String toLexicalForm(Object value)
                     throws IdASException
Convert given Object to lexical form of represented value.

Parameters:
value - Object value to be converted.
Returns:
String which represents valid lexical form of represented value.
Throws:
IdASModelException - if given Object can't be converted.
IdASException