org.eclipse.emf.facet.efacet.core
Interface IFacetAction


public interface IFacetAction

This interface contains methods declaration to deal with Facet, FacetSet.

Since:
0.2

Field Summary
static IFacetAction INSTANCE
           
 
Method Summary
 void addAttributeInFacet(Facet facet, FacetAttribute facetAttribute, EditingDomain editingDomain)
           
 void addOperationInFacet(Facet facet, FacetOperation facetOperation, EditingDomain editingDomain)
          Add a new FacetOperation to the given Facet
 void addParameterInOperation(FacetOperation operation, EParameter parameter, EditingDomain editingDomain)
          Add a new EParameter to the given FacetOperation
 void addReferenceInFacet(Facet facet, FacetReference facetReference, EditingDomain editingDomain)
           
 Facet createFacetInFacetSet(FacetSet facetSet, Facet facet, EditingDomain editingDomain)
          Creates a new Facet in the given FacetSet
 void setFacetSetNsUri(FacetSet facetSet, java.lang.String nsUri, EditingDomain editingDomain)
          Set the given URI to the given FacetSet
 

Field Detail

INSTANCE

static final IFacetAction INSTANCE
Method Detail

createFacetInFacetSet

Facet createFacetInFacetSet(FacetSet facetSet,
                            Facet facet,
                            EditingDomain editingDomain)
Creates a new Facet in the given FacetSet

Parameters:
facetSet - the parent facetSet, cannot be null
facet - the Facet, cannot be null, or contained by a resource
editingDomain - the editing domain needed to perform the Add EMF command, cannot be null
Returns:
the new facet

addAttributeInFacet

void addAttributeInFacet(Facet facet,
                         FacetAttribute facetAttribute,
                         EditingDomain editingDomain)
Parameters:
facet - the parent Facet, cannot be null
facetAttribute - the FacetAttribute, cannot be null, or contained by a resource
editingDomain - the editing domain needed to perform the Add Emf command, cannot be null

addReferenceInFacet

void addReferenceInFacet(Facet facet,
                         FacetReference facetReference,
                         EditingDomain editingDomain)
Parameters:
facet - the parent Facet, cannot be null
facetReference - the FacetReference, cannot be null, or contained by a resource
editingDomain - the editing domain needed to perform the Add Emf command, cannot be null

addOperationInFacet

void addOperationInFacet(Facet facet,
                         FacetOperation facetOperation,
                         EditingDomain editingDomain)
Add a new FacetOperation to the given Facet

Parameters:
facet - the parent Facet, cannot be null
facetOperation - the new FacetOperation, cannot be null, or contained by a resource
editingDomain - the editing domain needed to perform the Add Emf command, cannot be null

addParameterInOperation

void addParameterInOperation(FacetOperation operation,
                             EParameter parameter,
                             EditingDomain editingDomain)
Add a new EParameter to the given FacetOperation

Parameters:
operation - the parent EOperation
parameter - the new EParameter
editingDomain - the editing domain needed to perform the Add Emf command, cannot be null

setFacetSetNsUri

void setFacetSetNsUri(FacetSet facetSet,
                      java.lang.String nsUri,
                      EditingDomain editingDomain)
Set the given URI to the given FacetSet

Parameters:
facetSet - the FacetSet to be modified
nsUri - the Uri
editingDomain - the editing domain needed to perform the Set Emf command, cannot be null