com.change_vision.jude.api.inf.model
Interface IElement

com.change_vision.jude.api.inf.model.IElement
All Superinterfaces:
IEntity
All Implemented Interfaces:
IEntity
All Known Implementing Classes:
IAccident, IAccidentHazardSafetyConstraintTable, IAction, IActivity, IActivityDiagram, IActivityNode, IActivityParameterNode, IAnchor, IArgumentAsset, IArgumentationElement, IArtifact, IAssociation, IAssociationClass, IAssumption, IAttribute, IBindingConnector, IBlock, IBlockDefinitionDiagram, IClass, IClassDiagram, IClassifierTemplateParameter, ICombinedFragment, IComment, ICommunicationDiagram, IComponent, IComponent, IComponentDiagram, ICompositeStructureDiagram, IConnector, IConstraint, IConstraintBlock, IConstraintParameter, IConstraintProperty, IContext, IControlAction, IControlLink, IControlLoopDiagram, IControlNode, IControlStructureDiagram, ICountermeasure, ICountermeasureTable, IDataFlow, IDataFlowDiagram, IDataFlowNode, IDependency, IDeploymentDiagram, IDiagram, IDurationConstraint, IExtend, IExtentionPoint, IExternalEntity, IFeedback, IFeedbackLink, IFinalState, IFlow, IFlowProperty, IGate, IGeneralization, IGoal, IGsnDiagram, IGsnElement, IHazard, IHazardCausalFactor, IHazardScenario, IIdentifiedElement, IInclude, IInContextOf, IInputPin, IInstanceSpecification, IInteraction, IInteractionFragment, IInteractionOperand, IInteractionUse, IInterfaceBlock, IInternalBlockDiagram, IItemFlow, IJustification, ILifeline, ILifelineLink, ILink, ILink, ILinkableElement, ILinkEnd, ILinkEnd, ILossScenarioTable, IMatrixDiagram, IMessage, IMindMapDiagram, IModel, IModule, INamedElement, INode, IObjectNode, IOperation, IOutputPin, IPackage, IParameter, IPartition, IPin, IPort, IPrecondition, IPreconditionTable, IProcessBox, IProcessModel, IProcessValue, IProcessVariable, IPseudostate, IQuantityKind, IRealization, IRelationship, IRequirement, IRequirementDiagram, IRequirementTable, ISafetyConstraint, ISequenceDiagram, ISignal, ISlot, ISolution, IStampComment, IStampDiagram, IStampElement, IState, IStateInvariant, IStateMachine, IStateMachineDiagram, IStpaAnalysis, IStrategy, ISubsystem, ISupportedBy, ITaggedValue, ITemplateBinding, ITermination, ITestCase, ITimeConstraint, ITraceabilityMap, ITransition, IUCATable, IUnit, IUnsafeControlAction, IUsage, IUseCase, IUseCaseDiagram, IValueAttribute, IValueProperty, IValueType, IValueTypeProperty, IVertex

public abstract IElement
extends IEntity

Interface for elements.


Method Summary
abstract  void addStereotype(String stereotype)
          Add a stereotype.
abstract  IComment[] getComments()
          Get Comments.
abstract  IElement getContainer()
          Get hierarchy parent including namespace.
abstract  IElement[] getContainers()
          Get hierarchy parents including namespace.
abstract  String getId()
          Get ID.
abstract  IElement getOwner()
          Get Namespace.
abstract  IPresentation[] getPresentations()
          Get Presentations.
abstract  String[] getStereotypes()
          Get Stereotypes.
abstract  String getTaggedValue(String key)
          Get The Value Of Specified Tagged Values.
abstract  ITaggedValue[] getTaggedValues()
          Get Tagged Values.
abstract  String getTypeModifier()
          Get Type Modifier.
abstract  boolean hasStereotype(String stereotype)
          True if the element has the target Stereotype.
abstract  boolean isReadOnly()
          Check if this element is read only.
abstract  void removeStereotype(String stereotype)
          Remove a stereotype.
