|
||||||||||
| 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.Class
public class Class
Class Class
A Class defines a classification over a set of object instances by defining the behavior they exhibit. This behavior is represented through operations, attributes, references, participation in associations, nested classes, constants, and constraints. Although the same or similar elements are used in other environments for representing Classes and their implementations, in the MOF these elements specify the class characteristics in an implementation-independent manner. For instance, defining a Class as having an attribute does not require the implementation of the Class (the software which provides the conformant behavior) to have an attribute, to hold the attribute value, etc. The implementation simply must insure that the behavior conforms to the definition of the attribute. The use of all the additional elements beyond operations provides a much richer environment for defining Class Behavior. Likewise, this construct is not an interface. Its expressibility goes beyond interface representations. The MOF's IDL translation capabilities map a single Class onto two interfaces. It would be possible to define transformations to alternate interface presentations, such as Java's interfaces.
There are, and probably always will be, divergent views among industry leaders on the definition of the concepts of Class, Type, and Interface. As a domain-specific modeling environment, so long as the MOF is clear about the meaning of Class within the MOF, it should remain immune from such concerns.
| Nested Class Summary | |
|---|---|
static class |
Class.Slice
Slice object hold the Class'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::Class |
| Fields inherited from class org.opencrx.kernel.model1.jdo2.Element |
|---|
BASE_CLASS |
| Constructor Summary | |
|---|---|
Class()
|
|
| Method Summary | ||
|---|---|---|
Void |
deleteNamespace()
|
|
|
getContent()
Retrieves a set containing all the elements for the reference content. |
|
|
getSupertype()
Retrieves the Collection of objects referenced by supertype. |
|
|
getTypedElement()
Retrieves a set containing all the elements for the reference typedElement. |
|
short |
getVisibility()
Retrieves the value for the attribute visibility. |
|
boolean |
isAbstract()
Retrieves the value for the attribute isAbstract. |
|
boolean |
isSingleton()
Retrieves the value for the attribute isSingleton. |
|
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 |
setAbstract(boolean isAbstract)
Sets a new value for the attribute isAbstract. |
|
void |
setSingleton(boolean isSingleton)
Sets a new value for the attribute isSingleton. |
|
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.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 |
| Field Detail |
|---|
public static final List<String> CLASS
org::opencrx::kernel::model1::Class
| Constructor Detail |
|---|
public Class()
| Method Detail |
|---|
public short getVisibility()
visibility.
In the future, this Attribute will be used to limit the ability of Elements outside of this GeneralizableElement?s container to depend on it. The rules of visibility of MOF Elements are not currently specified.
getVisibility in interface GeneralizableElementvisibility.public void setVisibility(short visibility)
visibility.
In the future, this Attribute will be used to limit the ability of Elements outside of this GeneralizableElement?s container to depend on it. The rules of visibility of MOF Elements are not currently specified.
setVisibility in interface GeneralizableElementvisibility - The non-null new value for attribute visibility.public Void deleteNamespace()
deleteNamespace in interface Namespacepublic boolean isAbstract()
isAbstract.
Indicates whether the GeneralizableElement is expected to have instances. When isAbstract is true, any instance that is represented or classified by this GeneralizableElement is additionally an instance of some specialization of this GeneralizableElement. No operation that supports creation of instances of this GeneralizableElement should be available.
isAbstract in interface GeneralizableElementisAbstract.public void setAbstract(boolean isAbstract)
isAbstract.
Indicates whether the GeneralizableElement is expected to have instances. When isAbstract is true, any instance that is represented or classified by this GeneralizableElement is additionally an instance of some specialization of this GeneralizableElement. No operation that supports creation of instances of this GeneralizableElement should be available.
setAbstract in interface GeneralizableElementisAbstract - The non-null new value for attribute isAbstract.public <T extends Element> NamespaceContainsElement.Content<T> getContent()
content.
getContent in interface Namespacepublic <T extends GeneralizableElement> List<T> getSupertype()
Collection of objects referenced by supertype.
getSupertype in interface GeneralizableElementCollection of referenced objects.public <T extends TypedElement> ClassifierClassifiesTypedElement.TypedElement<T> getTypedElement()
typedElement.
getTypedElement in interface Classifierpublic boolean isSingleton()
isSingleton.
When isSingleton is true, at most one M1 level instance of this Class may exist within the M1-level extent of the Class.
isSingleton in interface ClassisSingleton.public void setSingleton(boolean isSingleton)
isSingleton.
When isSingleton is true, at most one M1 level instance of this Class may exist within the M1-level extent of the Class.
setSingleton in interface ClassisSingleton - The non-null new value for attribute isSingleton.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 ElementClass.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 | |||||||||