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

com.change_vision.jude.api.inf.model.IAttribute
All Implemented Interfaces:
IElement, IHyperlinkOwner, INamedElement

public IAttribute
extends INamedElement

Interface for Attribute or Association End.


Field Summary
 
Fields inherited from class com.change_vision.jude.api.inf.model.INamedElement
PACKAGE_VISIBILITY, PRIVATE_VISIBILITY, PROTECTED_VISIBILITY, PUBLIC_VISIBILITY
 
Method Summary
abstract  IAssociation getAssociation()
          Get Association.
abstract  String getInitialValue()
          Get Initial Value.
abstract  IMultiplicityRange[] getMultiplicity()
          Get Multiplicity.
abstract  IAttribute[] getQualifiers()
          Get Qualifiers.
abstract  IClass getType()
          Get Type.
abstract  String getTypeExpression()
          Get Type Expression.
abstract  boolean isAggregate()
          Check if it is Aggregate.
abstract  boolean isChangeable()
          Check if it is Changeable.
abstract  boolean isComposite()
          Check if it is Composite.
abstract  boolean isDerived()
          Check if the element is derived.
abstract  boolean isEnable()
          Check if it is able to navigate.
abstract  boolean isStatic()
          Check if it is static.
abstract  void setAggregation()
          Set Aggregation.
abstract  void setChangeable(boolean isChangeable)
          Set Changeable.
abstract  void setComposite()
          Set Composite.
abstract  void setDerived(boolean isDerived)
          Set Derived.
abstract  void setEnable(boolean isEnable)
          Set Enable.
abstract  void setInitialValue(String initialValue)
          Set Initial Value.
abstract  void setMultiplicity(int[][] ranges)
          Set Multiplicity.
abstract  void setStatic(boolean isStatic)
          Set Static.
abstract  void setType(IClass type)
          Set Type.
abstract  void setTypeExpression(String type)
          Set Type Expression.
 
Methods inherited from class com.change_vision.jude.api.inf.model.INamedElement
getAlias1, getAlias2, getClientDependencies, getConstraints, getDefinition, getDiagrams, getName, getSupplierDependencies, isPackageVisibility, isPrivateVisibility, isProtectedVisibility, isPublicVisibility, setAlias1, setAlias2, setDefinition, setName, setVisibility
 
Methods inherited from class com.change_vision.jude.api.inf.model.IElement
addStereotype, getComments, getId, getOwner, getStereotypes, getTaggedValues, getTypeModifier, isReadOnly, removeStereotype, setTypeModifier
 
Methods inherited from class com.change_vision.jude.api.inf.model.IHyperlinkOwner
createElementHyperlink, createFileHyperlink, createURLHyperlink, deleteHyperlink, getHyperlinks
 

Method Detail

getType

public abstract IClass getType()
Get Type.

Returns:
Type. Return null in case no type is found.

getTypeExpression

public abstract String getTypeExpression()
Get Type Expression.

Returns:
String-Type Expression. Return empty string("") if there is none.

getInitialValue

public abstract String getInitialValue()
Get Initial Value.

Returns:
Initial Value. Return empty string ("") if there is none.

isChangeable

