org.omg.model1.jpa3.Class Maven / Gradle / Ivy
// ----------------------------------------------------------------------------
// Instance/Begin
// ----------------------------------------------------------------------------
//////////////////////////////////////////////////////////////////////////////
//
// Name: $Id: AbstractMapper.java,v 1.10 2011/07/08 13:20:51 wfro Exp $
// Generated by: openMDX Java Mapper
// Date: Mon Mar 09 17:04:35 CET 2020
//
// GENERATED - DO NOT CHANGE MANUALLY
//
//////////////////////////////////////////////////////////////////////////////
package org.omg.model1.jpa3;
/**
* 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.
*
*/
@SuppressWarnings("serial")
public class Class extends org.omg.model1.jpa3.Element
implements org.omg.model1.cci2.Class
{
/**
* Constructor
*/
public Class(
){
// Implements Serializable
}
// ----------------------------------------------------------------------------
// Instance/ReferenceDeclaration
// ----------------------------------------------------------------------------
/**
* Reference allFeatureWithSubtype
.
*/
@SuppressWarnings("unused")
private transient java.util.Set allFeatureWithSubtype;
// ----------------------------------------------------------------------------
// Instance/ReferenceGet0_nWithQuery
// ----------------------------------------------------------------------------
/**
* Retrieves a set containing all the elements for the reference allFeatureWithSubtype
.
* @return A set containing all the elements for this reference.
*/
@SuppressWarnings("unchecked")
public java.util.Set getAllFeatureWithSubtype(
){
java.util.Set> allFeatureWithSubtype = this.allFeatureWithSubtype;
return (java.util.Set)allFeatureWithSubtype;
}
// ----------------------------------------------------------------------------
// Instance/ReferenceGet0_nNoQuery
// ----------------------------------------------------------------------------
/**
* Retrieves the Collection
of objects referenced by allSubtype
.
* @return The Collection
of referenced objects.
*/
public java.util.Set getAllSubtype(
){
throw new javax.jdo.JDOFatalUserException(
"This signature is not handled by data object",
new UnsupportedOperationException("This signature is not handled by data object. Use getAllSubtype_Id()."),
this
);
}
public java.util.Set getAllSubtype_Id(
){
java.util.SortedMap slices = openmdxjdoGetSlices();
return new org.w3c.jpa3.AbstractObject.SlicedSet(slices) {
@Override
protected java.lang.String getValue(Class$Slice slice) {
return slice.getAllSubtype();
}
@Override
protected void setValue(Class$Slice slice, java.lang.String value) {
openmdxjdoMakeDirty();
slice.setAllSubtype(value);
}
@Override
protected Class$Slice newSlice(int index) {
return new Class$Slice(Class.this, index);
}
@Override
protected void setSize(int size) {
openmdxjdoMakeDirty();
allSubtype_size = size;
}
@Override
public int size() {
return allSubtype_size;
}
};
}
// ----------------------------------------------------------------------------
// Instance/ReferenceGet0_nNoQuery
// ----------------------------------------------------------------------------
/**
* Retrieves the Collection
of objects referenced by supertype
.
* @return The Collection
of referenced objects.
*/
public java.util.Set getSupertype(
){
throw new javax.jdo.JDOFatalUserException(
"This signature is not handled by data object",
new UnsupportedOperationException("This signature is not handled by data object. Use getSupertype_Id()."),
this
);
}
public java.util.Set getSupertype_Id(
){
java.util.SortedMap slices = openmdxjdoGetSlices();
return new org.w3c.jpa3.AbstractObject.SlicedSet(slices) {
@Override
protected java.lang.String getValue(Class$Slice slice) {
return slice.getSupertype();
}
@Override
protected void setValue(Class$Slice slice, java.lang.String value) {
openmdxjdoMakeDirty();
slice.setSupertype(value);
}
@Override
protected Class$Slice newSlice(int index) {
return new Class$Slice(Class.this, index);
}
@Override
protected void setSize(int size) {
openmdxjdoMakeDirty();
supertype_size = size;
}
@Override
public int size() {
return supertype_size;
}
};
}
// ----------------------------------------------------------------------------
// Instance/ReferenceDeclaration
// ----------------------------------------------------------------------------
/**
* Reference namespaceContent
.
*/
@SuppressWarnings("unused")
private transient java.util.Set namespaceContent;
// ----------------------------------------------------------------------------
// Instance/ReferenceGet0_nWithQuery
// ----------------------------------------------------------------------------
/**
* Retrieves a set containing all the elements for the reference namespaceContent
.
* @return A set containing all the elements for this reference.
*/
public org.omg.model1.cci2.NamespaceContainsElement.NamespaceContent getNamespaceContent(
){
throw new javax.jdo.JDOFatalUserException(
"This signature is not handled by data object",
new UnsupportedOperationException("This signature is not handled by data object. Use query on member 'namespaceContent'."),
this
);
}
// ----------------------------------------------------------------------------
// Instance/ReferenceGet0_nNoQuery
// ----------------------------------------------------------------------------
/**
* Retrieves the Collection
of objects referenced by content
.
* @return The Collection
of referenced objects.
*/
public java.util.Set getContent(
){
throw new javax.jdo.JDOFatalUserException(
"This signature is not handled by data object",
new UnsupportedOperationException("This signature is not handled by data object. Use getContent_Id()."),
this
);
}
public java.util.Set getContent_Id(
){
java.util.SortedMap slices = openmdxjdoGetSlices();
return new org.w3c.jpa3.AbstractObject.SlicedSet(slices) {
@Override
protected java.lang.String getValue(Class$Slice slice) {
return slice.getContent();
}
@Override
protected void setValue(Class$Slice slice, java.lang.String value) {
openmdxjdoMakeDirty();
slice.setContent(value);
}
@Override
protected Class$Slice newSlice(int index) {
return new Class$Slice(Class.this, index);
}
@Override
protected void setSize(int size) {
openmdxjdoMakeDirty();
content_size = size;
}
@Override
public int size() {
return content_size;
}
};
}
// ----------------------------------------------------------------------------
// Instance/ReferenceDeclaration
// ----------------------------------------------------------------------------
/**
* Reference reference
.
*/
@SuppressWarnings("unused")
private transient java.util.Set reference;
// ----------------------------------------------------------------------------
// Instance/ReferenceGet0_nWithQuery
// ----------------------------------------------------------------------------
/**
* Retrieves a set containing all the elements for the reference reference
.
* @return A set containing all the elements for this reference.
*/
@SuppressWarnings("unchecked")
public java.util.Set getReference(
){
java.util.Set> reference = this.reference;
return (java.util.Set)reference;
}
// ----------------------------------------------------------------------------
// Instance/ReferenceGet0_nNoQuery
// ----------------------------------------------------------------------------
/**
* Retrieves the Collection
of objects referenced by feature
.
* @return The Collection
of referenced objects.
*/
public java.util.Set getFeature(
){
throw new javax.jdo.JDOFatalUserException(
"This signature is not handled by data object",
new UnsupportedOperationException("This signature is not handled by data object. Use getFeature_Id()."),
this
);
}
public java.util.Set getFeature_Id(
){
java.util.SortedMap slices = openmdxjdoGetSlices();
return new org.w3c.jpa3.AbstractObject.SlicedSet(slices) {
@Override
protected java.lang.String getValue(Class$Slice slice) {
return slice.getFeature();
}
@Override
protected void setValue(Class$Slice slice, java.lang.String value) {
openmdxjdoMakeDirty();
slice.setFeature(value);
}
@Override
protected Class$Slice newSlice(int index) {
return new Class$Slice(Class.this, index);
}
@Override
protected void setSize(int size) {
openmdxjdoMakeDirty();
feature_size = size;
}
@Override
public int size() {
return feature_size;
}
};
}
// ----------------------------------------------------------------------------
// Instance/ReferenceGet0_nNoQuery
// ----------------------------------------------------------------------------
/**
* Retrieves the Collection
of objects referenced by subtype
.
* @return The Collection
of referenced objects.
*/
public java.util.Set getSubtype(
){
throw new javax.jdo.JDOFatalUserException(
"This signature is not handled by data object",
new UnsupportedOperationException("This signature is not handled by data object. Use getSubtype_Id()."),
this
);
}
public java.util.Set getSubtype_Id(
){
java.util.SortedMap slices = openmdxjdoGetSlices();
return new org.w3c.jpa3.AbstractObject.SlicedSet(slices) {
@Override
protected java.lang.String getValue(Class$Slice slice) {
return slice.getSubtype();
}
@Override
protected void setValue(Class$Slice slice, java.lang.String value) {
openmdxjdoMakeDirty();
slice.setSubtype(value);
}
@Override
protected Class$Slice newSlice(int index) {
return new Class$Slice(Class.this, index);
}
@Override
protected void setSize(int size) {
openmdxjdoMakeDirty();
subtype_size = size;
}
@Override
public int size() {
return subtype_size;
}
};
}
// ----------------------------------------------------------------------------
// Instance/ReferenceDeclaration
// ----------------------------------------------------------------------------
/**
* Reference allFeature
.
*/
@SuppressWarnings("unused")
private transient java.util.Set allFeature;
// ----------------------------------------------------------------------------
// Instance/ReferenceGet0_nWithQuery
// ----------------------------------------------------------------------------
/**
* Retrieves a set containing all the elements for the reference allFeature
.
* @return A set containing all the elements for this reference.
*/
@SuppressWarnings("unchecked")
public java.util.Set getAllFeature(
){
java.util.Set> allFeature = this.allFeature;
return (java.util.Set)allFeature;
}
// ----------------------------------------------------------------------------
// Instance/ReferenceDeclaration
// ----------------------------------------------------------------------------
/**
* Reference attribute
.
*/
@SuppressWarnings("unused")
private transient java.util.Set attribute;
// ----------------------------------------------------------------------------
// Instance/ReferenceGet0_nWithQuery
// ----------------------------------------------------------------------------
/**
* Retrieves a set containing all the elements for the reference attribute
.
* @return A set containing all the elements for this reference.
*/
@SuppressWarnings("unchecked")
public java.util.Set getAttribute(
){
java.util.Set> attribute = this.attribute;
return (java.util.Set)attribute;
}
// ----------------------------------------------------------------------------
// Instance/DeclareValue
// ----------------------------------------------------------------------------
/**
* Attribute visibility
.
*/
java.lang.String visibility;
// ----------------------------------------------------------------------------
// Instance/AttributeGet1_1
// ----------------------------------------------------------------------------
/**
* Retrieves the value for the attribute 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.
* @return The non-null value for attribute visibility
.
*/
public final java.lang.String getVisibility(
){
return this.visibility;
}
// ----------------------------------------------------------------------------
// Instance/AttributeSet1_1
// ----------------------------------------------------------------------------
/**
* Sets a new value for the attribute 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.
* @param visibility The non-null new value for attribute visibility
.
*/
public void setVisibility(
java.lang.String visibility
){
super.openmdxjdoMakeDirty();
this.visibility = visibility;
}
// ----------------------------------------------------------------------------
// Instance/ReferenceGet0_nNoQuery
// ----------------------------------------------------------------------------
/**
* Retrieves the Collection
of objects referenced by allSupertype
.
* @return The Collection
of referenced objects.
*/
public java.util.Set getAllSupertype(
){
throw new javax.jdo.JDOFatalUserException(
"This signature is not handled by data object",
new UnsupportedOperationException("This signature is not handled by data object. Use getAllSupertype_Id()."),
this
);
}
public java.util.Set getAllSupertype_Id(
){
java.util.SortedMap slices = openmdxjdoGetSlices();
return new org.w3c.jpa3.AbstractObject.SlicedSet(slices) {
@Override
protected java.lang.String getValue(Class$Slice slice) {
return slice.getAllSupertype();
}
@Override
protected void setValue(Class$Slice slice, java.lang.String value) {
openmdxjdoMakeDirty();
slice.setAllSupertype(value);
}
@Override
protected Class$Slice newSlice(int index) {
return new Class$Slice(Class.this, index);
}
@Override
protected void setSize(int size) {
openmdxjdoMakeDirty();
allSupertype_size = size;
}
@Override
public int size() {
return allSupertype_size;
}
};
}
// ----------------------------------------------------------------------------
// Instance/DeclareValue
// ----------------------------------------------------------------------------
/**
* Attribute isSingleton
.
*/
boolean isSingleton;
// ----------------------------------------------------------------------------
// Instance/AttributeGet1_1
// ----------------------------------------------------------------------------
/**
* Retrieves the value for the attribute isSingleton
.
*
* When isSingleton is true, at most one M1 level instance of this Class may exist within the M1-level extent of the Class.
* @return The non-null value for attribute isSingleton
.
*/
public final boolean isSingleton(
){
return this.isSingleton;
}
// ----------------------------------------------------------------------------
// Instance/AttributeSet1_1
// ----------------------------------------------------------------------------
/**
* Sets a new value for the attribute isSingleton
.
*
* When isSingleton is true, at most one M1 level instance of this Class may exist within the M1-level extent of the Class.
* @param isSingleton The non-null new value for attribute isSingleton
.
*/
public void setSingleton(
boolean isSingleton
){
super.openmdxjdoMakeDirty();
this.isSingleton = isSingleton;
}
// ----------------------------------------------------------------------------
// Instance/DeclareValue
// ----------------------------------------------------------------------------
/**
* Attribute isAbstract
.
*/
boolean isAbstract;
// ----------------------------------------------------------------------------
// Instance/AttributeGet1_1
// ----------------------------------------------------------------------------
/**
* Retrieves the value for the attribute 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.
* @return The non-null value for attribute isAbstract
.
*/
public final boolean isAbstract(
){
return this.isAbstract;
}
// ----------------------------------------------------------------------------
// Instance/AttributeSet1_1
// ----------------------------------------------------------------------------
/**
* Sets a new value for the attribute 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.
* @param isAbstract The non-null new value for attribute isAbstract
.
*/
public void setAbstract(
boolean isAbstract
){
super.openmdxjdoMakeDirty();
this.isAbstract = isAbstract;
}
// ----------------------------------------------------------------------------
// Instance/ReferenceDeclaration
// ----------------------------------------------------------------------------
/**
* Instance referenced by compositeReference
.
*/
java.lang.String compositeReference;
// ----------------------------------------------------------------------------
// Instance/ReferenceGetx_1NoQualifier
// ----------------------------------------------------------------------------
/**
* Retrieves the value for the reference compositeReference
.
* @return The – possibly null
– value for this reference.
*/
public org.omg.model1.cci2.Reference getCompositeReference(
) {
throw new javax.jdo.JDOFatalUserException(
"This signature is not handled by data object",
new UnsupportedOperationException("This signature is not handled by data object. Use getCompositeReference_Id()."),
this
);
}
public java.lang.String getCompositeReference_Id(
) {
return this.compositeReference;
}
// ----------------------------------------------------------------------------
// Instance/ReferenceDeclaration
// ----------------------------------------------------------------------------
/**
* Reference field
.
*/
@SuppressWarnings("unused")
private transient java.util.Set field;
// ----------------------------------------------------------------------------
// Instance/ReferenceGet0_nWithQuery
// ----------------------------------------------------------------------------
/**
* Retrieves a set containing all the elements for the reference field
.
* @return A set containing all the elements for this reference.
*/
@SuppressWarnings("unchecked")
public java.util.Set getField(
){
java.util.Set> field = this.field;
return (java.util.Set)field;
}
// ----------------------------------------------------------------------------
// Instance/ReferenceDeclaration
// ----------------------------------------------------------------------------
/**
* Reference allNamespaceContent
.
*/
@SuppressWarnings("unused")
private transient java.util.Set allNamespaceContent;
// ----------------------------------------------------------------------------
// Instance/ReferenceGet0_nWithQuery
// ----------------------------------------------------------------------------
/**
* Retrieves a set containing all the elements for the reference allNamespaceContent
.
* @return A set containing all the elements for this reference.
*/
public org.omg.model1.cci2.NamespaceContainsAllElement.AllNamespaceContent getAllNamespaceContent(
){
throw new javax.jdo.JDOFatalUserException(
"This signature is not handled by data object",
new UnsupportedOperationException("This signature is not handled by data object. Use query on member 'allNamespaceContent'."),
this
);
}
// ----------------------------------------------------------------------------
// Instance/ReferenceDeclaration
// ----------------------------------------------------------------------------
/**
* Reference operation
.
*/
@SuppressWarnings("unused")
private transient java.util.Set operation;
// ----------------------------------------------------------------------------
// Instance/ReferenceGet0_nWithQuery
// ----------------------------------------------------------------------------
/**
* Retrieves a set containing all the elements for the reference operation
.
* @return A set containing all the elements for this reference.
*/
@SuppressWarnings("unchecked")
public java.util.Set getOperation(
){
java.util.Set> operation = this.operation;
return (java.util.Set)operation;
}
// ----------------------------------------------------------------------------
// Instance/End
// ----------------------------------------------------------------------------
// ----------------------------------------------------------------------------
// Instance/DeclareSize
// ----------------------------------------------------------------------------
/**
* Number of elements of attribute allSubtype
*/
int allSubtype_size;
// ----------------------------------------------------------------------------
// Instance/DeclareSize
// ----------------------------------------------------------------------------
/**
* Number of elements of attribute supertype
*/
int supertype_size;
// ----------------------------------------------------------------------------
// Instance/DeclareSize
// ----------------------------------------------------------------------------
/**
* Number of elements of attribute content
*/
int content_size;
// ----------------------------------------------------------------------------
// Instance/DeclareSize
// ----------------------------------------------------------------------------
/**
* Number of elements of attribute feature
*/
int feature_size;
// ----------------------------------------------------------------------------
// Instance/DeclareSize
// ----------------------------------------------------------------------------
/**
* Number of elements of attribute subtype
*/
int subtype_size;
// ----------------------------------------------------------------------------
// Instance/DeclareSize
// ----------------------------------------------------------------------------
/**
* Number of elements of attribute allSupertype
*/
int allSupertype_size;
// ----------------------------------------------------------------------------
// Instance/Begin
// ----------------------------------------------------------------------------
//////////////////////////////////////////////////////////////////////////////
//
// Name: $Id: AbstractMapper.java,v 1.10 2011/07/08 13:20:51 wfro Exp $
// Generated by: openMDX Java Mapper
// Date: Mon Mar 09 17:04:35 CET 2020
//
// GENERATED - DO NOT CHANGE MANUALLY
//
//////////////////////////////////////////////////////////////////////////////
}