org.eclipse.higgins.idas.model.impl
Class SimpleValueModel

java.lang.Object
  extended byorg.eclipse.higgins.idas.model.impl.SimpleValueModel
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 SimpleValueModel
extends Object
implements org.eclipse.higgins.idas.api.model.IAttributeSimpleValueModel


Field Summary
static int MAP_MODE_LIST
           
static int MAP_MODE_MIXED
           
static int MAP_MODE_PROPERTY
           
 
Constructor Summary
SimpleValueModel(ContextModel ctx, AttributeModel parent, com.hp.hpl.jena.ontology.DatatypeProperty property)
           
 
Method Summary
 org.eclipse.higgins.idas.api.model.IAttributeModel getAttribute()
           
 org.eclipse.higgins.idas.api.model.IDisplayData getDisplayData()
           
 int getMaxCardinality()
           
 int getMinCardinality()
           
 List getOneOf()
           
 URI getType()
           
 boolean isOneOf()
           
 boolean isSimple()
           
 boolean isUnique()
           
 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
 

Field Detail

MAP_MODE_PROPERTY

public static final int MAP_MODE_PROPERTY
See Also:
Constant Field Values

MAP_MODE_LIST

public static final int MAP_MODE_LIST
See Also:
Constant Field Values

MAP_MODE_MIXED

public static final int MAP_MODE_MIXED
See Also:
Constant Field Values
Constructor Detail

SimpleValueModel

public SimpleValueModel(ContextModel ctx,
                        AttributeModel parent,
                        com.hp.hpl.jena.ontology.DatatypeProperty property)
                 throws org.eclipse.higgins.idas.api.IdASException
Method Detail

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()
Specified by:
isSimple in interface org.eclipse.higgins.idas.api.model.IAttributeValueModel

getType

public URI getType()
Specified by:
getType in interface org.eclipse.higgins.idas.api.model.IModel

getAttribute

public org.eclipse.higgins.idas.api.model.IAttributeModel getAttribute()

getOneOf

public List getOneOf()

isOneOf

public boolean isOneOf()

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.model.IdASModelException
Specified by:
toLexicalForm in interface org.eclipse.higgins.idas.api.model.IAttributeSimpleValueModel
Throws:
org.eclipse.higgins.idas.api.model.IdASModelException

toValueForm

public Object toValueForm(String lexicalForm)
                   throws org.eclipse.higgins.idas.api.model.IdASModelException
Specified by:
toValueForm in interface org.eclipse.higgins.idas.api.model.IAttributeSimpleValueModel
Throws:
org.eclipse.higgins.idas.api.model.IdASModelException

isUnique

public boolean isUnique()

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