org.omg.model1.jpa3.Attribute 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 Attribute
*
* An Attribute defines a StructuralFeature which contains values for Classifiers or their instances.
*/
@SuppressWarnings("serial")
public class Attribute extends org.omg.model1.jpa3.Element
implements org.omg.model1.cci2.Attribute
{
/**
* Constructor
*/
public Attribute(
){
// Implements Serializable
}
// ----------------------------------------------------------------------------
// Instance/DeclareValue
// ----------------------------------------------------------------------------
/**
* Attribute multiplicity
.
*/
java.lang.String multiplicity;
// ----------------------------------------------------------------------------
// Instance/AttributeGet1_1
// ----------------------------------------------------------------------------
/**
* 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.
* @return The non-null value for attribute multiplicity
.
*/
public final java.lang.String getMultiplicity(
){
return this.multiplicity;
}
// ----------------------------------------------------------------------------
// Instance/AttributeSet1_1
// ----------------------------------------------------------------------------
/**
* 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.
* @param multiplicity The non-null new value for attribute multiplicity
.
*/
public void setMultiplicity(
java.lang.String multiplicity
){
super.openmdxjdoMakeDirty();
this.multiplicity = multiplicity;
}
// ----------------------------------------------------------------------------
// Instance/DeclareValue
// ----------------------------------------------------------------------------
/**
* Attribute isDerived
.
*/
boolean isDerived;
// ----------------------------------------------------------------------------
// Instance/AttributeGet1_1
// ----------------------------------------------------------------------------
/**
* Retrieves the value for the attribute isDerived
.
*
* A derived attribute is one whose values are not part of the state of the object instance, but whose values can be determined or computed. In a sense, all attributes are derived, since it is up to the class's implementation to hold or calculate the values. However, by convention, isDerived indicates that the derived state is based on other information in the model. Modification of the derived Attribute causes the information upon which the Attribute is derived to be updated.
* @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 attribute is one whose values are not part of the state of the object instance, but whose values can be determined or computed. In a sense, all attributes are derived, since it is up to the class's implementation to hold or calculate the values. However, by convention, isDerived indicates that the derived state is based on other information in the model. Modification of the derived Attribute causes the information upon which the Attribute is derived to be updated.
* @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 Feature?s container to make use of 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 Feature?s container to make use of 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/DeclareValue
// ----------------------------------------------------------------------------
/**
* Attribute isChangeable
.
*/
boolean isChangeable;
// ----------------------------------------------------------------------------
// Instance/AttributeGet1_1
// ----------------------------------------------------------------------------
/**
* 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).
*
* @return The non-null value for attribute isChangeable
.
*/
public final boolean isChangeable(
){
return this.isChangeable;
}
// ----------------------------------------------------------------------------
// Instance/AttributeSet1_1
// ----------------------------------------------------------------------------
/**
* 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).
*
* @param isChangeable The non-null new value for attribute isChangeable
.
*/
public void setChangeable(
boolean isChangeable
){
super.openmdxjdoMakeDirty();
this.isChangeable = isChangeable;
}
// ----------------------------------------------------------------------------
// Instance/ReferenceDeclaration
// ----------------------------------------------------------------------------
/**
* Instance referenced by type
.
*/
java.lang.String type;
// ----------------------------------------------------------------------------
// Instance/ReferenceGetx_1NoQualifier
// ----------------------------------------------------------------------------
/**
* Retrieves the value for the reference type
.
* @return The non-null
value for this reference.
*/
public org.omg.model1.cci2.Classifier getType(
) {
throw new javax.jdo.JDOFatalUserException(
"This signature is not handled by data object",
new UnsupportedOperationException("This signature is not handled by data object. Use getType_Id()."),
this
);
}
public java.lang.String getType_Id(
) {
return this.type;
}
// ----------------------------------------------------------------------------
// Instance/ReferenceSetNoQualifier
// ----------------------------------------------------------------------------
/**
* Sets a new value for the reference type
.
* @param type The new non-null
value for this reference.
*/
public void setType(
org.omg.model1.cci2.Classifier type
){
throw new javax.jdo.JDOFatalUserException(
"Typed set not handled by data object",
new UnsupportedOperationException("Use setType_Id() instead."),
this
);
}
public void setType_Id(
java.lang.String type
) {
super.openmdxjdoMakeDirty();
this.type = type;
}
// ----------------------------------------------------------------------------
// Instance/DeclareValue
// ----------------------------------------------------------------------------
/**
* Attribute scope
.
*/
java.lang.String scope;
// ----------------------------------------------------------------------------
// Instance/AttributeGet1_1
// ----------------------------------------------------------------------------
/**
* Retrieves the value for the attribute scope
.
*
* The scope defines whether a Feature supports the definition of instances of the Classifier owning the Feature or of the Classifier as a whole. When scope is instanceLevel, the Feature is accessed through instances of the Feature's owning Classifier; when scope is classifier, the Feature is accessed through the Classifier itself (or through its instances). For StructuralFeatures, a scope of instanceLevel indicates that a value represented by the StructuralFeature is associated with each instance of the Classifier; a scope of classifierLevel indicates that the
* StructuralFeature value is shared by the Classifier and all its instances.
*
* @return The non-null value for attribute scope
.
*/
public final java.lang.String getScope(
){
return this.scope;
}
// ----------------------------------------------------------------------------
// Instance/AttributeSet1_1
// ----------------------------------------------------------------------------
/**
* Sets a new value for the attribute scope
.
*
* The scope defines whether a Feature supports the definition of instances of the Classifier owning the Feature or of the Classifier as a whole. When scope is instanceLevel, the Feature is accessed through instances of the Feature's owning Classifier; when scope is classifier, the Feature is accessed through the Classifier itself (or through its instances). For StructuralFeatures, a scope of instanceLevel indicates that a value represented by the StructuralFeature is associated with each instance of the Classifier; a scope of classifierLevel indicates that the
* StructuralFeature value is shared by the Classifier and all its instances.
*
* @param scope The non-null new value for attribute scope
.
*/
public void setScope(
java.lang.String scope
){
super.openmdxjdoMakeDirty();
this.scope = scope;
}
// ----------------------------------------------------------------------------
// Instance/DeclareValue
// ----------------------------------------------------------------------------
/**
* Attribute maxLength
.
*/
int maxLength;
// ----------------------------------------------------------------------------
// Instance/AttributeGet1_1
// ----------------------------------------------------------------------------
/**
* Retrieves the value for the attribute maxLength
.
* @return The non-null value for attribute maxLength
.
*/
public final int getMaxLength(
){
return this.maxLength;
}
// ----------------------------------------------------------------------------
// Instance/AttributeSet1_1
// ----------------------------------------------------------------------------
/**
* Sets a new value for the attribute maxLength
.
* @param maxLength The non-null new value for attribute maxLength
.
*/
public void setMaxLength(
int maxLength
){
super.openmdxjdoMakeDirty();
this.maxLength = maxLength;
}
// ----------------------------------------------------------------------------
// Instance/End
// ----------------------------------------------------------------------------
// ----------------------------------------------------------------------------
// 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
//
//////////////////////////////////////////////////////////////////////////////
}