org.omg.model1.jmi1
Interface Element

All Superinterfaces:
BasicObject, ContextCapable, Element, ExtentCapable, RefBaseObject, RefFeatured, RefObject, ViewCapable
All Known Subinterfaces:
AliasType, Association, AssociationEnd, Attribute, BehaviouralFeature, Class, Classifier, CollectionType, Constant, Constraint, Datatype, EnumerationType, Exception, Feature, GeneralizableElement, Import, Namespace, Operation, Package, Parameter, PrimitiveType, Reference, StructuralFeature, StructureField, StructureType, Tag, TypedElement

public interface Element
extends Element, BasicObject

Abstract class Element


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.omg.model1.cci2.Element
Element.Identity
 
Method Summary
 Namespace getContainer()
          Retrieves the value for the reference container.
 Segment getSegment()
          Retrieves the value for the reference segment.
 Set<String> getStereotype()
           
<T extends View>
List<T>
getView(ViewQuery query)
          Retrieves the value for the reference view for the specified query.
 void removeContainer()
          Removes the value for the optional reference container.
 void setContainer(Namespace container)
          Sets a new value for the reference container.
 void setSegment(Segment segment)
          Sets a new value for the reference segment.
 void setSegment(Segment segment, boolean qualifiedNameIsPersistent, String qualifiedName)
          Set the object's composite association org:omg:model1:SegmentContainsElement.
 void setStereotype(Set<String> stereotype)
           This method is equivalent to
 
Methods inherited from interface org.omg.model1.cci2.Element
getAnnotation, getName, getQualifiedName, setAnnotation, setStereotype
 
Methods inherited from interface org.openmdx.base.jmi1.BasicObject
getCreatedBy, getModifiedBy
 
Methods inherited from interface org.openmdx.base.cci2.BasicObject
getCreatedAt, getModifiedAt
 
Methods inherited from interface org.openmdx.base.cci2.ExtentCapable
getIdentity
 
Methods inherited from interface org.openmdx.compatibility.view1.cci2.ViewCapable
getView
 
Methods inherited from interface javax.jmi.reflect.RefObject
refClass, refDelete, refImmediateComposite, refIsInstanceOf, refOutermostComposite
 
Methods inherited from interface javax.jmi.reflect.RefFeatured
refGetValue, refGetValue, refInvokeOperation, refInvokeOperation, refSetValue, refSetValue
 
Methods inherited from interface javax.jmi.reflect.RefBaseObject
equals, hashCode, refImmediatePackage, refMetaObject, refMofId, refOutermostPackage, refVerifyConstraints
 

Method Detail

getContainer

Namespace getContainer()
Retrieves the value for the reference container.

Specified by:
getContainer in interface Element
Returns:
The – possibly null – value for this reference.

setContainer

void setContainer(Namespace container)
Sets a new value for the reference container.

Specified by:
setContainer in interface Element
Parameters:
container - The non-null new value for this reference.

removeContainer

void removeContainer()
Removes the value for the optional reference container.


getSegment

Segment getSegment()
Retrieves the value for the reference segment.

Specified by:
getSegment in interface Element
Returns:
The non-null value for this reference.

getStereotype

Set<String> getStereotype()
Specified by:
getStereotype in interface Element
Returns:
A set containing all elements for this attribute.

setStereotype

void setStereotype(Set<String> stereotype)

This method is equivalent to

   set.clear();
   set.addAll(stereotype);
 

Parameters:
stereotype - collection to be copied.

getView

<T extends View> List<T> getView(ViewQuery query)
Retrieves the value for the reference view for the specified query.

Parameters:
query - predicate which is applied to the set of referenced objects.
Returns:
The objects for which the predicate evaluates to true.

setSegment

void setSegment(Segment segment)
Sets a new value for the reference segment.

Specified by:
setSegment in interface Element
Parameters:
segment - The non-null new value for this reference.

setSegment

void setSegment(Segment segment,
                boolean qualifiedNameIsPersistent,
                String qualifiedName)
Set the object's composite association org:omg:model1:SegmentContainsElement.

Specified by:
setSegment in interface Element
Parameters:
segment - The non-null new value for this object's composite owner.
qualifiedNameIsPersistent - Defines whether the qualifiedName is persistent.
qualifiedName - The non-null new value for this object's qualifier.


This software is published under the BSD license. Copyright © 2003-2007, OMEX AG, Switzerland, All rights reserved. Use is subject to license terms.