org.omg.model1.jpa3.Package 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 Package
*
* A package is formed as a composition of ModelElements. A package defines a modeling unit, models are constructed and presented as packages. A model is a package. Packages are also uses as organizational constructs in modeling. Nesting,
* importation, and generalization are used to manage the complexity of models.
*
*/
@SuppressWarnings("serial")
public class Package extends org.omg.model1.jpa3.Element
implements org.omg.model1.cci2.Package
{
/**
* Constructor
*/
public Package(
){
// 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(Package$Slice slice) {
return slice.getAllSubtype();
}
@Override
protected void setValue(Package$Slice slice, java.lang.String value) {
openmdxjdoMakeDirty();
slice.setAllSubtype(value);
}
@Override
protected Package$Slice newSlice(int index) {
return new Package$Slice(Package.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(Package$Slice slice) {
return slice.getSupertype();
}
@Override
protected void setValue(Package$Slice slice, java.lang.String value) {
openmdxjdoMakeDirty();
slice.setSupertype(value);
}
@Override
protected Package$Slice newSlice(int index) {
return new Package$Slice(Package.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/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(Package$Slice slice) {
return slice.getAllSupertype();
}
@Override
protected void setValue(Package$Slice slice, java.lang.String value) {
openmdxjdoMakeDirty();
slice.setAllSupertype(value);
}
@Override
protected Package$Slice newSlice(int index) {
return new Package$Slice(Package.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/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(Package$Slice slice) {
return slice.getContent();
}
@Override
protected void setValue(Package$Slice slice, java.lang.String value) {
openmdxjdoMakeDirty();
slice.setContent(value);
}
@Override
protected Package$Slice newSlice(int index) {
return new Package$Slice(Package.this, index);
}
@Override
protected void setSize(int size) {
openmdxjdoMakeDirty();
content_size = size;
}
@Override
public int size() {
return content_size;
}
};
}
// ----------------------------------------------------------------------------
// 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(Package$Slice slice) {
return slice.getFeature();
}
@Override
protected void setValue(Package$Slice slice, java.lang.String value) {
openmdxjdoMakeDirty();
slice.setFeature(value);
}
@Override
protected Package$Slice newSlice(int index) {
return new Package$Slice(Package.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(Package$Slice slice) {
return slice.getSubtype();
}
@Override
protected void setValue(Package$Slice slice, java.lang.String value) {
openmdxjdoMakeDirty();
slice.setSubtype(value);
}
@Override
protected Package$Slice newSlice(int index) {
return new Package$Slice(Package.this, index);
}
@Override
protected void setSize(int size) {
openmdxjdoMakeDirty();
subtype_size = size;
}
@Override
public int size() {
return subtype_size;
}
};
}
// ----------------------------------------------------------------------------
// Instance/Operation
// ----------------------------------------------------------------------------
/**
* Externalize the Package and all of its Elements (transitive closure on the containment hierarchy) into a Java Archive byte stream.
*/
public org.omg.model1.cci2.PackageExternalizeResult externalizePackage(
org.omg.model1.cci2.PackageExternalizeParams in
){
throw new javax.jdo.JDOFatalUserException(
"Behavioural features not handled by data object",
new UnsupportedOperationException("Behavioural feature"),
this
);
}
// ----------------------------------------------------------------------------
// 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/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 allSupertype
*/
int allSupertype_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/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
//
//////////////////////////////////////////////////////////////////////////////
}