org.omg.model1.jdo2
Class Reference

java.lang.Object
  extended by org.oasisopen.jdo2.Identifiable
      extended by org.w3c.jdo2.AbstractObject
          extended by org.omg.model1.jdo2.Element
              extended by org.omg.model1.jdo2.Reference
All Implemented Interfaces:
Serializable, Element, Feature, Reference, StructuralFeature, TypedElement, BasicObject, ContextCapable, ExtentCapable, ViewCapable

public class Reference
extends Element
implements Reference

Class Reference

See Also:
Serialized Form

Nested Class Summary
static class Reference.Slice
          Slice object hold the Reference's multivalued attributes
 
Nested classes/interfaces inherited from class org.omg.model1.jdo2.Element
Element.Identity
 
Nested classes/interfaces inherited from class org.w3c.jdo2.AbstractObject
org.w3c.jdo2.AbstractObject.EmbeddedList<E>, org.w3c.jdo2.AbstractObject.EmbeddedSet<E>
 
Nested classes/interfaces inherited from interface org.omg.model1.cci2.Element
Element.Identity
 
Field Summary
static List<String> CLASS
          Define the model class org::omg::model1::Reference
 
Fields inherited from class org.omg.model1.jdo2.Element
BASE_CLASS
 
Constructor Summary
Reference()
           
 
Method Summary
 AssociationEnd getExposedEnd()
          Retrieves the value for the reference exposedEnd.
 String getMultiplicity()
          Retrieves the value for the attribute multiplicity.
 AssociationEnd getReferencedEnd()
          Retrieves the value for the reference referencedEnd.
 String getScope()
          Retrieves the value for the attribute scope.
 Classifier getType()
          Retrieves the value for the reference type.
 String getVisibility()
          Retrieves the value for the attribute visibility.
 boolean isChangeable()
          Retrieves the value for the attribute isChangeable.
 boolean isReferencedEndIsNavigable()
          Retrieves the value for the attribute referencedEndIsNavigable.
static Element.Identity newIdentity(Segment.Identity segment, boolean qualifiedNameIsPersistent, String qualifiedName)
           
protected  org.w3c.jdo2.AbstractObject.Slice newSlice(int index)
           
protected  List<String> openmdxjdoGetClass()
          Retrieve the model class
protected  int openmdxjdoGetSize(int field)
           
protected  void openmdxjdoSetSize(int field, int size)
           
static Element.Identity openmdxjdoToIdentity(ObjectId objectId)
           
 void setChangeable(boolean isChangeable)
          Sets a new value for the attribute isChangeable.
 void setExposedEnd(AssociationEnd exposedEnd)
          Sets a new value for the reference exposedEnd.
 void setMultiplicity(String multiplicity)
          Sets a new value for the attribute multiplicity.
 void setReferencedEnd(AssociationEnd referencedEnd)
          Sets a new value for the reference referencedEnd.
 void setScope(String scope)
          Sets a new value for the attribute scope.
 void setType(Classifier type)
          Sets a new value for the reference type.
 void setVisibility(String visibility)
          Sets a new value for the attribute visibility.
 
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
 
Methods inherited from interface org.omg.model1.cci2.Element
getAnnotation, getContainer, getName, getQualifiedName, getSegment, getStereotype, setAnnotation, setContainer, setStereotype
 
Methods inherited from interface org.openmdx.base.cci2.BasicObject
getCreatedAt, getCreatedBy, getModifiedAt, getModifiedBy
 
Methods inherited from interface org.openmdx.base.cci2.ExtentCapable
getIdentity
 
Methods inherited from interface org.openmdx.compatibility.view1.cci2.ViewCapable
getView, getView
 

Field Detail

CLASS

public static final List<String> CLASS
Define the model class org::omg::model1::Reference

Constructor Detail

Reference

public Reference()
Method Detail

getScope

public String getScope()
Retrieves the value for the attribute scope.

Specified by:
getScope in interface Feature
Returns:
The non-null value for attribute scope.

setScope

public void setScope(String scope)
Sets a new value for the attribute scope.

Specified by:
setScope in interface Feature
Parameters:
scope - The non-null new value for attribute scope.

isChangeable

public boolean isChangeable()
Retrieves the value for the attribute isChangeable.

Specified by:
isChangeable in interface StructuralFeature
Returns:
The non-null value for attribute isChangeable.

setChangeable

public void setChangeable(boolean isChangeable)
Sets a new value for the attribute isChangeable.

Specified by:
setChangeable in interface StructuralFeature
Parameters:
isChangeable - The non-null new value for attribute isChangeable.

getVisibility

public String getVisibility()
Retrieves the value for the attribute visibility.

Specified by:
getVisibility in interface Feature
Returns:
The non-null value for attribute visibility.

setVisibility

public void setVisibility(String visibility)
Sets a new value for the attribute visibility.

Specified by:
setVisibility in interface Feature
Parameters:
visibility - The non-null new value for attribute visibility.

isReferencedEndIsNavigable

public boolean isReferencedEndIsNavigable()
Retrieves the value for the attribute referencedEndIsNavigable.

Specified by:
isReferencedEndIsNavigable in interface Reference
Returns:
The non-null value for attribute referencedEndIsNavigable.

getMultiplicity

public String getMultiplicity()
Retrieves the value for the attribute multiplicity.

Specified by:
getMultiplicity in interface StructuralFeature
Returns:
The non-null value for attribute multiplicity.

setMultiplicity

public void setMultiplicity(String multiplicity)
Sets a new value for the attribute multiplicity.

Specified by:
setMultiplicity in interface StructuralFeature
Parameters:
multiplicity - The non-null new value for attribute multiplicity.

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.

getExposedEnd

public AssociationEnd getExposedEnd()
Retrieves the value for the reference exposedEnd.

Specified by:
getExposedEnd in interface Reference
Returns:
The non-null value for this reference.

setExposedEnd

public void setExposedEnd(AssociationEnd exposedEnd)
Sets a new value for the reference exposedEnd.

Specified by:
setExposedEnd in interface Reference
Parameters:
exposedEnd - The non-null new value for this reference.

getReferencedEnd

public AssociationEnd getReferencedEnd()
Retrieves the value for the reference referencedEnd.

Specified by:
getReferencedEnd in interface Reference
Returns:
The non-null value for this reference.

setReferencedEnd

public void setReferencedEnd(AssociationEnd referencedEnd)
Sets a new value for the reference referencedEnd.

Specified by:
setReferencedEnd in interface Reference
Parameters:
referencedEnd - 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:
Reference.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.