org.opencrx.kernel.model1.cci2
Interface Constraint

All Superinterfaces:
AlertSender, AspectCapable, Auditee, BasicObject, Cloneable, ContextCapable, Creatable, CrxObject, Element, Exporter, ExtentCapable, Importer, Indexed, Modifiable, SecureObject
All Known Subinterfaces:
Constraint
All Known Implementing Classes:
Constraint

public interface Constraint
extends Element

Class Constraint


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.opencrx.kernel.model1.cci2.Element
Element.Identity
 
Method Summary
 short getEvaluationPolicy()
          Retrieves the value for the attribute evaluationPolicy.
 String getExpression()
          Retrieves the value for the attribute expression.
 String getLanguage()
          Retrieves the value for the attribute language.
 void setEvaluationPolicy(short evaluationPolicy)
          Sets a new value for the attribute evaluationPolicy.
 void setExpression(String expression)
          Sets a new value for the attribute expression.
 void setLanguage(String language)
          Sets a new value for the attribute language.
 
Methods inherited from interface org.opencrx.kernel.model1.cci2.Element
getAnnotation, getContainer, getElementOrder, getName, getQualifiedName, getSegment, getStereotype, setAnnotation, setContainer, setElementOrder, setName, setQualifiedName, setStereotype
 
Methods inherited from interface org.opencrx.kernel.generic.cci2.CrxObject
getAdditionalExternalLink, getAttachedDocument, getCategory, getDisabledReason, getDocumentFolderAssignment, getExternalLink, getMedia, getNote, getPropertySet, getPropertySetEntry, getRating, getUserBoolean4, getUserCode0, getUserCode1, getUserCode2, getUserCode3, getUserCode4, getUserDate0, getUserDate1, getUserDate2, getUserDate3, getUserDate4, getUserDateTime0, getUserDateTime1, getUserDateTime2, getUserDateTime3, getUserDateTime4, getUserNumber0, getUserNumber1, getUserNumber2, getUserNumber3, getUserNumber4, getUserString0, getUserString1, getUserString2, getUserString3, getUserString4, isDisabled, isUserBoolean0, isUserBoolean1, isUserBoolean2, isUserBoolean3, setCategory, setDisabled, setDisabledReason, setExternalLink, setUserBoolean0, setUserBoolean1, setUserBoolean2, setUserBoolean3, setUserBoolean4, setUserCode0, setUserCode1, setUserCode2, setUserCode3, setUserCode4, setUserDate0, setUserDate1, setUserDate2, setUserDate3, setUserDate4, setUserDateTime0, setUserDateTime1, setUserDateTime2, setUserDateTime3, setUserDateTime4, setUserNumber0, setUserNumber1, setUserNumber2, setUserNumber3, setUserNumber4, setUserString0, setUserString1, setUserString2, setUserString3, setUserString4
 
Methods inherited from interface org.opencrx.kernel.base.cci2.AlertSender
sendAlert
 
Methods inherited from interface org.opencrx.kernel.base.cci2.Auditee
getAudit
 
Methods inherited from interface org.opencrx.kernel.base.cci2.Cloneable
clone_
 
Methods inherited from interface org.opencrx.kernel.base.cci2.Exporter
exportItem, exportItemAdvanced
 
Methods inherited from interface org.opencrx.kernel.base.cci2.Importer
importItem
 
Methods inherited from interface org.opencrx.kernel.base.cci2.Indexed
getIndexEntry, updateIndex
 
Methods inherited from interface org.opencrx.kernel.base.cci2.SecureObject
addOwningGroup, checkPermissions, getAccessGrantedByParent, getAccessLevelBrowse, getAccessLevelDelete, getAccessLevelUpdate, getOwner, getOwningGroup, getOwningUser, removeAllOwningGroup, removeOwningGroup, replaceOwningGroup, setAccessLevel, setAccessLevelBrowse, setAccessLevelDelete, setAccessLevelUpdate, setOwningUser, setOwningUser
 
Methods inherited from interface org.openmdx.base.cci2.ContextCapable
getContext
 
Methods inherited from interface org.openmdx.base.cci2.Creatable
getCreatedAt, getCreatedBy
 
Methods inherited from interface org.openmdx.base.cci2.ExtentCapable
getIdentity
 
Methods inherited from interface org.openmdx.base.cci2.Modifiable
getModifiedAt, getModifiedBy
 

Method Detail

getEvaluationPolicy

short getEvaluationPolicy()
Retrieves the value for the attribute evaluationPolicy.

Returns:
The non-null value for attribute evaluationPolicy.

setEvaluationPolicy

void setEvaluationPolicy(short evaluationPolicy)
Sets a new value for the attribute evaluationPolicy.

Parameters:
evaluationPolicy - The non-null new value for attribute evaluationPolicy.

getExpression

String getExpression()
Retrieves the value for the attribute expression.

The Constraint's expression attribute provides a representation of the constraint. The MOF has no specific requirement to interpret this expression, or to validate it against the language attribute. The specific handling of the expression will necessarily vary with the language used. However, it is expected that for any language an implementation accepts, it will enforce the constraints expressed in that language. The expression can be represented in any format, including text or a composition of objects.

Returns:
The non-null value for attribute expression.

setExpression

void setExpression(String expression)
Sets a new value for the attribute expression.

The Constraint's expression attribute provides a representation of the constraint. The MOF has no specific requirement to interpret this expression, or to validate it against the language attribute. The specific handling of the expression will necessarily vary with the language used. However, it is expected that for any language an implementation accepts, it will enforce the constraints expressed in that language. The expression can be represented in any format, including text or a composition of objects.

Parameters:
expression - The non-null new value for attribute expression.

getLanguage

String getLanguage()
Retrieves the value for the attribute language.

The language representing this Constraint's expression is defined in this attribute. Since it is a string, most any language can be represented, including format variances in a language (e.g., OCL as text verses OCL as a parse tree).

Returns:
The non-null value for attribute language.

setLanguage

void setLanguage(String language)
Sets a new value for the attribute language.

The language representing this Constraint's expression is defined in this attribute. Since it is a string, most any language can be represented, including format variances in a language (e.g., OCL as text verses OCL as a parse tree).

Parameters:
language - The non-null new value for attribute language.


This software is published under the BSD license. Copyright © 2003-2009, CRIXP AG, Switzerland, All rights reserved. Use is subject to license terms.