|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.w3c.jpa3.AbstractObject
org.opencrx.kernel.model1.jpa3.Element
org.opencrx.kernel.model1.jpa3.Reference
public class Reference
Class Reference
A Reference defines a Classifier's knowledge of, and access to, links and their instances defined by an Association. Although a Reference derives much of its state from a corresponding AssociationEnd, it provides additional information; therefore, the MOF cannot adequately represent some meta-models without this mechanism. The inherited attributes defined in StructuralFeature (multiplicity and isChangeable) are constrained to match the values of its corresponding AssociationEnd. However, it has its own visibility, name, and annotation defined.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.w3c.jpa3.AbstractObject |
|---|
org.w3c.jpa3.AbstractObject.AbstractStateAccessor, org.w3c.jpa3.AbstractObject.EmbeddedList<E>, org.w3c.jpa3.AbstractObject.EmbeddedSet<E>, org.w3c.jpa3.AbstractObject.ObjectState, org.w3c.jpa3.AbstractObject.SlicedList<E,S>, org.w3c.jpa3.AbstractObject.SlicedMap<E,S>, org.w3c.jpa3.AbstractObject.SlicedSet<E,S> |
| Nested classes/interfaces inherited from interface org.opencrx.kernel.model1.cci2.Element |
|---|
Element.Identity |
| Field Summary |
|---|
| Fields inherited from class org.opencrx.kernel.model1.jpa3.Element |
|---|
createdAt, identity, modifiedAt |
| Constructor Summary | |
|---|---|
Reference()
Constructor |
|
| Method Summary | |
|---|---|
String |
getExposedEnd_Id()
|
AssociationEnd |
getExposedEnd()
Retrieves the value for the reference exposedEnd. |
short |
getMultiplicity()
Retrieves the value for the attribute multiplicity. |
String |
getReferencedEnd_Id()
|
AssociationEnd |
getReferencedEnd()
Retrieves the value for the reference referencedEnd. |
short |
getScope()
Retrieves the value for the attribute scope. |
String |
getType_Id()
|
Classifier |
getType()
Retrieves the value for the reference type. |
Integer |
getUpperBound()
Retrieves the possibly null value for the optional attribute upperBound. |
short |
getVisibility()
Retrieves the value for the attribute visibility. |
boolean |
isChangeable()
Retrieves the value for the attribute isChangeable. |
void |
setChangeable(boolean isChangeable)
Sets a new value for the attribute isChangeable. |
void |
setExposedEnd_Id(String exposedEnd)
|
void |
setExposedEnd(AssociationEnd exposedEnd)
Sets a new value for the reference exposedEnd. |
void |
setMultiplicity(short multiplicity)
Sets a new value for the attribute multiplicity. |
void |
setReferencedEnd_Id(String referencedEnd)
|
void |
setReferencedEnd(AssociationEnd referencedEnd)
Sets a new value for the reference referencedEnd. |
void |
setScope(short scope)
Sets a new value for the attribute scope. |
void |
setType_Id(String type)
|
void |
setType(Classifier type)
Sets a new value for the reference type. |
void |
setUpperBound(Integer upperBound)
Sets a new value for the attribute upperBound. |
void |
setVisibility(short visibility)
Sets a new value for the attribute visibility. |
| Methods inherited from class org.w3c.jpa3.AbstractObject |
|---|
openmdxjdoMakeDirty, openmdxjdoSetArray, openmdxjdoSetCollection, openmdxjdoToArray, openmdxjdoToArray |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 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.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, setOwner, 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 |
| Constructor Detail |
|---|
public Reference()
| Method Detail |
|---|
public short getVisibility()
visibility.
In the future, this Attribute will be used to limit the ability of Elements outside of this Feature?s container to make use of it. The rules of visibility of MOF Elements are not currently specified.
getVisibility in interface Featurevisibility.public void setVisibility(short visibility)
visibility.
In the future, this Attribute will be used to limit the ability of Elements outside of this Feature?s container to make use of it. The rules of visibility of MOF Elements are not currently specified.
setVisibility in interface Featurevisibility - The non-null new value for attribute visibility.public short getMultiplicity()
multiplicity.
Multiplicity defines constraints on the collection of instances or values that a StructuralFeature can hold. Multiplicity defines a lower and upper bound to the cardinality of the collection, although the upper bound can be specified as Unbounded.
getMultiplicity in interface StructuralFeaturemultiplicity.public void setMultiplicity(short multiplicity)
multiplicity.
Multiplicity defines constraints on the collection of instances or values that a StructuralFeature can hold. Multiplicity defines a lower and upper bound to the cardinality of the collection, although the upper bound can be specified as Unbounded.
setMultiplicity in interface StructuralFeaturemultiplicity - The non-null new value for attribute multiplicity.public Classifier getType()
type.
getType in interface TypedElementnull value for this reference.public String getType_Id()
public void setType(Classifier type)
type.
setType in interface TypedElementtype - The non-null new value for this reference.public void setType_Id(String type)
public AssociationEnd getReferencedEnd()
referencedEnd.
getReferencedEnd in interface Referencenull value for this reference.public String getReferencedEnd_Id()
public void setReferencedEnd(AssociationEnd referencedEnd)
referencedEnd.
setReferencedEnd in interface ReferencereferencedEnd - The non-null new value for this reference.public void setReferencedEnd_Id(String referencedEnd)
public short getScope()
scope.
The scope defines whether a Feature supports the definition of instances of the Classifier owning the Feature or of the Classifier as a whole. When scope is instanceLevel, the Feature is accessed through instances of the Feature's owning Classifier; when scope is classifier, the Feature is accessed through the Classifier itself (or through its instances). For StructuralFeatures, a scope of instanceLevel indicates that a value represented by the StructuralFeature is associated with each instance of the Classifier; a scope of classifierLevel indicates that the StructuralFeature value is shared by the Classifier and all its instances.
getScope in interface Featurescope.public void setScope(short scope)
scope.
The scope defines whether a Feature supports the definition of instances of the Classifier owning the Feature or of the Classifier as a whole. When scope is instanceLevel, the Feature is accessed through instances of the Feature's owning Classifier; when scope is classifier, the Feature is accessed through the Classifier itself (or through its instances). For StructuralFeatures, a scope of instanceLevel indicates that a value represented by the StructuralFeature is associated with each instance of the Classifier; a scope of classifierLevel indicates that the StructuralFeature value is shared by the Classifier and all its instances.
setScope in interface Featurescope - The non-null new value for attribute scope.public boolean isChangeable()
isChangeable.
The isChangeable attribute places restrictions on the use of certain operations, which could change the set of values or instances of the StructuralFeature, and on the operations that will get generated in IDL or other language generation. For any elaboration, no means are automatically created which provides a means of altering the attribute value. When IDL is generated, for instance, the operations, which are normally generated for changing the StructuralFeature, will not be generated. However, isChangeable does not actually constrain the StructuralFeature to make it immutable. Any operations explicitly defined in a model may change the StructuralFeature values or instances (assuming the operation would have otherwise been able to do so).
isChangeable in interface StructuralFeatureisChangeable.public void setChangeable(boolean isChangeable)
isChangeable.
The isChangeable attribute places restrictions on the use of certain operations, which could change the set of values or instances of the StructuralFeature, and on the operations that will get generated in IDL or other language generation. For any elaboration, no means are automatically created which provides a means of altering the attribute value. When IDL is generated, for instance, the operations, which are normally generated for changing the StructuralFeature, will not be generated. However, isChangeable does not actually constrain the StructuralFeature to make it immutable. Any operations explicitly defined in a model may change the StructuralFeature values or instances (assuming the operation would have otherwise been able to do so).
setChangeable in interface StructuralFeatureisChangeable - The non-null new value for attribute isChangeable.public AssociationEnd getExposedEnd()
exposedEnd.
getExposedEnd in interface Referencenull value for this reference.public String getExposedEnd_Id()
public void setExposedEnd(AssociationEnd exposedEnd)
exposedEnd.
setExposedEnd in interface ReferenceexposedEnd - The non-null new value for this reference.public void setExposedEnd_Id(String exposedEnd)
public final Integer getUpperBound()
upperBound.
getUpperBound in interface StructuralFeatureupperBound.public void setUpperBound(Integer upperBound)
upperBound.
setUpperBound in interface StructuralFeatureupperBound - The possibly null new value for attribute upperBound.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||