org.omg.model1.jdo2
Class Association

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.Association
All Implemented Interfaces:
Serializable, Association, Classifier, Element, GeneralizableElement, Namespace, BasicObject, ContextCapable, ExtentCapable, ViewCapable

public class Association
extends Element
implements Association

Class Association

See Also:
Serialized Form

Nested Class Summary
static class Association.Slice
          Slice object hold the Association'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::Association
 
Fields inherited from class org.omg.model1.jdo2.Element
BASE_CLASS
 
Constructor Summary
Association()
           
 
Method Summary
 ClassifierExternalizeResult externalizeClassifier(String schema)
           
 NamespaceFindElementsByTypeResult findElementsByType(boolean includeSubtypes, String ofType)
           
<T extends Element>
Collection<T>
getAllNamespaceContent()
          Retrieves a set containing all the elements for the reference allNamespaceContent.
 Element getAllNamespaceContent(boolean qualifiedNameIsPersistent, String qualifiedName)
          Retrieves the value for the reference allNamespaceContent for the specified qualifier attribute value.
<T extends GeneralizableElement>
Set<T>
getAllSubtype()
          Retrieves the Collection of objects referenced by allSubtype.
<T extends GeneralizableElement>
Set<T>
getAllSupertype()
          Retrieves the Collection of objects referenced by allSupertype.
 Reference getCompositeReference()
          Retrieves the value for the reference compositeReference.
<T extends Element>
Set<T>
getContent()
          Retrieves the Collection of objects referenced by content.
<T extends Feature>
Set<T>
getFeature()
          Retrieves the Collection of objects referenced by feature.
<T extends Element>
Collection<T>
getNamespaceContent()
          Retrieves a set containing all the elements for the reference namespaceContent.
 Element getNamespaceContent(boolean qualifiedNameIsPersistent, String qualifiedName)
          Retrieves the value for the reference namespaceContent for the specified qualifier attribute value.
<T extends GeneralizableElement>
Set<T>
getSubtype()
          Retrieves the Collection of objects referenced by subtype.
<T extends GeneralizableElement>
Set<T>
getSupertype()
          Retrieves the Collection of objects referenced by supertype.
 String getVisibility()
          Retrieves the value for the attribute visibility.
 boolean isAbstract()
          Retrieves the value for the attribute isAbstract.
 boolean isDerived()
          Retrieves the value for the attribute isDerived.
 NamespaceLookupElementResult lookupElement(String name)
           
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)
           
 NamespaceResolveQualifiedNameResult resolveQualifiedName(String qualifiedName)
           
 void setAbstract(boolean isAbstract)
          Sets a new value for the attribute isAbstract.
 void setDerived(boolean isDerived)
          Sets a new value for the attribute isDerived.
 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::Association

Constructor Detail

Association

public Association()
Method Detail

lookupElement

public NamespaceLookupElementResult lookupElement(String name)
Specified by:
lookupElement in interface Namespace

isDerived

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

Specified by:
isDerived in interface Association
Returns:
The non-null value for attribute isDerived.

setDerived

public void setDerived(boolean isDerived)
Sets a new value for the attribute isDerived.

Specified by:
setDerived in interface Association
Parameters:
isDerived - The non-null new value for attribute isDerived.

getVisibility

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

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

getSupertype

public <T extends GeneralizableElement> Set<T> getSupertype()
Retrieves the Collection of objects referenced by supertype.

Specified by:
getSupertype in interface GeneralizableElement
Returns:
The Collection of referenced objects.

getAllNamespaceContent

public <T extends Element> Collection<T> getAllNamespaceContent()
Retrieves a set containing all the elements for the reference allNamespaceContent.

Specified by:
getAllNamespaceContent in interface Namespace
Returns:
A set containing all the elements for this reference.

getAllNamespaceContent

public Element getAllNamespaceContent(boolean qualifiedNameIsPersistent,
                                      String qualifiedName)
Retrieves the value for the reference allNamespaceContent for the specified qualifier attribute value.

Specified by:
getAllNamespaceContent in interface Namespace
Parameters:
qualifiedNameIsPersistent - Defines whether value for the qualifier is persistent or not
qualifiedName - The value for the qualifier attribute that qualifies this reference.
Returns:
The possibly null value for this qualifier

externalizeClassifier

public ClassifierExternalizeResult externalizeClassifier(String schema)
Specified by:
externalizeClassifier in interface Classifier

isAbstract

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

Specified by:
isAbstract in interface GeneralizableElement
Returns:
The non-null value for attribute isAbstract.

setAbstract

public void setAbstract(boolean isAbstract)
Sets a new value for the attribute isAbstract.

Specified by:
setAbstract in interface GeneralizableElement
Parameters:
isAbstract - The non-null new value for attribute isAbstract.

getFeature

public <T extends Feature> Set<T> getFeature()
Retrieves the Collection of objects referenced by feature.

Specified by:
getFeature in interface GeneralizableElement
Returns:
The Collection of referenced objects.

getAllSupertype

public <T extends GeneralizableElement> Set<T> getAllSupertype()
Retrieves the Collection of objects referenced by allSupertype.

Specified by:
getAllSupertype in interface GeneralizableElement
Returns:
The Collection of referenced objects.

getAllSubtype

public <T extends GeneralizableElement> Set<T> getAllSubtype()
Retrieves the Collection of objects referenced by allSubtype.

Specified by:
getAllSubtype in interface GeneralizableElement
Returns:
The Collection of referenced objects.

resolveQualifiedName

public NamespaceResolveQualifiedNameResult resolveQualifiedName(String qualifiedName)
Specified by:
resolveQualifiedName in interface Namespace

getCompositeReference

public Reference getCompositeReference()
Retrieves the value for the reference compositeReference.

Specified by:
getCompositeReference in interface Classifier
Returns:
The – possibly null – value for this reference.

findElementsByType

public NamespaceFindElementsByTypeResult findElementsByType(boolean includeSubtypes,
                                                            String ofType)
Specified by:
findElementsByType in interface Namespace

getNamespaceContent

public <T extends Element> Collection<T> getNamespaceContent()
Retrieves a set containing all the elements for the reference namespaceContent.

Specified by:
getNamespaceContent in interface Namespace
Returns:
A set containing all the elements for this reference.

getNamespaceContent

public Element getNamespaceContent(boolean qualifiedNameIsPersistent,
                                   String qualifiedName)
Retrieves the value for the reference namespaceContent for the specified qualifier attribute value.

Specified by:
getNamespaceContent in interface Namespace
Parameters:
qualifiedNameIsPersistent - Defines whether value for the qualifier is persistent or not
qualifiedName - The value for the qualifier attribute that qualifies this reference.
Returns:
The possibly null value for this qualifier

getContent

public <T extends Element> Set<T> getContent()
Retrieves the Collection of objects referenced by content.

Specified by:
getContent in interface Namespace
Returns:
The Collection of referenced objects.

getSubtype

public <T extends GeneralizableElement> Set<T> getSubtype()
Retrieves the Collection of objects referenced by subtype.

Specified by:
getSubtype in interface GeneralizableElement
Returns:
The Collection of referenced objects.

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