EGF Engine
Release 0.1.0

org.eclipse.egf.pde.internal.plugin.command.context
Class AbstractCtxtEltBasedOnContractEltRefCmd

java.lang.Object
  extended by org.eclipse.egf.pde.plugin.command.AbstractChangesCommand
      extended by org.eclipse.egf.pde.plugin.command.AbstractExtensionChangesCommand
          extended by org.eclipse.egf.pde.internal.plugin.command.context.AbstractContextCommand
              extended by org.eclipse.egf.pde.internal.plugin.command.context.AbstractContextElementCommand
                  extended by org.eclipse.egf.pde.internal.plugin.command.context.AbstractCtxtEltBasedOnContractEltRefCmd
All Implemented Interfaces:
IPluginChangesCommand
Direct Known Subclasses:
SetCtxtEltBasedOnContractEltRefCmd

public abstract class AbstractCtxtEltBasedOnContractEltRefCmd
extends AbstractContextElementCommand

Base class to implement commands that deal with context element based on a contract element reference in context extension-point.


Constructor Summary
protected AbstractCtxtEltBasedOnContractEltRefCmd(String contextId_p, String contextElementId_p, String contractElementReferenceId_p, String value_p)
          Constructor.
 
Method Summary
protected  String getContractElementReferenceIdAttribute()
          Get the id attribute for contract element reference.
protected  String getContractElementReferenceIdAttributeValue()
          Get the contract element reference id.
protected  void setContractElementReference(IPluginElement contextElement_p, String contractReferenceNodeName_p, String contractReferenceIdAttribute_p, String contractReferenceIdAttributeValue_p)
          Set a contract element reference for given context element according to parameters values.
 
Methods inherited from class org.eclipse.egf.pde.internal.plugin.command.context.AbstractContextElementCommand
createContextValueElement, doCreateContextElement, getContextElementIdAttribute, getContextElementIdAttributeValue, getValue, setValue
 
Methods inherited from class org.eclipse.egf.pde.internal.plugin.command.context.AbstractContextCommand
getContextId, getExtensionChildName, getExtensionPointId
 
Methods inherited from class org.eclipse.egf.pde.plugin.command.AbstractExtensionChangesCommand
createExtension, createExtensionElementChild, getElement, getExtensionChildIdAttribute, getExtensionElementFromUniqueExtension, getExtensionElementFromUniqueExtension, getExtensionElementWithId, getExtensionElementWithNodeName, getExtensions, getExtensions, getFirstExtensionElement, removeExtension, removeExtensionElementChild, setDescription, setSingleChild
 
Methods inherited from class org.eclipse.egf.pde.plugin.command.AbstractChangesCommand
execute, getPluginModelBase, setPluginModelBase
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractCtxtEltBasedOnContractEltRefCmd

protected AbstractCtxtEltBasedOnContractEltRefCmd(String contextId_p,
                                                  String contextElementId_p,
                                                  String contractElementReferenceId_p,
                                                  String value_p)
Constructor.

Parameters:
contextId_p - id of the context used as parent.
contextElementId_p - id of the context element.
contractElementReferenceId_p - id of the contract element reference.
value_p - value set as stringValue or classValue.
Method Detail

getContractElementReferenceIdAttributeValue

protected String getContractElementReferenceIdAttributeValue()
Get the contract element reference id.

Returns:
the contractElementReferenceId

getContractElementReferenceIdAttribute

protected String getContractElementReferenceIdAttribute()
Get the id attribute for contract element reference.

Returns:

setContractElementReference

protected void setContractElementReference(IPluginElement contextElement_p,
                                           String contractReferenceNodeName_p,
                                           String contractReferenceIdAttribute_p,
                                           String contractReferenceIdAttributeValue_p)
Set a contract element reference for given context element according to parameters values.

Parameters:
contextElement_p -
contractReferenceNodeName_p -
contractReferenceIdAttribute_p -
contractReferenceIdAttributeValue_p -

EGF Engine
Release 0.1.0

Copyright (c) Thales Corporate Services S.A.S, 2009.

This page is made available under license. For full details see the LEGAL in the documentation book that contains this page.