org.omg.model1.jpa3.Association 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 Association
*
* An association defines a classification over a set of links, through a relationship between Classifiers. Each link which is an instance of the association denotes a connection between object instances of the Classifiers of the Association. The MOF restricts associations to binary, restricting each link to two participating objects. This restriction also means that the association is defined between two Classifiers (which may be the same Classifier). The name of the Association is considered directional if it
* provides a clearer or more accurate representation of the association when stated with one participating class first rather than the other. For instance, Operation CanRaise Exception is correct; Exception CanRaise Operation is incorrect.
*
* The definition of an Association requires two AssociationEnds. If the name of the association is directional, the name is understood to read in the order: first contained element; association name; second contained element. These contained elements are AssociationEnd instances, and the reading of the subject; verb; object uses either the AssociationEnd name or the AssociationEnd's class name. The onus is on the MOF user to determine whether the name is directional, and to place the AssociationEnds in proper order within the Association's contents to support the name direction. The representation of a Classifier's knowledge of its participation in an association requires the use of a Reference.
*
*/
@SuppressWarnings("serial")
public class Association extends org.omg.model1.jpa3.Element
implements org.omg.model1.cci2.Association
{
/**
* Constructor
*/
public Association(
){
// Implements Serializable
}
// ----------------------------------------------------------------------------
// 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(Association$Slice slice) {
return slice.getAllSubtype();
}
@Override
protected void setValue(Association$Slice slice, java.lang.String value) {
openmdxjdoMakeDirty();
slice.setAllSubtype(value);
}
@Override
protected Association$Slice newSlice(int index) {
return new Association$Slice(Association.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(Association$Slice slice) {
return slice.getSupertype();
}
@Override
protected void setValue(Association$Slice slice, java.lang.String value) {
openmdxjdoMakeDirty();
slice.setSupertype(value);
}
@Override
protected Association$Slice newSlice(int index) {
return new Association$Slice(Association.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(Association$Slice slice) {
return slice.getContent();
}
@Override
protected void setValue(Association$Slice slice, java.lang.String value) {
openmdxjdoMakeDirty();
slice.setContent(value);
}
@Override
protected Association$Slice newSlice(int index) {
return new Association$Slice(Association.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(Association$Slice slice) {
return slice.getFeature();
}
@Override
protected void setValue(Association$Slice slice, java.lang.String value) {
openmdxjdoMakeDirty();
slice.setFeature(value);
}
@Override
protected Association$Slice newSlice(int index) {
return new Association$Slice(Association.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(Association$Slice slice) {
return slice.getSubtype();
}
@Override
protected void setValue(Association$Slice slice, java.lang.String value) {
openmdxjdoMakeDirty();
slice.setSubtype(value);
}
@Override
protected Association$Slice newSlice(int index) {
return new Association$Slice(Association.this, index);
}
@Override
protected void setSize(int size) {
openmdxjdoMakeDirty();
subtype_size = size;
}
@Override
public int size() {
return subtype_size;
}
};
}
// ----------------------------------------------------------------------------
// 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 isDerived
.
*/
boolean isDerived;
// ----------------------------------------------------------------------------
// Instance/AttributeGet1_1
// ----------------------------------------------------------------------------
/**
* Retrieves the value for the attribute isDerived
.
*
* A derived association has no Links as instances. Instead, its Links are derived from other information in a meta-model. The addition, removal, or modification of a derived Association's Link causes the information upon which the Association is
* derived to be updated. The results of such an update are expected to appear, upon subsequent access of the derived Association's Links, to have the same effect as an equivalent operation on an Association which is not derived.
*
* @return The non-null value for attribute isDerived
.
*/
public final boolean isDerived(
){
return this.isDerived;
}
// ----------------------------------------------------------------------------
// Instance/AttributeSet1_1
// ----------------------------------------------------------------------------
/**
* Sets a new value for the attribute isDerived
.
*
* A derived association has no Links as instances. Instead, its Links are derived from other information in a meta-model. The addition, removal, or modification of a derived Association's Link causes the information upon which the Association is
* derived to be updated. The results of such an update are expected to appear, upon subsequent access of the derived Association's Links, to have the same effect as an equivalent operation on an Association which is not derived.
*
* @param isDerived The non-null new value for attribute isDerived
.
*/
public void setDerived(
boolean isDerived
){
super.openmdxjdoMakeDirty();
this.isDerived = isDerived;
}
// ----------------------------------------------------------------------------
// 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(Association$Slice slice) {
return slice.getAllSupertype();
}
@Override
protected void setValue(Association$Slice slice, java.lang.String value) {
openmdxjdoMakeDirty();
slice.setAllSupertype(value);
}
@Override
protected Association$Slice newSlice(int index) {
return new Association$Slice(Association.this, index);
}
@Override
protected void setSize(int size) {
openmdxjdoMakeDirty();
allSupertype_size = size;
}
@Override
public int size() {
return allSupertype_size;
}
};
}
// ----------------------------------------------------------------------------
// 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
//
//////////////////////////////////////////////////////////////////////////////
}