org.omg.model1.jdo2
Class AssociationEnd

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.AssociationEnd
All Implemented Interfaces:
Serializable, AssociationEnd, Element, TypedElement, BasicObject, ContextCapable, ExtentCapable, ViewCapable

public class AssociationEnd
extends Element
implements AssociationEnd

Class AssociationEnd

See Also:
Serialized Form

Nested Class Summary
static class AssociationEnd.Slice
          Slice object hold the AssociationEnd'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::AssociationEnd
 
Fields inherited from class org.omg.model1.jdo2.Element
BASE_CLASS
 
Constructor Summary
AssociationEnd()
           
 
Method Summary
 String getAggregation()
          Retrieves the value for the attribute aggregation.
 String getMultiplicity()
          Retrieves the value for the attribute multiplicity.
 List<String> getQualifierName()
          Retrieves a list containing all the elements for the attribute qualifierName.
<T extends Classifier>
List<T>
getQualifierType()
          Retrieves the Collection of objects referenced by qualifierType.
 Classifier getType()
          Retrieves the value for the reference type.
 boolean isChangeable()
          Retrieves the value for the attribute isChangeable.
 boolean isNavigable()
          Retrieves the value for the attribute isNavigable.
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 setAggregation(String aggregation)
          Sets a new value for the attribute aggregation.
 void setChangeable(boolean isChangeable)
          Sets a new value for the attribute isChangeable.
 void setMultiplicity(String multiplicity)
          Sets a new value for the attribute multiplicity.
 void setNavigable(boolean isNavigable)
          Sets a new value for the attribute isNavigable.
 void setQualifierName(String... qualifierName)
          Clears qualifierName and adds the given value(s).
 void setType(Classifier type)
          Sets a new value for the reference type.
 
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::AssociationEnd

Constructor Detail

AssociationEnd

public AssociationEnd()
Method Detail

getQualifierType

public <T extends Classifier> List<T> getQualifierType()
Retrieves the Collection of objects referenced by qualifierType.

Specified by:
getQualifierType in interface AssociationEnd
Returns:
The Collection of referenced objects.

isChangeable

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

Specified by:
isChangeable in interface AssociationEnd
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 AssociationEnd
Parameters:
isChangeable - The non-null new value for attribute isChangeable.

getMultiplicity

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

Specified by:
getMultiplicity in interface AssociationEnd
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 AssociationEnd
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.

getAggregation

public String getAggregation()
Retrieves the value for the attribute aggregation.

Specified by:
getAggregation in interface AssociationEnd
Returns:
The non-null value for attribute aggregation.

setAggregation

public void setAggregation(String aggregation)
Sets a new value for the attribute aggregation.

Specified by:
setAggregation in interface AssociationEnd
Parameters:
aggregation - The non-null new value for attribute aggregation.

isNavigable

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

Specified by:
isNavigable in interface AssociationEnd
Returns:
The non-null value for attribute isNavigable.

setNavigable

public void setNavigable(boolean isNavigable)
Sets a new value for the attribute isNavigable.

Specified by:
setNavigable in interface AssociationEnd
Parameters:
isNavigable - The non-null new value for attribute isNavigable.

getQualifierName

public final List<String> getQualifierName()
Retrieves a list containing all the elements for the attribute qualifierName.

Specified by:
getQualifierName in interface AssociationEnd
Returns:
A list containing all elements for this attribute.

setQualifierName

public void setQualifierName(String... qualifierName)
Clears qualifierName and adds the given value(s).

This method is equivalent to

   list.clear();
   for(java.lang.String e : attributeName){
     list.add(e);
   }
 

Specified by:
setQualifierName in interface AssociationEnd
Parameters:
qualifierName - value(s) to be added to qualifierName

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:
AssociationEnd.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.