abstract  void setTypeModifier(String typeModifier)
          Not implemented yet. Set Type Modifier.
 

Method Detail

getId

abstract String getId()
Get ID.

Returns:
ID.

getOwner

abstract IElement getOwner()
Get Namespace.

Returns:
Namespace. Return null in case there is none.

getContainer

abstract IElement getContainer()
Get hierarchy parent including namespace. If State2 is in State1 on a diagram, state1 is the parent of state2.

Returns:
Hierarchy parent. Return null in case there is none.

getContainers

abstract IElement[] getContainers()
Get hierarchy parents including namespace. Vertical partition and horizontal partition can be got at the same time.

Returns:
Hierarchy parent. Return the empty array if there is none.

getComments

abstract IComment[] getComments()
Get Comments.

Returns:
The array of Comments. Return the empty array if there is none.

getStereotypes

abstract String[] getStereotypes()
Get Stereotypes.

Returns:
The array of stereotypes. Return the empty array if there is none.

hasStereotype

abstract boolean hasStereotype(String stereotype)
True if the element has the target Stereotype.

Parameters:
stereotype - Stereotype
Returns:
true if the element has the target Stereotype.
Since:
6.6.4

removeStereotype

abstract void removeStereotype(String stereotype)
Remove a stereotype.

Parameters:
stereotype - Stereotype
Throws:
InvalidEditingException - InvalidEditingException occurs.
Keys:
       ILLEGAL_VERSION_ERROR_KEY - if Editing API is used in astah* community.
       PARAMETER_ERROR_KEY - if a parameter is not set properly.
       BAD_TRANSACTION_KEY - Bad Transaction.
       HAS_EXCEPTION_KEY - if an exception has occurred.
       READ_ONLY_KEY - if a read-only element is edited.
Values:
       Error messages for exceptions.

addStereotype

abstract void addStereotype(String stereotype)
Add a stereotype.

Parameters:
stereotype - Stereotype
Throws:
InvalidEditingException - InvalidEditingException occurs.
Keys:
       ILLEGAL_VERSION_ERROR_KEY - if Editing API is used in astah* community.
       PARAMETER_ERROR_KEY - if a parameter is not set properly.
       BAD_TRANSACTION_KEY - Bad Transaction.
       HAS_EXCEPTION_KEY - if an exception has occurred.
       READ_ONLY_KEY - if a read-only element is edited.
Values:
       Error messages for exceptions.

getTaggedValues

abstract ITaggedValue[] getTaggedValues()
Get Tagged Values.

Returns:
the array of Tagged Values. Return the empty array if there is none.

getTaggedValue

abstract String getTaggedValue(String key)
Get The Value Of Specified Tagged Values.

Returns:
The value of Specified tagged value. Return "" if there is none.

isReadOnly

abstract boolean isReadOnly()
Check if this element is read only.

Returns:
true the element is read only / false the element is not read only

getTypeModifier

abstract String getTypeModifier()
Get Type Modifier.

Returns:
Type Modifier.

getPresentations

abstract IPresentation[] getPresentations()
Get Presentations.

Returns:
the array of presentations. Return the empty array if there is none.
Throws:
InvalidUsingException - InvalidUsingException occurs.
Keys:
       ILLEGAL_USE_ERROR_KEY - if Presentation API is used in astah* community.
Values:
       Error messages for exceptions.

setTypeModifier

abstract void setTypeModifier(String typeModifier)
Not implemented yet. Set Type Modifier.

Parameters:
typeModifier - Type Modifier
Throws:
InvalidEditingException - InvalidEditingException occurs.
Keys:
       ILLEGAL_VERSION_ERROR_KEY - if Editing API is used in astah* community.
       INVALID_TYPE_MODIFIER_MODEL_ERROR_KEY - if a Type Modifier cannot be set to the model.
       BAD_TRANSACTION_KEY - Bad Transaction.
       HAS_EXCEPTION_KEY - if an exception has occurred.
       READ_ONLY_KEY - if a read-only element is edited.
Values:
       Error messages for exceptions.