All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.omg.model1.jpa3.Element Maven / Gradle / Ivy

There is a newer version: 2.18.10
Show newest version
// ----------------------------------------------------------------------------
// 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;

/**
 * Abstract class Element
 *

* Element classifies the elementary, atomic constructs of models. Element is the root Class within the MOF Model. */ @SuppressWarnings("serial") public class Element extends org.w3c.jpa3.AbstractObject implements org.omg.model1.cci2.Element { /** * Constructor */ public Element( ){ // Implements Serializable } /** * The the object's JDO identity key */ private java.lang.String openmdxjdoIdentity; /** * Retrieve the object's JDO identity key * @return the value of the object's JDO identity key */ @Override protected java.lang.String getOpenmdxjdoIdentity( ){ return this.openmdxjdoIdentity; } /** * Set the object's JDO identity key */ @Override protected void setOpenmdxjdoIdentity( String value ){ this.openmdxjdoIdentity = value; } /** * Slice holder */ private java.util.TreeMap openmdxjdoSlices = new java.util.TreeMap(); @SuppressWarnings("unchecked") protected final java.util.SortedMap openmdxjdoGetSlices( ){ return (java.util.SortedMap)this.openmdxjdoSlices; } // ---------------------------------------------------------------------------- // Instance/DeclareValue // ---------------------------------------------------------------------------- /** * Attribute annotation. */ java.lang.String annotation; // ---------------------------------------------------------------------------- // Instance/AttributeGet0_1 // ---------------------------------------------------------------------------- /** * Retrieves the possibly null value for the optional attribute annotation. *

* Provides an informal description of the Element. * @return The possibly null value for attribute annotation. */ public final java.lang.String getAnnotation( ){ return this.annotation; } // ---------------------------------------------------------------------------- // Instance/AttributeSet0_1 // ---------------------------------------------------------------------------- /** * Sets a new value for the attribute annotation. *

* Provides an informal description of the Element. * @param annotation The possibly null new value for attribute annotation. */ public void setAnnotation( java.lang.String annotation ){ super.openmdxjdoMakeDirty(); this.annotation = annotation; } // ---------------------------------------------------------------------------- // Instance/ReferenceDeclaration // ---------------------------------------------------------------------------- /** * Instance referenced by container. */ java.lang.String container; // ---------------------------------------------------------------------------- // Instance/ReferenceGetx_1NoQualifier // ---------------------------------------------------------------------------- /** * Retrieves the value for the reference container. * @return The – possibly null – value for this reference. */ public org.omg.model1.cci2.Namespace getContainer( ) { throw new javax.jdo.JDOFatalUserException( "This signature is not handled by data object", new UnsupportedOperationException("This signature is not handled by data object. Use getContainer_Id()."), this ); } public java.lang.String getContainer_Id( ) { return this.container; } // ---------------------------------------------------------------------------- // Instance/ReferenceSetNoQualifier // ---------------------------------------------------------------------------- /** * Sets a new value for the reference container. * @param container The new – possibly null – value for this reference. */ public void setContainer( org.omg.model1.cci2.Namespace container ){ throw new javax.jdo.JDOFatalUserException( "Typed set not handled by data object", new UnsupportedOperationException("Use setContainer_Id() instead."), this ); } public void setContainer_Id( java.lang.String container ) { super.openmdxjdoMakeDirty(); this.container = container; } // ---------------------------------------------------------------------------- // Instance/DeclareValue // ---------------------------------------------------------------------------- /** * Attribute createdAt. */ public java.sql.Timestamp createdAt; // ---------------------------------------------------------------------------- // Instance/AttributeGet1_1 // ---------------------------------------------------------------------------- /** * Retrieves the value for the attribute createdAt. * @return The non-null value for attribute createdAt. */ public final java.util.Date getCreatedAt( ){ return org.w3c.jpa3.DateTime.toCCI(this.createdAt); } // ---------------------------------------------------------------------------- // Instance/AttributeGetList // ---------------------------------------------------------------------------- /** * Retrieves a list containing all the elements for the attribute createdBy. * @return A list containing all elements for this attribute. */ public java.util.List getCreatedBy( ){ java.util.SortedMap slices = openmdxjdoGetSlices(); return new org.w3c.jpa3.AbstractObject.SlicedList(slices) { @Override protected java.lang.String getValue(Element$Slice slice) { return slice.getCreatedBy(); } @Override protected void setValue(Element$Slice slice, java.lang.String value) { openmdxjdoMakeDirty(); slice.setCreatedBy(value); } @Override protected Element$Slice newSlice(int index) { return new Element$Slice(Element.this, index); } @Override protected void setSize(int size) { openmdxjdoMakeDirty(); createdBy_size = size; } @Override public int size() { return createdBy_size; } }; } // ---------------------------------------------------------------------------- // Instance/DeclareValue // ---------------------------------------------------------------------------- /** * Attribute modifiedAt. */ public java.sql.Timestamp modifiedAt; // ---------------------------------------------------------------------------- // Instance/AttributeGet1_1 // ---------------------------------------------------------------------------- /** * Retrieves the value for the attribute modifiedAt. * @return The non-null value for attribute modifiedAt. */ public final java.util.Date getModifiedAt( ){ return org.w3c.jpa3.DateTime.toCCI(this.modifiedAt); } // ---------------------------------------------------------------------------- // Instance/DeclareValue // ---------------------------------------------------------------------------- /** * Attribute identity. */ public java.lang.String identity; // ---------------------------------------------------------------------------- // Instance/AttributeGet1_1 // ---------------------------------------------------------------------------- /** * Retrieves the value for the attribute identity. * @return The non-null value for attribute identity. */ public java.lang.String getIdentity( ){ return this.identity; } // ---------------------------------------------------------------------------- // Instance/DeclareValue // ---------------------------------------------------------------------------- /** * Attribute qualifiedName. */ public java.lang.String qualifiedName; // ---------------------------------------------------------------------------- // Instance/AttributeGet1_1 // ---------------------------------------------------------------------------- /** * Retrieves the value for the attribute qualifiedName. *

* Provides a unique name for the Element within the context of its outermost containing Package. The qualifiedName is a list of NameType values consisting of * the names of the Element, its container, its container?s container and so on until a non-contained element is reached. The first member of the list is the name * of the non-contained element. * The 'qualifiedName' of an Element is of the form :. is the full-qualified package name, i.e. org:omg:model1. Samples for 'qualifiedName': *

    *
  • org:omg:model1:Attribute
  • *
  • org:openmdx::audit2:UnitOfWork
  • *
* * @return The non-null value for attribute qualifiedName. */ public final java.lang.String getQualifiedName( ){ return this.qualifiedName; } // ---------------------------------------------------------------------------- // Instance/ReferenceDeclaration // ---------------------------------------------------------------------------- /** * Instance referenced by segment. */ java.lang.String segment; // ---------------------------------------------------------------------------- // Instance/ReferenceGetx_1NoQualifier // ---------------------------------------------------------------------------- /** * Retrieves the value for the reference segment. * @return The non-null value for this reference. */ public org.omg.model1.cci2.Segment getSegment( ) { throw new javax.jdo.JDOFatalUserException( "This signature is not handled by data object", new UnsupportedOperationException("This signature is not handled by data object. Use getSegment_Id()."), this ); } public java.lang.String getSegment_Id( ) { return this.segment; } // ---------------------------------------------------------------------------- // Instance/DeclareValue // ---------------------------------------------------------------------------- /** * Attribute name. */ public java.lang.String name; // ---------------------------------------------------------------------------- // Instance/AttributeGet1_1 // ---------------------------------------------------------------------------- /** * Retrieves the value for the attribute name. *

* Provides a meta-modeler supplied name that uniquely identifies the Element in the context of the ModelElement?s containing Namespace. When choosing an Element?s name, the meta-modeler should consider the rules for translating names into identifiers in the relevant mappings. * @return The non-null value for attribute name. */ public final java.lang.String getName( ){ return this.name; } // ---------------------------------------------------------------------------- // Instance/AttributeGetList // ---------------------------------------------------------------------------- /** * Retrieves a list containing all the elements for the attribute modifiedBy. * @return A list containing all elements for this attribute. */ public java.util.List getModifiedBy( ){ java.util.SortedMap slices = openmdxjdoGetSlices(); return new org.w3c.jpa3.AbstractObject.SlicedList(slices) { @Override protected java.lang.String getValue(Element$Slice slice) { return slice.getModifiedBy(); } @Override protected void setValue(Element$Slice slice, java.lang.String value) { openmdxjdoMakeDirty(); slice.setModifiedBy(value); } @Override protected Element$Slice newSlice(int index) { return new Element$Slice(Element.this, index); } @Override protected void setSize(int size) { openmdxjdoMakeDirty(); modifiedBy_size = size; } @Override public int size() { return modifiedBy_size; } }; } // ---------------------------------------------------------------------------- // Instance/AttributeGetSet // ---------------------------------------------------------------------------- /** * Retrieves a set containing all the elements for the attribute stereotype. * @return A set containing all elements for this attribute. */ public java.util.Set getStereotype( ){ java.util.SortedMap slices = openmdxjdoGetSlices(); return new org.w3c.jpa3.AbstractObject.SlicedSet(slices) { @Override protected java.lang.String getValue(Element$Slice slice) { return slice.getStereotype(); } @Override protected void setValue(Element$Slice slice, java.lang.String value) { openmdxjdoMakeDirty(); slice.setStereotype(value); } @Override protected Element$Slice newSlice(int index) { return new Element$Slice(Element.this, index); } @Override protected void setSize(int size) { openmdxjdoMakeDirty(); stereotype_size = size; } @Override public int size() { return stereotype_size; } }; } // ---------------------------------------------------------------------------- // Instance/AttributeSetSet // ---------------------------------------------------------------------------- /** * Clears stereotype and adds the given value(s). *

* This method is equivalent to

   *   set.clear();
   *   for(java.lang.String e : stereotype){
   *     set.add(e);
   *   }
   * 
* @param stereotype value(s) to be added to stereotype */ public void setStereotype( java.lang.String... stereotype ){ openmdxjdoSetCollection( getStereotype(), stereotype ); } // ---------------------------------------------------------------------------- // Instance/End // ---------------------------------------------------------------------------- // ---------------------------------------------------------------------------- // Instance/DeclareSize // ---------------------------------------------------------------------------- /** * Number of elements of attribute createdBy */ int createdBy_size; // ---------------------------------------------------------------------------- // Instance/DeclareSize // ---------------------------------------------------------------------------- /** * Number of elements of attribute modifiedBy */ int modifiedBy_size; // ---------------------------------------------------------------------------- // Instance/DeclareSize // ---------------------------------------------------------------------------- /** * Number of elements of attribute stereotype */ int stereotype_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 // ////////////////////////////////////////////////////////////////////////////// // ---------------------------------------------------------------------------- // Instance/ReferenceSetNoQualifier // ---------------------------------------------------------------------------- /** * Sets a new value for the reference segment. * @param segment The new non-null value for this reference. */ public void setSegment( org.omg.model1.jpa3.Segment segment ){ throw new javax.jdo.JDOFatalUserException( "Typed set not handled by data object", new UnsupportedOperationException("Use setSegment_Id() instead."), this ); } public void setSegment_Id( java.lang.String segment ) { super.openmdxjdoMakeDirty(); this.segment = segment; } // ---------------------------------------------------------------------------- // Instance/Containment // ---------------------------------------------------------------------------- }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy