net.sf.farrago.cwm.core
Class CwmTaggedValue$Hib

java.lang.Object
  extended by org.eigenbase.enki.jmi.impl.RefBaseObjectBase
      extended by org.eigenbase.enki.jmi.impl.RefFeaturedBase
          extended by org.eigenbase.enki.jmi.impl.RefObjectBase
              extended by org.eigenbase.enki.hibernate.storage.HibernateObject
                  extended by org.eigenbase.enki.hibernate.jmi.HibernateRefObject
                      extended by net.sf.farrago.cwm.core.CwmTaggedValue$Hib
All Implemented Interfaces:
RefBaseObject, RefFeatured, RefObject, CwmElement, CwmTaggedValue, HibernateAssociable, HibernateIdentifiable

public class CwmTaggedValue$Hib
extends HibernateRefObject
implements CwmTaggedValue, HibernateAssociable

TaggedValue object instance interface. A tagged value allows information to be attached to any model element in the form of a "tagged value" pair (i.e., name = value). The interpretation of tagged value semantics is intentionally beyond the scope of CWM. It must be determined by user or tool conventions. It is expected that tools will define tags to supply information needed for their operations beyond the basic semantics of CWM. Such information could include code generation options, model management information, or user-specified semantics. Even though TaggedValues are a simple and straightforward extension technique, their use restricts semantic interchange of metadata to only those tools that share a common understanding of the specific tagged value names.

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.


Field Summary
private static String _id
           
protected  HibernateOneToManyLazyAssociation modelElement$Hib
           
protected  HibernateOneToManyLazyAssociation stereotype$Hib
           
protected  String tag$Hib
           
protected  String value$Hib
           
 
Constructor Summary
CwmTaggedValue$Hib()
           
CwmTaggedValue$Hib(String tag, String value)
           
 
Method Summary
protected  void checkConstraints(List<JmiException> errors, boolean deepVerify)
           
 HibernateAssociation getAssociation(String type, boolean firstEnd)
           
 String getClassIdentifier()
           
 Collection<HibernateAssociation> getComposingAssociations()
           
 CwmModelElement getModelElement()
          Returns the value of reference modelElement.
 HibernateOneToManyLazyAssociation getModelElement$Hib()
           
 Collection<HibernateAssociation> getNonComposingAssociations()
           
 HibernateAssociation getOrCreateAssociation(String type, boolean firstEnd)
           
 CwmStereotype getStereotype()
          Returns the value of reference stereotype.
 HibernateOneToManyLazyAssociation getStereotype$Hib()
           
 String getTag()
          Returns the value of attribute tag.
 String getTag$Hib()
           
 String getValue()
          Returns the value of attribute value.
 String getValue$Hib()
           
 RefObject refImmediateComposite()
           
protected  void removeAssociations()
           
 void setAssociation(String type, boolean firstEnd, HibernateAssociation assoc)
           
 void setModelElement(CwmModelElement newValue)
          Sets the value of modelElement reference.
 void setModelElement$Hib(HibernateOneToManyLazyAssociation newValue)
           
 void setStereotype(CwmStereotype newValue)
          Sets the value of stereotype reference.
 void setStereotype$Hib(HibernateOneToManyLazyAssociation newValue)
           
 void setTag(String newValue)
          Sets the value of tag attribute.
 void setTag$Hib(String newValue)
           
 void setValue(String newValue)
          Sets the value of value attribute.
 void setValue$Hib(String newValue)
           
 
Methods inherited from class org.eigenbase.enki.hibernate.jmi.HibernateRefObject
associationSetSingle, attributeSetSingle, findAssociationEnd, fireAssociationRemoveAllEvents, fireAttributeSetEvent, getHibernateRepository, getRepository, refClass, refDelete
 
Methods inherited from class org.eigenbase.enki.hibernate.storage.HibernateObject
delete, delete, save, save
 
Methods inherited from class org.eigenbase.enki.jmi.impl.RefObjectBase
findAttribute, refImmediatePackage, refIsInstanceOf, refMetaObject, refOutermostComposite, setRefMetaObject, unregister
 
