org.eclipse.higgins.idas.spi
Class BasicSimpleValueModel

java.lang.Object
  extended byorg.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


Constructor Summary
BasicSimpleValueModel(URI type)
           
 
Method Summary
 org.eclipse.higgins.idas.api.model.IDisplayData getDisplayData()
           
 int getMaxCardinality()
           
 int getMinCardinality()
           
 URI getType()
           
 boolean isSimple()
           
 boolean isValid(String lexicalForm)
           
 boolean isValidValue(Object valueForm)
           
 String toLexicalForm(Object value)
           
 Object toValueForm(String lexicalForm)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicSimpleValueModel

public BasicSimpleValueModel(URI type)
Method Detail

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