net.sf.farrago.cwm.datatypes
Class CwmEnumerationLiteral$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.datatypes.CwmEnumerationLiteral$Hib
- All Implemented Interfaces:
- RefBaseObject, RefFeatured, RefObject, CwmElement, CwmModelElement, CwmEnumerationLiteral, HibernateAssociable, HibernateIdentifiable
public class CwmEnumerationLiteral$Hib
- extends HibernateRefObject
- implements CwmEnumerationLiteral, HibernateAssociable
EnumerationLiteral object instance interface.
EnumerationLiteral instances describe the enumeration identifiers, and
possibly the
values, associated with an enumerated data type. Enumeration identifiers
are contained
in the name attribute derived from the EnumerationLiteral instance?s
ModelElement superclass.
EnumerationLiteral instances may also be used to define expression-based
values such as ranges. To do so, simply state the membership expression in
the instance?s value. For example, a range literal can be created by
setting the value attribute to "m..n", where m represents the lower bound
of the range, and n, the upper bound. In this way, ranges and other more
complicated expressions can be intermixed with simple
enumeration literals. For example, an enumeration might contain the
literals "1", "2", "4..7", and "> 10".
Consequently, a simple range data type can be created with an Enumeration
instance that owns a single EnumerationLiteral instance. For example, a
data type for positive integers could be created as shown in the following
instance diagram. A model attribute of this data type might then be
declared as "posInt : PositiveInteger".
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
enumeration$Hib
protected HibernateOneToManyLazyAssociation enumeration$Hib
dependencySupplier_SupplierDependency$Hib
protected HibernateManyToManyLazyAssociation dependencySupplier_SupplierDependency$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
value$Comp$CwmEnumerationLiteral$Hib
protected HibernateOneToOneLazyAssociation value$Comp$CwmEnumerationLiteral$Hib
CwmEnumerationLiteral$Hib
CwmEnumerationLiteral$Hib()
CwmEnumerationLiteral$Hib
CwmEnumerationLiteral$Hib(String name,
VisibilityKind visibility,
CwmExpression value)
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)
getEnumeration
public CwmEnumeration getEnumeration()
- Description copied from interface:
CwmEnumerationLiteral
- Returns the value of reference enumeration.
- Specified by:
getEnumeration
in interface CwmEnumerationLiteral
- Returns:
- Value of reference enumeration.
setEnumeration
public void setEnumeration(CwmEnumeration newValue)
- Description copied from interface:
CwmEnumerationLiteral
- Sets the value of enumeration reference. See
CwmEnumerationLiteral.getEnumeration()
for description on the attribute.
- Specified by:
setEnumeration
in interface CwmEnumerationLiteral
- Parameters:
newValue
- New value to be set.
getEnumeration$Hib
public HibernateOneToManyLazyAssociation getEnumeration$Hib()
setEnumeration$Hib
public void setEnumeration$Hib(HibernateOneToManyLazyAssociation newValue)
getDependencySupplier_SupplierDependency$Hib
public HibernateManyToManyLazyAssociation getDependencySupplier_SupplierDependency$Hib()
setDependencySupplier_SupplierDependency$Hib
public void setDependencySupplier_SupplierDependency$Hib(HibernateManyToManyLazyAssociation 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)
getValue
public CwmExpression getValue()
- Description copied from interface:
CwmEnumerationLiteral
- Returns the value of attribute value.
The value associated with an enumeration identifier can be stored
here. The attribute is optional because enumeration literals are not
required to have a specific, displayable value. This is indicated by
either an empty value attribute or a value attribute value whose
expression body attribute is a zero-length string.
- Specified by:
getValue
in interface CwmEnumerationLiteral
- Returns:
- Value of attribute value.
setValue
public void setValue(CwmExpression newValue)
- Description copied from interface:
CwmEnumerationLiteral
- Sets the value of value attribute. See
CwmEnumerationLiteral.getValue()
for
description on the attribute.
- Specified by:
setValue
in interface CwmEnumerationLiteral
- Parameters:
newValue
- New value to be set.
getValue$Comp$CwmEnumerationLiteral$Hib
public HibernateOneToOneLazyAssociation getValue$Comp$CwmEnumerationLiteral$Hib()
setValue$Comp$CwmEnumerationLiteral$Hib
public void setValue$Comp$CwmEnumerationLiteral$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