org.omg.model1.jdo2
Class Constant
java.lang.Object
org.oasisopen.jdo2.Identifiable
org.w3c.jdo2.AbstractObject
org.omg.model1.jdo2.Element
org.omg.model1.jdo2.Constant
- All Implemented Interfaces:
- Serializable, Constant, Element, TypedElement, BasicObject, ContextCapable, ExtentCapable, ViewCapable
public class Constant
- extends Element
- implements Constant
Class Constant
- See Also:
- Serialized Form
|
Nested Class Summary |
static class |
Constant.Slice
Slice object hold the Constant's multivalued
attributes |
| Nested classes/interfaces inherited from class org.w3c.jdo2.AbstractObject |
org.w3c.jdo2.AbstractObject.EmbeddedList<E>, org.w3c.jdo2.AbstractObject.EmbeddedSet<E> |
|
Field Summary |
static List<String> |
CLASS
Define the model class org::omg::model1::Constant |
| Methods inherited from class org.omg.model1.jdo2.Element |
addToSegment, addToSegment, getAnnotation, getContainer, getCreatedAt, getCreatedBy, getIdentity, getModifiedAt, getModifiedBy, getName, getQualifiedName, getSegment, getStereotype, getView, getView, openmdxjdoGetObjectId, openmdxjdoGetObjectsByParent, openmdxjdoGetSlices, setAnnotation, setContainer, setStereotype |
| Methods inherited from class org.w3c.jdo2.AbstractObject |
openmdxjdoClassName, openmdxjdoGetIdentityBuilder, openmdxjdoGetList, openmdxjdoGetObjectsByParent, openmdxjdoGetSet, openmdxjdoGetSparseArray, openmdxjdoNewSlice, openmdxjdoSetArray, openmdxjdoSetCollection, openmdxjdoToArray, openmdxjdoToArray, openmdxjdoValidateElement |
| Methods inherited from class org.oasisopen.jdo2.Identifiable |
openmdxjdoGetObject, openmdxjdoGetObjectById, openmdxjdoGetObjectId, openmdxjdoGetObjectSet, openmdxjdoNewObjectId, openmdxjdoNewObjectId |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CLASS
public static final List<String> CLASS
- Define the model class
org::omg::model1::Constant
Constant
public Constant()
getConstValue
public String getConstValue()
- Retrieves the value for the attribute
constValue.
- Specified by:
getConstValue in interface Constant
- Returns:
- The non-null value for attribute
constValue.
setConstValue
public void setConstValue(String constValue)
- Sets a new value for the attribute
constValue.
- Specified by:
setConstValue in interface Constant
- Parameters:
constValue - The non-null new value for attribute constValue.
getType
public Classifier getType()
- Retrieves the value for the reference
type.
- Specified by:
getType in interface TypedElement
- Returns:
- The non-
null value for this reference.
setType
public void setType(Classifier type)
- Sets a new value for the reference
type.
- Specified by:
setType in interface TypedElement
- Parameters:
type - The non-null new value for this reference.
openmdxjdoGetSize
protected int openmdxjdoGetSize(int field)
- Overrides:
openmdxjdoGetSize in class Element
openmdxjdoSetSize
protected void openmdxjdoSetSize(int field,
int size)
- Overrides:
openmdxjdoSetSize in class Element
newSlice
protected org.w3c.jdo2.AbstractObject.Slice newSlice(int index)
- Overrides:
newSlice in class Element
openmdxjdoGetClass
protected List<String> openmdxjdoGetClass()
- Retrieve the model class
- Overrides:
openmdxjdoGetClass in class Element
- Returns:
- the model class
- See Also:
Constant.CLASS
newIdentity
public static Element.Identity newIdentity(Segment.Identity segment,
boolean qualifiedNameIsPersistent,
String qualifiedName)
openmdxjdoToIdentity
public static Element.Identity openmdxjdoToIdentity(ObjectId objectId)
This software is published under the BSD license. Copyright © 2003-2008, OMEX AG, Switzerland, All rights reserved. Use is subject to license terms.