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

com.change_vision.jude.api.inf.model.IValueType
All Superinterfaces:
IClass, IElement, IEntity, IHyperlinkOwner, INamedElement
All Implemented Interfaces:
IClass, IElement, IEntity, IHyperlinkOwner, INamedElement

public IValueType
extends IClass

Interface for ValueTypes.


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  IValueTypeProperty[] getProperties()
          Get properties.
abstract  IQuantityKind getQuantityKind()
          Get QuantityKind.
abstract  IUnit getUnit()
          Get unit.
abstract  void setQuantityKind(IQuantityKind quantityKind)
          Set quantityKind.
abstract  void setUnit(IUnit unit)
          Set unit.
 
Methods inherited from class com.change_vision.jude.api.inf.model.IClass
getAttributes, getGeneralizations, getNestedClasses, getOperations, getPorts, getSpecializations, getTemplateBindings, getTemplateParameters, isAbstract, isActive, isLeaf, setAbstract, setActive, setLeaf
 
Methods inherited from class com.change_vision.jude.api.inf.model.INamedElement
getClientDependencies, getClientRealizations, getClientUsages, getConstraints, getDefinition, getDiagrams, getFullName, getFullNamespace, getName, getSupplierDependencies, getSupplierRealizations, getSupplierUsages, isPackageVisibility, isPrivateVisibility, isProtectedVisibility, isPublicVisibility, setDefinition, setName, setVisibility
 
Methods inherited from class com.change_vision.jude.api.inf.model.IElement
addStereotype, getComments, getContainer, getContainers, getId, getOwner, getPresentations, getStereotypes, getTaggedValues, getTypeModifier, hasStereotype, hasStereotype, isReadOnly, removeStereotype, setTypeModifier
 
Methods inherited from class com.change_vision.jude.api.inf.model.IHyperlinkOwner
createElementHyperlink, createFileHyperlink, createURLHyperlink, deleteHyperlink, getHyperlinks
 

Method Detail

getUnit

abstract IUnit getUnit()
Get unit.

Returns:
Unit。 Unit. Return null in case no unit is set.

setUnit

abstract void setUnit(IUnit unit)
Set unit.

Parameters:
unit - unit
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.

getQuantityKind

abstract IQuantityKind getQuantityKind()
Get QuantityKind.

Returns:
QuantityKind。 QuantityKind property. Return null in case no QuantityKind is set.

setQuantityKind

abstract void setQuantityKind(IQuantityKind quantityKind)
Set quantityKind.

Parameters:
quantityKind - quantityKind
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.

getProperties

abstract IValueTypeProperty[] getProperties()
Get properties.

Returns:
the array of properties, Return the empty array in case there is none.