org.eclipse.higgins.idas.model.impl
Class SimpleValueModel
java.lang.Object
org.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
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
SimpleValueModel
public SimpleValueModel(ContextModel ctx,
AttributeModel parent,
com.hp.hpl.jena.ontology.DatatypeProperty property)
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()
- 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