Interface Constraint
-
- All Superinterfaces:
Comparable<Object>
,Element
,org.eclipse.emf.ecore.EModelElement
,org.eclipse.emf.ecore.EObject
,MDWEObject
,MDWObject
,org.eclipse.emf.common.notify.Notifier
,com.sodius.mdw.corext.model.emf.OnDemandEObject
public interface Constraint extends Element
A representation of the model object 'Constraint'.The following features are supported:
- See Also:
IntegrityPackage.getConstraint()
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description MDWEList<String>
getAllowedValues()
Returns the value of the 'Allowed Values' attribute list.Field
getConstrainedField()
Returns the value of the 'Constrained Field' reference.String
getDescription()
Returns the value of the 'Description' attribute.Field
getSourceField()
Returns the value of the 'Source Field' reference.MDWEList<Type>
getSourceTypes()
Returns the value of the 'Source Types' reference list.boolean
isMandatory()
Returns the value of the 'Mandatory' attribute.void
setConstrainedField(Field value)
Sets the value of the 'Constrained Field
' reference.void
setDescription(String value)
Sets the value of the 'Description
' attribute.void
setMandatory(boolean value)
Sets the value of the 'Mandatory
' attribute.void
setSourceField(Field value)
Sets the value of the 'Source Field
' reference.-
Methods inherited from interface com.sodius.mdw.metamodel.integrity.Element
eUninitialize
-
Methods inherited from interface org.eclipse.emf.ecore.EModelElement
getEAnnotation, getEAnnotations
-
Methods inherited from interface org.eclipse.emf.ecore.EObject
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset
-
Methods inherited from interface com.sodius.mdw.core.model.MDWObject
compareTo, eExtendedClass, eIsInstanceOf, eIsInstanceOf, eIsProfiled, eIsRemoved, eMetamodel, eMetaTypeName, eModel, eRemove, eSetUniqueID, eUniqueID, superScript, superScript, toBoolean, toBoolean, toByte, toByte, toChar, toChar, toDouble, toDouble, toFloat, toFloat, toInt, toInt, toList, toList, toList, toList, toList, toLong, toLong, toObject, toObject, toSet, toSet, toShort, toShort, toString, toString
-
-
-
-
Method Detail
-
getConstrainedField
Field getConstrainedField()
Returns the value of the 'Constrained Field' reference.- Returns:
- the value of the 'Constrained Field' reference.
- See Also:
setConstrainedField(Field)
,IntegrityPackage.getConstraint_ConstrainedField()
-
setConstrainedField
void setConstrainedField(Field value)
Sets the value of the 'Constrained Field
' reference.- Parameters:
value
- the new value of the 'Constrained Field' reference.- See Also:
getConstrainedField()
-
getDescription
String getDescription()
Returns the value of the 'Description' attribute. The default value is""
.- Returns:
- the value of the 'Description' attribute.
- See Also:
setDescription(String)
,IntegrityPackage.getConstraint_Description()
-
setDescription
void setDescription(String value)
Sets the value of the 'Description
' attribute.- Parameters:
value
- the new value of the 'Description' attribute.- See Also:
getDescription()
-
isMandatory
boolean isMandatory()
Returns the value of the 'Mandatory' attribute.- Returns:
- the value of the 'Mandatory' attribute.
- See Also:
setMandatory(boolean)
,IntegrityPackage.getConstraint_Mandatory()
-
setMandatory
void setMandatory(boolean value)
Sets the value of the 'Mandatory
' attribute.- Parameters:
value
- the new value of the 'Mandatory' attribute.- See Also:
isMandatory()
-
getSourceTypes
MDWEList<Type> getSourceTypes()
Returns the value of the 'Source Types' reference list. The list contents are of typeType
.- Returns:
- the value of the 'Source Types' reference list.
- See Also:
IntegrityPackage.getConstraint_SourceTypes()
-
getSourceField
Field getSourceField()
Returns the value of the 'Source Field' reference.- Returns:
- the value of the 'Source Field' reference.
- See Also:
setSourceField(Field)
,IntegrityPackage.getConstraint_SourceField()
-
setSourceField
void setSourceField(Field value)
Sets the value of the 'Source Field
' reference.- Parameters:
value
- the new value of the 'Source Field' reference.- See Also:
getSourceField()
-
getAllowedValues
MDWEList<String> getAllowedValues()
Returns the value of the 'Allowed Values' attribute list. The list contents are of typeString
.- Returns:
- the value of the 'Allowed Values' attribute list.
- See Also:
IntegrityPackage.getConstraint_AllowedValues()
-
-