net.sf.farrago.cwm.core
Class CwmConstraint$Hib
java.lang.Object
org.eigenbase.enki.jmi.impl.RefBaseObjectBase
org.eigenbase.enki.jmi.impl.RefFeaturedBase
org.eigenbase.enki.jmi.impl.RefObjectBase
org.eigenbase.enki.hibernate.storage.HibernateObject
org.eigenbase.enki.hibernate.jmi.HibernateRefObject
net.sf.farrago.cwm.core.CwmConstraint$Hib
- All Implemented Interfaces:
- RefBaseObject, RefFeatured, RefObject, CwmConstraint, CwmElement, CwmModelElement, HibernateAssociable, HibernateIdentifiable
public class CwmConstraint$Hib
- extends HibernateRefObject
- implements CwmConstraint, HibernateAssociable
Constraint object instance interface.
A constraint is a semantic condition or restriction expressed in text.
In the metamodel, a Constraint is a BooleanExpression on an associated
ModelElement(s) which must be true for the model to be well formed. This
restriction can be stated in natural language, or in different kinds of
languages with well-defined semantics. Certain Constraints are predefined,
others may be user defined. Note that a Constraint is an assertion, not an
executable mechanism.
The specification is written as an expression in a designated constraint
language. The language can be specially designed for writing constraints
(such as OCL), a programming language, mathematical notation, or natural
language. If constraints are to be enforced by a model editor tool, then
the tool must understand the syntax and semantics of the constraint
language. Because the choice of language is arbitrary, constraints can be
used as an extension mechanism.
The constraint concept allows new semantics to be specified linguistically
for a model element. In the metamodel a Constraint directly attached to a
ModelElement describes semantic restrictions that this ModelElement must
obey.
Note: This type should not be subclassed,
implemented or directly instantiated by clients. It is generated from a
MOF metamodel and implemented by Enki or MDR.
Methods inherited from class org.eigenbase.enki.jmi.impl.RefBaseObjectBase |
createInstance, equals, getCurrentInitializer, getEnum, getInitializer, getMofId, getTag, hashCode, invokeMethod, invokeMethod, logJmi, refMofId, refOutermostPackage, refVerifyConstraints, setMofId |
_id
private static final String _id
- See Also:
- Constant Field Values
name$Hib
protected String name$Hib
visibility$Hib
protected String visibility$Hib
clientDependency$Hib
protected HibernateManyToManyLazyAssociation clientDependency$Hib
constraint$Hib
protected HibernateManyToManyLazyAssociation constraint$Hib
importer$Hib
protected HibernateManyToManyLazyAssociation importer$Hib
namespace$Hib
protected HibernateOneToManyLazyHighCardinalityAssociation namespace$Hib
constrainedElement$Hib
protected HibernateManyToManyLazyOrderedAssociation constrainedElement$Hib
dependencySupplier_SupplierDependency$Hib
protected HibernateManyToManyLazyAssociation dependencySupplier_SupplierDependency$Hib
stereotypeConstraints_ConstrainedStereotype$Hib
protected HibernateOneToManyLazyAssociation stereotypeConstraints_ConstrainedStereotype$Hib
stereotypedElement_Stereotype$Hib
protected HibernateOneToManyLazyAssociation stereotypedElement_Stereotype$Hib
taggedElement_TaggedValue$Hib
protected HibernateOneToManyLazyAssociation taggedElement_TaggedValue$Hib
privilegeIsGrantedOnElement_Privilege$Hib
protected HibernateOneToManyLazyHighCardinalityAssociation privilegeIsGrantedOnElement_Privilege$Hib
body$Comp$CwmConstraint$Hib
protected HibernateOneToOneLazyAssociation body$Comp$CwmConstraint$Hib
CwmConstraint$Hib
CwmConstraint$Hib()
CwmConstraint$Hib
CwmConstraint$Hib(String name,
VisibilityKind visibility,
CwmBooleanExpression body)
getName$Hib
public String getName$Hib()
setName$Hib
public void setName$Hib(String newValue)
getName
public String getName()
- Description copied from interface:
CwmModelElement
- Returns the value of attribute name.
An identifier for the ModelElement within its containing Namespace.
- Specified by:
getName
in interface CwmModelElement
- Returns:
- Value of attribute name.
setName
public void setName(String newValue)
- Description copied from interface:
CwmModelElement
- Sets the value of name attribute. See
CwmModelElement.getName()
for
description on the attribute.
- Specified by:
setName
in interface CwmModelElement
- Parameters:
newValue
- New value to be set.
getVisibility$Hib
public String getVisibility$Hib()
setVisibility$Hib
public void setVisibility$Hib(String newValue)
getVisibility
public VisibilityKind getVisibility()
- Description copied from interface:
CwmModelElement
- Returns the value of attribute visibility.
Specifies extent of the visibility of the ModelElement within its
owning Namespace.
- Specified by:
getVisibility
in interface CwmModelElement
- Returns:
- Value of attribute visibility.
setVisibility
public void setVisibility(VisibilityKind newValue)
- Description copied from interface:
CwmModelElement
- Sets the value of visibility attribute. See
CwmModelElement.getVisibility()
for description on the attribute.
- Specified by:
setVisibility
in interface CwmModelElement
- Parameters:
newValue
- New value to be set.
getClientDependency
public Collection<CwmDependency> getClientDependency()
- Description copied from interface:
CwmModelElement
- Returns the value of reference clientDependency.
- Specified by:
getClientDependency
in interface CwmModelElement
- Returns:
- Value of reference clientDependency. Element type:
CwmDependency
getClientDependency$Hib
public HibernateManyToManyLazyAssociation getClientDependency$Hib()
setClientDependency$Hib
public void setClientDependency$Hib(HibernateManyToManyLazyAssociation newValue)
getConstraint
public Collection<CwmConstraint> getConstraint()
- Description copied from interface:
CwmModelElement
- Returns the value of reference constraint.
- Specified by:
getConstraint
in interface CwmModelElement
- Returns:
- Value of reference constraint. Element type:
CwmConstraint
getConstraint$Hib
public HibernateManyToManyLazyAssociation getConstraint$Hib()
setConstraint$Hib
public void setConstraint$Hib(HibernateManyToManyLazyAssociation newValue)
getImporter
public Collection<CwmPackage> getImporter()
- Description copied from interface:
CwmModelElement
- Returns the value of reference importer.
- Specified by:
getImporter
in interface CwmModelElement
- Returns:
- Value of reference importer. Element type:
CwmPackage
getImporter$Hib
public HibernateManyToManyLazyAssociation getImporter$Hib()
setImporter$Hib
public void setImporter$Hib(HibernateManyToManyLazyAssociation newValue)
getNamespace
public CwmNamespace getNamespace()
- Description copied from interface:
CwmModelElement
- Returns the value of reference namespace.
- Specified by:
getNamespace
in interface CwmModelElement
- Returns:
- Value of reference namespace.
setNamespace
public void setNamespace(CwmNamespace newValue)
- Description copied from interface:
CwmModelElement
- Sets the value of namespace reference. See
CwmModelElement.getNamespace()
for
description on the attribute.
- Specified by:
setNamespace
in interface CwmModelElement
- Parameters:
newValue
- New value to be set.
getNamespace$Hib
public HibernateOneToManyLazyHighCardinalityAssociation getNamespace$Hib()
setNamespace$Hib
public void setNamespace$Hib(HibernateOneToManyLazyHighCardinalityAssociation newValue)
getConstrainedElement
public List<CwmModelElement> getConstrainedElement()
- Description copied from interface:
CwmConstraint
- Returns the value of reference constrainedElement.
- Specified by:
getConstrainedElement
in interface CwmConstraint
- Returns:
- Value of reference constrainedElement. Element type:
CwmModelElement
getConstrainedElement$Hib
public HibernateManyToManyLazyOrderedAssociation getConstrainedElement$Hib()
setConstrainedElement$Hib
public void setConstrainedElement$Hib(HibernateManyToManyLazyOrderedAssociation newValue)
getDependencySupplier_SupplierDependency$Hib
public HibernateManyToManyLazyAssociation getDependencySupplier_SupplierDependency$Hib()
setDependencySupplier_SupplierDependency$Hib
public void setDependencySupplier_SupplierDependency$Hib(HibernateManyToManyLazyAssociation newValue)
getStereotypeConstraints_ConstrainedStereotype$Hib
public HibernateOneToManyLazyAssociation getStereotypeConstraints_ConstrainedStereotype$Hib()
setStereotypeConstraints_ConstrainedStereotype$Hib
public void setStereotypeConstraints_ConstrainedStereotype$Hib(HibernateOneToManyLazyAssociation newValue)
getStereotypedElement_Stereotype$Hib
public HibernateOneToManyLazyAssociation getStereotypedElement_Stereotype$Hib()
setStereotypedElement_Stereotype$Hib
public void setStereotypedElement_Stereotype$Hib(HibernateOneToManyLazyAssociation newValue)
getTaggedElement_TaggedValue$Hib
public HibernateOneToManyLazyAssociation getTaggedElement_TaggedValue$Hib()
setTaggedElement_TaggedValue$Hib
public void setTaggedElement_TaggedValue$Hib(HibernateOneToManyLazyAssociation newValue)
getPrivilegeIsGrantedOnElement_Privilege$Hib
public HibernateOneToManyLazyHighCardinalityAssociation getPrivilegeIsGrantedOnElement_Privilege$Hib()
setPrivilegeIsGrantedOnElement_Privilege$Hib
public void setPrivilegeIsGrantedOnElement_Privilege$Hib(HibernateOneToManyLazyHighCardinalityAssociation newValue)
getBody
public CwmBooleanExpression getBody()
- Description copied from interface:
CwmConstraint
- Returns the value of attribute body.
A BooleanExpression that must be true when evaluated for an instance
of a system to be well-formed. A boolean expression defining the
constraint. Expressions are written as strings in a designated
language. For the model to be well formed, the expression must always
yield a true value when evaluated for instances of the constrained
elements at any time when the system is stable (i.e., not during the
execution of an atomic operation).
- Specified by:
getBody
in interface CwmConstraint
- Returns:
- Value of attribute body.
setBody
public void setBody(CwmBooleanExpression newValue)
- Description copied from interface:
CwmConstraint
- Sets the value of body attribute. See
CwmConstraint.getBody()
for
description on the attribute.
- Specified by:
setBody
in interface CwmConstraint
- Parameters:
newValue
- New value to be set.
getBody$Comp$CwmConstraint$Hib
public HibernateOneToOneLazyAssociation getBody$Comp$CwmConstraint$Hib()
setBody$Comp$CwmConstraint$Hib
public void setBody$Comp$CwmConstraint$Hib(HibernateOneToOneLazyAssociation newValue)
getAssociation
public HibernateAssociation getAssociation(String type,
boolean firstEnd)
- Specified by:
getAssociation
in interface HibernateAssociable
setAssociation
public void setAssociation(String type,
boolean firstEnd,
HibernateAssociation assoc)
- Specified by:
setAssociation
in interface HibernateAssociable
getOrCreateAssociation
public HibernateAssociation getOrCreateAssociation(String type,
boolean firstEnd)
- Specified by:
getOrCreateAssociation
in interface HibernateAssociable
removeAssociations
protected void removeAssociations()
- Specified by:
removeAssociations
in class HibernateRefObject
getComposingAssociations
public Collection<HibernateAssociation> getComposingAssociations()
- Specified by:
getComposingAssociations
in class HibernateRefObject
getNonComposingAssociations
public Collection<HibernateAssociation> getNonComposingAssociations()
- Specified by:
getNonComposingAssociations
in class HibernateRefObject
refImmediateComposite
public RefObject refImmediateComposite()
- Specified by:
refImmediateComposite
in interface RefObject
- Overrides:
refImmediateComposite
in class RefObjectBase
checkConstraints
protected void checkConstraints(List<JmiException> errors,
boolean deepVerify)
- Specified by:
checkConstraints
in class RefBaseObjectBase
getClassIdentifier
public String getClassIdentifier()
- Specified by:
getClassIdentifier
in class HibernateRefObject