|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.oasisopen.jdo2.Identifiable
org.w3c.jdo2.AbstractObject
org.opencrx.kernel.model1.jdo2.Element
org.opencrx.kernel.model1.jdo2.Attribute
public class Attribute
Class Attribute
An Attribute defines a StructuralFeature which contains values for Classifiers or their instances.
| Nested Class Summary | |
|---|---|
static class |
Attribute.Slice
Slice object hold the Attribute's multivalued attributes |
| Nested classes/interfaces inherited from class org.opencrx.kernel.model1.jdo2.Element |
|---|
Element.Identity |
| Nested classes/interfaces inherited from class org.w3c.jdo2.AbstractObject |
|---|
org.w3c.jdo2.AbstractObject.EmbeddedList<E>, org.w3c.jdo2.AbstractObject.EmbeddedSet<E> |
| Nested classes/interfaces inherited from interface org.opencrx.kernel.model1.cci2.Element |
|---|
Element.Identity |
| Field Summary | |
|---|---|
static List<String> |
CLASS
Define the model class org::opencrx::kernel::model1::Attribute |
| Fields inherited from class org.opencrx.kernel.model1.jdo2.Element |
|---|
BASE_CLASS |
| Constructor Summary | |
|---|---|
Attribute()
|
|
| Method Summary | |
|---|---|
int |
getMaxLength()
Retrieves the value for the attribute maxLength. |
short |
getMultiplicity()
Retrieves the value for the attribute multiplicity. |
short |
getScope()
Retrieves the value for the attribute scope. |
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. |
boolean |
isDerived()
Retrieves the value for the attribute isDerived. |
static Element.Identity |
newIdentity(Segment.Identity segment,
QualifierType idType,
String id)
|
protected org.w3c.jdo2.AbstractObject.Slice |
newSlice(int index)
|
protected List<String> |
openmdxjdoGetClass()
Retrieve the model class |
protected int |
openmdxjdoGetSize(int field)
|
protected void |
openmdxjdoSetSize(int field,
int size)
|
static Element.Identity |
openmdxjdoToIdentity(ObjectId objectId)
|
void |
setChangeable(boolean isChangeable)
Sets a new value for the attribute isChangeable. |
void |
setDerived(boolean isDerived)
Sets a new value for the attribute isDerived. |
void |
setMaxLength(int maxLength)
Sets a new value for the attribute maxLength. |
void |
setMultiplicity(short multiplicity)
Sets a new value for the attribute multiplicity. |
void |
setScope(short scope)
Sets a new value for the attribute scope. |
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.jdo2.AbstractObject |
|---|
openmdxjdoClassName, openmdxjdoGetIdentityBuilder, openmdxjdoGetList, openmdxjdoGetObjectsByParent, openmdxjdoGetSet, openmdxjdoGetSparseArray, openmdxjdoNewMap, openmdxjdoNewSlice, openmdxjdoSetArray, openmdxjdoSetCollection, openmdxjdoToArray, openmdxjdoToArray, openmdxjdoValidateElement |
| Methods inherited from class org.oasisopen.jdo2.Identifiable |
|---|
jdoClass, modelClasses, openmdxjdoGetObject, openmdxjdoGetObjectById, openmdxjdoGetObjectId, openmdxjdoGetObjectSet, openmdxjdoNewObjectId, openmdxjdoNewObjectId |
| 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, 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, setOwningUser, setOwningUser |
| Methods inherited from interface org.openmdx.base.cci2.BasicObject |
|---|
getCreatedAt, getCreatedBy, getModifiedAt, getModifiedBy |
| Methods inherited from interface org.openmdx.base.cci2.ContextCapable |
|---|
getContext |
| Methods inherited from interface org.openmdx.base.cci2.ExtentCapable |
|---|
getIdentity |
| Methods inherited from interface org.openmdx.compatibility.view1.cci2.ViewCapable |
|---|
getView |
| Field Detail |
|---|
public static final List<String> CLASS
org::opencrx::kernel::model1::Attribute
| Constructor Detail |
|---|
public Attribute()
| 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 boolean isDerived()
isDerived.
A derived attribute is one whose values are not part of the state of the object instance, but whose values can be determined or computed. In a sense, all attributes are derived, since it is up to the class's implementation to hold or calculate the values. However, by convention, isDerived indicates that the derived state is based on other information in the model. Modification of the derived Attribute causes the information upon which the Attribute is derived to be updated.
isDerived in interface AttributeisDerived.public void setDerived(boolean isDerived)
isDerived.
A derived attribute is one whose values are not part of the state of the object instance, but whose values can be determined or computed. In a sense, all attributes are derived, since it is up to the class's implementation to hold or calculate the values. However, by convention, isDerived indicates that the derived state is based on other information in the model. Modification of the derived Attribute causes the information upon which the Attribute is derived to be updated.
setDerived in interface AttributeisDerived - The non-null new value for attribute isDerived.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 void setType(Classifier type)
type.
setType in interface TypedElementtype - The non-null new value for this reference.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 int getMaxLength()
maxLength.
getMaxLength in interface AttributemaxLength.public void setMaxLength(int maxLength)
maxLength.
setMaxLength in interface AttributemaxLength - The non-null new value for attribute maxLength.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.protected int openmdxjdoGetSize(int field)
openmdxjdoGetSize in class Element
protected void openmdxjdoSetSize(int field,
int size)
openmdxjdoSetSize in class Elementprotected org.w3c.jdo2.AbstractObject.Slice newSlice(int index)
newSlice in class Elementprotected List<String> openmdxjdoGetClass()
openmdxjdoGetClass in class ElementAttribute.CLASS
public static Element.Identity newIdentity(Segment.Identity segment,
QualifierType idType,
String id)
public static Element.Identity openmdxjdoToIdentity(ObjectId objectId)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||