public abstract boolean isChangeable()
Check if it is Changeable. (Let's consider NOT final in Java language).

Returns:
true able to change / false it is Read-Only and unable to change

getAssociation

public abstract IAssociation getAssociation()
Get Association.

Returns:
Association (Return null in case it is Attribute)

getQualifiers

public abstract IAttribute[] getQualifiers()
Get Qualifiers.

Returns:
the array of Qualifiers (Return the empty array in case there is no qualifiers or it was attribute).

getMultiplicity

public abstract IMultiplicityRange[] getMultiplicity()
Get Multiplicity.

Returns:
the array of Multiplicity range (Return the empty array in case it was attribute).

isDerived

public abstract boolean isDerived()
Check if the element is derived.

Returns:
true it is derived / false it is not derived

isComposite

public abstract boolean isComposite()
Check if it is Composite.

Returns:
true it is composite / false it is not composite

isAggregate

public abstract boolean isAggregate()
Check if it is Aggregate.

Returns:
true it is Aggregate / false it is Attribute not Aggregate

isEnable

public abstract boolean isEnable()
Check if it is able to navigate.

Returns:
true it is able to navigate or it is an Attribute. / false it is unable to navigate

isStatic

public abstract boolean isStatic()
Check if it is static.

Returns:
true it is static / false it is not static

setType

public abstract void setType(IClass type)
Set Type.

Parameters:
type - Type
Throws:
InvalidEditingException - InvalidEditingException occurs.
Keys: 
      ILLEGAL_VERSION_ERROR_KEY - if Editing API is used in JUDE/Community. 
      PARAMETER_ERROR_KEY - if a parameter is not set properly. 
      ILLEGALMODELTYPE_ERROR_KEY - if the model type is illegal. 
      BAD_TRANSACTION_KEY - Bad Transaction. 
      HAS_EXCEPTION_KEY - if an exception has occurred.
Values: 
      Error messages for exceptions.

setTypeExpression

public abstract void setTypeExpression(String type)
Set Type Expression.

Parameters:
type - Type Expression
Throws:
InvalidEditingException - InvalidEditingException occurs.
Keys: 
      ILLEGAL_VERSION_ERROR_KEY - if Editing API is used in JUDE/Community. 
      PARAMETER_ERROR_KEY - if a parameter is not set properly. 
      NO_TARGET_CLASSIFIER_KEY - if target classifier doesn't exist. 
      BAD_TRANSACTION_KEY - Bad Transaction. 
      HAS_EXCEPTION_KEY - if an exception has occurred.
Values: 
      Error messages for exceptions.

setInitialValue

public abstract void setInitialValue(String initialValue)
Set Initial Value.

Parameters:
initialValue - Initial Value
Throws:
InvalidEditingException - InvalidEditingException occurs.
Keys: 
      ILLEGAL_VERSION_ERROR_KEY - if Editing API is used in JUDE/Community. 
      BAD_TRANSACTION_KEY - Bad Transaction. 
      HAS_EXCEPTION_KEY - if an exception has occurred.
Values: 
      Error messages for exceptions.

setChangeable

public abstract void setChangeable(boolean isChangeable)
Set Changeable.

Parameters:
isChangeable - true changeable / false not changeable.
Throws:
InvalidEditingException - InvalidEditingException occurs.
Keys: 
      ILLEGAL_VERSION_ERROR_KEY - if Editing API is used in JUDE/Community. 
      BAD_TRANSACTION_KEY - Bad Transaction. 
      HAS_EXCEPTION_KEY - if an exception has occurred.
Values: 
      Error messages for exceptions.

setAggregation

public abstract void setAggregation()
Set Aggregation.

Throws:
InvalidEditingException - InvalidEditingException occurs.
Keys: 
      ILLEGAL_VERSION_ERROR_KEY - if Editing API is used in JUDE/Community. 
      BAD_TRANSACTION_KEY - Bad Transaction. 
      HAS_EXCEPTION_KEY - if an exception has occurred.
Values: 
      Error messages for exceptions.

setComposite

public abstract void setComposite()
Set Composite.

Throws:
InvalidEditingException - InvalidEditingException occurs.
Keys: 
      ILLEGAL_VERSION_ERROR_KEY - if Editing API is used in JUDE/Community. 
      BAD_TRANSACTION_KEY - Bad Transaction. 
      HAS_EXCEPTION_KEY - if an exception has occurred.
Values: 
      Error messages for exceptions.

setStatic

public abstract void setStatic(boolean isStatic)
Set Static.

Parameters:
isStatic - true static / false staticではない。 true static / false not static.
Throws:
InvalidEditingException - InvalidEditingException occurs.
Keys: 
      ILLEGAL_VERSION_ERROR_KEY - if Editing API is used in JUDE/Community. 
      BAD_TRANSACTION_KEY - Bad Transaction. 
      HAS_EXCEPTION_KEY - if an exception has occurred.
Values: 
      Error messages for exceptions.

setMultiplicity

public abstract void setMultiplicity(int[][] ranges)
Set Multiplicity.

Parameters:
ranges - Multiplicity Range
 like "0..*", ranges should be {{0, IMultiplicityRange.UNLIMITED}}.   
 "0..6", ranges should be {{0, 6}}. 
 "*", ranges should be {{IMultiplicityRange.UNLIMITED}}. 
 "1", ranges should be {{1}}. 
 "1,3,5,7,9,10..100", ranges should be {{1},{3},{5},{7},{9},{10,100}} 
 lower < 0 like {{-5, 5}}, upper < lower {10, 5}} are NOT permitted.
Throws:
InvalidEditingException - InvalidEditingException occurs.
Keys: 
      ILLEGAL_VERSION_ERROR_KEY - if Editing API is used in JUDE/Community. 
      PARAMETER_ERROR_KEY - if a parameter is not set properly. 
      INVALID_MULTIPLICITY_KEY - if the multiplicity is invalid. 
      BAD_TRANSACTION_KEY - Bad Transaction. 
      HAS_EXCEPTION_KEY - if an exception has occurred.
Values: 
      Error messages for exceptions.

setDerived

public abstract void setDerived(boolean isDerived)
Set Derived.

Parameters:
isDerived - true derived / false not derived.
Throws:
InvalidEditingException - InvalidEditingException occurs.
Keys: 
      ILLEGAL_VERSION_ERROR_KEY - if Editing API is used in JUDE/Community. 
      BAD_TRANSACTION_KEY - Bad Transaction. 
      HAS_EXCEPTION_KEY - if an exception has occurred.
Values: 
      Error messages for exceptions.

setEnable

public abstract void setEnable(boolean isEnable)
Set Enable.

Parameters:
isEnable - true enable / false not enable.
Throws:
InvalidEditingException - InvalidEditingException occurs.
Keys: 
      ILLEGAL_VERSION_ERROR_KEY - if Editing API is used in JUDE/Community. 
      BAD_TRANSACTION_KEY - Bad Transaction. 
      HAS_EXCEPTION_KEY - if an exception has occurred.
Values: 
      Error messages for exceptions.