Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.change_vision.jude.api.inf.model
Interface ITemplateBinding

    com.change_vision.jude.api.inf.model.ITemplateBinding

All Implemented Interfaces:
  IElement, IHyperlinkOwner, INamedElement

public ITemplateBinding
extends INamedElement

Interface for Template Binding.

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 void` | `addActualParameter(IClassifierTemplateParameter param, Object actual)` Add Actual Parameter.
`abstract Map` | `getActualMap()` Get Actual Map of the Template Binding
`abstract String` | `getActualParameterTypeModifier(IClassifierTemplateParameter param)` get Actual's TypeModifier from the param.
`abstract IClass` | `getBoundElement()` Get Bound Element.
`abstract IClass` | `getTemplate()` Get Template Class.
`abstract void` | `removeActualParameter(IClassifierTemplateParameter param)` Remove Actual Parameter.
`abstract void` | `setActualParameterTypeModifier(IClassifierTemplateParameter param, String typeModifier)` Set Actual Parameter's Type Modifier.

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

### getBoundElement

    public abstract IClass getBoundElement()

  Get Bound Element.

  Returns:
    boundElement

### getTemplate

    public abstract IClass getTemplate()

  Get Template Class.

  Returns:
    templateClass

### getActualMap

    public abstract Map getActualMap()

  Get Actual Map of the Template Binding

  Returns:
    the actual Map. Key: IClassifierTemplateParameter. Value: Object (IClass for class, String for expression)

### addActualParameter

    public abstract void addActualParameter(IClassifierTemplateParameter param,
                                            Object actual)

  Add Actual Parameter.

  Parameters:
    `param` - Template Parameter
    `actual` - Actual Parameter

         if type(type of the parameter) is Unspecified, it can be any class existed in the project
         if type is a primitive type, it should be a String value here.
         if type is a normal class, it should be the class or one of it's subclasses.
         if type is an anonymous bound class, same or related bound class can NOT be set here because of loop.
         Otherwise, InvalidEditingException will be occurred.

  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.
              NO_TARGET_CLASSIFIER_KEY - if target classifier doesn't exist.
              FORBID_SUBSYSTEM_KEY - if a subsystem is set to a template parameter.
              TEMPLATE_PARAM_ACTUAL_VALUE_ERROR_KEY - if an actual value cannot be set to a template parameter.
              INVALID_PARAMETER_KEY - if a parameter cannot be set to a template class.
              ANONYMOUS_BOUND_CLASS_LOOP_KEY - if an anonymous bound class loops.
              MUST_SUB_CLASS_ERROR_KEY - if the type of parameter is not a sub class.
              BAD_TRANSACTION_KEY - Bad Transaction.
              HAS_EXCEPTION_KEY - if an exception has occurred.

        Values:
              Error messages for exceptions.

### removeActualParameter

    public abstract void removeActualParameter(IClassifierTemplateParameter param)

  Remove Actual Parameter.

  Parameters:
    `param` - Template Parameter
  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.
              INVALID_PARAMETER_KEY - if a parameter cannot be set to a template class.
              BAD_TRANSACTION_KEY - Bad Transaction.
              HAS_EXCEPTION_KEY - if an exception has occurred.

        Values:
              Error messages for exceptions.

### getActualParameterTypeModifier

    public abstract String getActualParameterTypeModifier(IClassifierTemplateParameter param)

  get Actual's TypeModifier from the param.

  Parameters:
    `param` - Template Parameter
  Throws:
    `InvalidEditingException` - InvalidEditingException occurs.

        Keys:
               PARAMETER_ERROR_KEY - if a parameter is not set properly.
        Values:
               Error messages for exceptions.

### setActualParameterTypeModifier

    public abstract void setActualParameterTypeModifier(IClassifierTemplateParameter param,
                                                        String typeModifier)

  Set Actual Parameter's Type Modifier.

  Parameters:
    `param` - Template Parameter
    `typeModifier` - Type Modifier
  Throws:
    `InvalidEditingException` - InvalidEditingException occurs.

        Keys:
               ILLEGAL_VERSION_ERROR_KEY - if Editing API is used in JUDE/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.

        Values:
               Error messages for exceptions.

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD