public class CSI2ASMapping extends Object implements ICSI2ASMapping
Modifier and Type | Method and Description |
---|---|
void |
add(BaseCSResource csResource,
CS2AS cs2as) |
void |
add(Map<? extends BaseCSResource,? extends ASResource> cs2asResourceMap) |
static CSI2ASMapping |
basicGetCSI2ASMapping(EnvironmentFactoryInternal environmentFactory)
Get the CSI2ASMapping owned by the environmentFactory on behalf of CS-aware consumers, or null if none in use.
|
Set<CSI> |
computeCSIs(BaseCSResource csResource) |
void |
dispose() |
Element |
get(ModelElementCS csElement)
Return the Pivot element corresponding to a given CS element.
|
ASResource |
getASResource(BaseCSResource csResource)
Return the AS Resource corresponding to a given CS Resource.
|
CS2AS |
getCS2AS(BaseCSResource csResource) |
ModelElementCS |
getCSElement(Element pivotElement) |
static CSI2ASMapping |
getCSI2ASMapping(EnvironmentFactoryInternal environmentFactory)
Create/reuse the CSI2ASMapping owned by the environmentFactory on behalf of CS-aware consumers.
|
Set<BaseCSResource> |
getCSResources()
Return all mapped CS Resources.
|
EnvironmentFactoryInternal |
getEnvironmentFactory() |
Map<CSI,Element> |
getMapping() |
void |
put(ModelElementCS csElement,
Element pivotElement)
Install the Pivot element corresponding to a given CS element.
|
void |
removeCSResource(BaseCSResource csResource)
Remove the Resource mappings for all csResources.
|
void |
update()
Update the mapping to cache the Pivot elements with respect to the CSIs for all CS elements in csResources.
|
public static CSI2ASMapping basicGetCSI2ASMapping(EnvironmentFactoryInternal environmentFactory)
public static CSI2ASMapping getCSI2ASMapping(EnvironmentFactoryInternal environmentFactory)
public void add(Map<? extends BaseCSResource,? extends ASResource> cs2asResourceMap)
public void add(BaseCSResource csResource, CS2AS cs2as)
public Set<CSI> computeCSIs(BaseCSResource csResource)
public void dispose()
dispose
in interface ICSI2ASMapping
public Element get(ModelElementCS csElement)
public ASResource getASResource(BaseCSResource csResource)
public CS2AS getCS2AS(BaseCSResource csResource)
public Set<BaseCSResource> getCSResources()
public ModelElementCS getCSElement(Element pivotElement)
public EnvironmentFactoryInternal getEnvironmentFactory()
public void put(ModelElementCS csElement, Element pivotElement)
public void removeCSResource(BaseCSResource csResource)
public void update()
Copyright © 2005, 2018 IBM Corporation and others. All Rights Reserved.