org.opencrx.kernel.model1.cci2
Interface StructuralFeature

All Superinterfaces:
AlertSender, Auditee, BasicObject, Cloneable, ContextCapable, CrxObject, Element, Exporter, ExtentCapable, Feature, Importer, Indexed, SecureObject, TypedElement, ViewCapable
All Known Subinterfaces:
Attribute, Attribute, Reference, Reference, StructuralFeature
All Known Implementing Classes:
Attribute, Reference

public interface StructuralFeature
extends Feature, TypedElement

Abstract class StructuralFeature

A StructuralFeature defines a static characteristic of the ModelElement that contains it. The attributes and references of a Class define structural properties, which provide for the representation of the state of its instances.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.opencrx.kernel.model1.cci2.Element
Element.Identity
 
Method Summary
 short getMultiplicity()
          Retrieves the value for the attribute multiplicity.
 Integer getUpperBound()
          Retrieves the possibly null value for the optional attribute upperBound.
 boolean isChangeable()
          Retrieves the value for the attribute isChangeable.
 void setChangeable(boolean isChangeable)
          Sets a new value for the attribute isChangeable.
 void setMultiplicity(short multiplicity)
          Sets a new value for the attribute multiplicity.
 void setUpperBound(Integer upperBound)
          Sets a new value for the attribute upperBound.
 
Methods inherited from interface org.opencrx.kernel.model1.cci2.Feature
getScope, getVisibility, setScope, setVisibility
 
Methods inherited from interface org.opencrx.kernel.model1.cci2.TypedElement
getType, setType
 
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.generic.cci2.CrxObject
getAdditionalExternalLink, getAttachedDocument, getCategory, getDisabledReason, getDocumentFolderAssignment, getExternalLink, getMedia, getNote, getPropertySet, getPropertySetEntry, getRating, getUserBoolean4, getUserCode0, getUserCode1, getUserCode2, getUserCode3, getUserCode4, getUserDate0, getUserDate1, getUserDate2, getUserDate3, getUserDate4, getUserDateTime0, getUserDateTime1, getUserDateTime2, getUserDateTime3, getUserDateTime4, getUserNumber0, getUserNumber1, getUserNumber2, getUserNumber3, getUserNumber4, getUserString0, getUserString1, getUserString2, getUserString3, getUserString4, isDisabled, isUserBoolean0, isUserBoolean1, isUserBoolean2, isUserBoolean3, setCategory, setDisabled, setDisabledReason, setExternalLink, setUserBoolean0, setUserBoolean1, setUserBoolean2, setUserBoolean3, setUserBoolean4, setUserCode0, setUserCode1, setUserCode2, setUserCode3, setUserCode4, setUserDate0, setUserDate1, setUserDate2, setUserDate3, setUserDate4, setUserDateTime0, setUserDateTime1, setUserDateTime2, setUserDateTime3, setUserDateTime4, setUserNumber0, setUserNumber1, setUserNumber2, setUserNumber3, setUserNumber4, setUserString0, setUserString1, setUserString2, setUserString3, setUserString4
 
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
 

Method Detail

isChangeable

boolean isChangeable()
Retrieves the value for the attribute 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).

Returns:
The non-null value for attribute isChangeable.

setChangeable

void setChangeable(boolean isChangeable)
Sets a new value for the attribute 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).

Parameters:
isChangeable - The non-null new value for attribute isChangeable.

getMultiplicity

short getMultiplicity()
Retrieves the value for the attribute 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.

Returns:
The non-null value for attribute multiplicity.

setMultiplicity

void setMultiplicity(short multiplicity)
Sets a new value for the attribute 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.

Parameters:
multiplicity - The non-null new value for attribute multiplicity.

getUpperBound

Integer getUpperBound()
Retrieves the possibly null value for the optional attribute upperBound.

Returns:
The possibly null value for attribute upperBound.

setUpperBound

void setUpperBound(Integer upperBound)
Sets a new value for the attribute upperBound.

Parameters:
upperBound - The possibly null new value for attribute upperBound.


This software is published under the BSD license. Copyright © 2003-2008, CRIXP AG, Switzerland, All rights reserved. Use is subject to license terms.