Methods inherited from class org.eigenbase.enki.jmi.impl.RefFeaturedBase
refGetValue, refGetValue, refInvokeOperation, refInvokeOperation, refSetValue, refSetValue
 
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
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.jmi.reflect.RefObject
refClass, refDelete, refIsInstanceOf, refOutermostComposite
 
Methods inherited from interface javax.jmi.reflect.RefFeatured
refGetValue, refGetValue, refInvokeOperation, refInvokeOperation, refSetValue, refSetValue
 
Methods inherited from interface javax.jmi.reflect.RefBaseObject
equals, hashCode, refImmediatePackage, refMetaObject, refMofId, refOutermostPackage, refVerifyConstraints
 
Methods inherited from interface org.eigenbase.enki.hibernate.storage.HibernateIdentifiable
getMofId
 

Field Detail

_id

private static final String _id
See Also:
Constant Field Values

tag$Hib

protected String tag$Hib

value$Hib

protected String value$Hib

modelElement$Hib

protected HibernateOneToManyLazyAssociation modelElement$Hib

stereotype$Hib

protected HibernateOneToManyLazyAssociation stereotype$Hib
Constructor Detail

CwmTaggedValue$Hib

CwmTaggedValue$Hib()

CwmTaggedValue$Hib

CwmTaggedValue$Hib(String tag,
                   String value)
Method Detail

getTag$Hib

public String getTag$Hib()

setTag$Hib

public void setTag$Hib(String newValue)

getTag

public String getTag()
Description copied from interface: CwmTaggedValue
Returns the value of attribute tag. Contains the name of the TaggedValue. This name determines the semantics that are applicable to the contents of the value attribute.

Specified by:
getTag in interface CwmTaggedValue
Returns:
Value of attribute tag.

setTag

public void setTag(String newValue)
Description copied from interface: CwmTaggedValue
Sets the value of tag attribute. See CwmTaggedValue.getTag() for description on the attribute.

Specified by:
setTag in interface CwmTaggedValue
Parameters:
newValue - New value to be set.

getValue$Hib

public String getValue$Hib()

setValue$Hib

public void setValue$Hib(String newValue)

getValue

public String getValue()
Description copied from interface: CwmTaggedValue
Returns the value of attribute value. Contains the current value of the TaggedValue.

Specified by:
getValue in interface CwmTaggedValue
Returns:
Value of attribute value.

setValue

public void setValue(String newValue)
Description copied from interface: CwmTaggedValue
Sets the value of value attribute. See CwmTaggedValue.getValue() for description on the attribute.

Specified by:
setValue in interface CwmTaggedValue
Parameters:
newValue - New value to be set.

getModelElement

public CwmModelElement getModelElement()
Description copied from interface: CwmTaggedValue
Returns the value of reference modelElement.

Specified by:
getModelElement in interface CwmTaggedValue
Returns:
Value of reference modelElement.

setModelElement

public void setModelElement(CwmModelElement newValue)
Description copied from interface: CwmTaggedValue
Sets the value of modelElement reference. See CwmTaggedValue.getModelElement() for description on the attribute.

Specified by:
setModelElement in interface CwmTaggedValue
Parameters:
newValue - New value to be set.

getModelElement$Hib

public HibernateOneToManyLazyAssociation getModelElement$Hib()

setModelElement$Hib

public void setModelElement$Hib(HibernateOneToManyLazyAssociation newValue)

getStereotype

public CwmStereotype getStereotype()
Description copied from interface: CwmTaggedValue
Returns the value of reference stereotype.

Specified by:
getStereotype in interface CwmTaggedValue
Returns:
Value of reference stereotype.

setStereotype

public void setStereotype(CwmStereotype newValue)
Description copied from interface: CwmTaggedValue
Sets the value of stereotype reference. See CwmTaggedValue.getStereotype() for description on the attribute.

Specified by:
setStereotype in interface CwmTaggedValue
Parameters:
newValue - New value to be set.

getStereotype$Hib

public HibernateOneToManyLazyAssociation getStereotype$Hib()

setStereotype$Hib

public void setStereotype$Hib(HibernateOneToManyLazyAssociation 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