org.eclipse.higgins.idas.spi
Class BasicSimpleValueModel
java.lang.Object
org.eclipse.higgins.idas.spi.BasicSimpleValueModel
- All Implemented Interfaces:
- org.eclipse.higgins.idas.api.model.IAttributeSimpleValueModel, org.eclipse.higgins.idas.api.model.IAttributeValueModel, org.eclipse.higgins.idas.api.model.IModel
- public class BasicSimpleValueModel
- extends Object
- implements org.eclipse.higgins.idas.api.model.IAttributeSimpleValueModel
BasicSimpleValueModel
public BasicSimpleValueModel(URI type)
isValid
public boolean isValid(String lexicalForm)
throws org.eclipse.higgins.idas.api.IdASException
- Specified by:
isValid
in interface org.eclipse.higgins.idas.api.model.IAttributeSimpleValueModel
- Throws:
org.eclipse.higgins.idas.api.IdASException
isValidValue
public boolean isValidValue(Object valueForm)
throws org.eclipse.higgins.idas.api.IdASException
- Specified by:
isValidValue
in interface org.eclipse.higgins.idas.api.model.IAttributeSimpleValueModel
- Throws:
org.eclipse.higgins.idas.api.IdASException
toLexicalForm
public String toLexicalForm(Object value)
throws org.eclipse.higgins.idas.api.IdASException
- Specified by:
toLexicalForm
in interface org.eclipse.higgins.idas.api.model.IAttributeSimpleValueModel
- Throws:
org.eclipse.higgins.idas.api.IdASException
toValueForm
public Object toValueForm(String lexicalForm)
throws org.eclipse.higgins.idas.api.IdASException
- Specified by:
toValueForm
in interface org.eclipse.higgins.idas.api.model.IAttributeSimpleValueModel
- Throws:
org.eclipse.higgins.idas.api.IdASException
getMaxCardinality
public int getMaxCardinality()
throws org.eclipse.higgins.idas.api.IdASException
- Specified by:
getMaxCardinality
in interface org.eclipse.higgins.idas.api.model.IAttributeValueModel
- Throws:
org.eclipse.higgins.idas.api.IdASException
getMinCardinality
public int getMinCardinality()
throws org.eclipse.higgins.idas.api.IdASException
- Specified by:
getMinCardinality
in interface org.eclipse.higgins.idas.api.model.IAttributeValueModel
- Throws:
org.eclipse.higgins.idas.api.IdASException
isSimple
public boolean isSimple()
throws org.eclipse.higgins.idas.api.IdASException
- Specified by:
isSimple
in interface org.eclipse.higgins.idas.api.model.IAttributeValueModel
- Throws:
org.eclipse.higgins.idas.api.IdASException
getDisplayData
public org.eclipse.higgins.idas.api.model.IDisplayData getDisplayData()
throws org.eclipse.higgins.idas.api.IdASException
- Specified by:
getDisplayData
in interface org.eclipse.higgins.idas.api.model.IModel
- Throws:
org.eclipse.higgins.idas.api.IdASException
getType
public URI getType()
throws org.eclipse.higgins.idas.api.IdASException
- Specified by:
getType
in interface org.eclipse.higgins.idas.api.model.IModel
- Throws:
org.eclipse.higgins.idas.api.IdASException