org.omg.model1.cci2
Interface Element

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

public interface Element
extends BasicObject

Abstract class Element


Nested Class Summary
static interface Element.Identity
          Object Identity
 
Method Summary
 String getAnnotation()
           
 Namespace getContainer()
          Retrieves the value for the reference container.
 String getName()
          Retrieves the value for the attribute name.
 String getQualifiedName()
          Retrieves the value for the attribute qualifiedName.
 Segment getSegment()
          Retrieves the value for the reference segment.
 Set<String> getStereotype()
           
 void setAnnotation(String annotation)
          Sets a new value for the attribute annotation.
 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(String... stereotype)
           This method is equivalent to
 
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
 

Method Detail

getAnnotation

String getAnnotation()
Returns:
The possibly null value for attribute annotation.

setAnnotation

void setAnnotation(String annotation)
Sets a new value for the attribute annotation.

Parameters:
annotation - The possibly null new value for attribute annotation.

getContainer

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

Returns:
The – possibly null – value for this reference.

setContainer

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

Parameters:
container - The non-null new value for this reference.

getName

String getName()
Retrieves the value for the attribute name.

Returns:
The non-null value for attribute name.

getQualifiedName

String getQualifiedName()
Retrieves the value for the attribute qualifiedName.

Returns:
The non-null value for attribute qualifiedName.

getSegment

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

Returns:
The non-null value for this reference.

getStereotype

Set<String> getStereotype()
Returns:
A set containing all elements for this attribute.

setStereotype

void setStereotype(String... stereotype)

This method is equivalent to

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

Parameters:
stereotype - value(s) to be added to stereotype

setSegment

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

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.

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.