public class ASResourceImpl extends XMIResourceImpl implements ASResource
| Modifier and Type | Class and Description |
|---|---|
static interface |
ASResourceImpl.ImmutableResource
ImmutableResource provides additional API for derived ReadOnly/Immutable implementations.
|
| Modifier and Type | Field and Description |
|---|---|
static TracingOption |
CHECK_IMMUTABILITY
If CHECK_IMMUTABILITY is set active, an ImmutabilityCheckingAdapter instance is installed for all
contents of any ASREsource that is set not-saveable.
|
COMPLETE_OCL_CONTENT_TYPE, CONTENT_TYPE, DEFAULT_ENCODING, ECORE_CONTENT_TYPE, ESSENTIALOCL_CONTENT_TYPE, FILE_EXTENSION, OCLINECORE_CONTENT_TYPE, OCLSTDLIB_CONTENT_TYPE, OPTION_INTERNAL_UUIDS, OPTION_NORMALIZE_CONTENTS, UML_CONTENT_TYPE| Constructor and Description |
|---|
ASResourceImpl(URI uri,
ASResourceFactory asResourceFactory)
Creates an instance of the resource.
|
| Modifier and Type | Method and Description |
|---|---|
EObject |
basicGetEObjectByID(String id)
Return the EObject with the corresponding xmi:id, or null if none.
|
LUSSIDs |
basicGetLUSSIDs()
Return the manager for LUSSID assignment within this resource, or null if no LUSSIDs have been assigned.
|
NotificationChain |
basicSetResourceSet(ResourceSet resourceSet,
NotificationChain notifications)
Overridden to ensure that the ResourceFactoryRegistry ExtensionToFactoryMap entries for AS file extensions
have ASResourceFactory instnaces that are able to fall back from AS extension to CS extension using the
resourceSet as the AS ResourceSet for OCL parsing.
|
ASResourceFactory |
getASResourceFactory()
Return the ASResourceFactory that created this ASResource and which may be used
to create further artefacts.
|
Map<Object,Object> |
getDefaultSaveOptions() |
LUSSIDs |
getLUSSIDs(Map<Object,Object> options)
Return the manager for LUSSID assignment within this resource.
|
Model |
getModel()
Return the Model that provides the sole root content.
|
String |
getURIFragment(EObject eObject) |
int |
getXmiidVersion()
Return the version number that identifies the algorithm used to compute xmi:ids within this Resource.
|
boolean |
isOrphanage()
Return true if this Resource is a container for orphan model elements.
|
boolean |
isSaveable()
Return true if this Resource may be saved.
|
void |
resetLUSSIDs()
Reset the Locally Unique Senantically Sensitive IDs that form the basic of xmi:id allocation.
|
void |
save(Map<?,?> options)
Overridden to suppress saving unsaveable content to a probably read-only destination.
|
void |
setSaveable(boolean isSaveable)
Enable or disable saving of this resource.
|
void |
setXmiidVersion(int xmiidVersion)
Define the version number identifying the xmi:id allocation algorithm for this resource.
|
public static final TracingOption CHECK_IMMUTABILITY
public ASResourceImpl(URI uri,
ASResourceFactory asResourceFactory)
public EObject basicGetEObjectByID(String id)
ASResourcebasicGetEObjectByID in interface ASResourcepublic LUSSIDs basicGetLUSSIDs()
ASResourcebasicGetLUSSIDs in interface ASResourcepublic NotificationChain basicSetResourceSet(ResourceSet resourceSet,
NotificationChain notifications)
public ASResourceFactory getASResourceFactory()
ASResourcegetASResourceFactory in interface ASResourcepublic LUSSIDs getLUSSIDs(Map<Object,Object> options)
ASResourcegetLUSSIDs in interface ASResourcepublic Model getModel()
ASResourcegetModel in interface ASResourcepublic String getURIFragment(EObject eObject)
public int getXmiidVersion()
ASResourcegetXmiidVersion in interface ASResourcepublic boolean isOrphanage()
ASResourceisOrphanage in interface ASResourcepublic boolean isSaveable()
ASResourceisSaveable in interface ASResourcepublic void resetLUSSIDs()
ASResourceresetLUSSIDs in interface ASResourcepublic void save(Map<?,?> options) throws IOException
IOExceptionpublic void setSaveable(boolean isSaveable)
ASResourcesetSaveable in interface ASResourcepublic void setXmiidVersion(int xmiidVersion)
ASResourcesetXmiidVersion in interface ASResourceCopyright © 2005, 2018 IBM Corporation and others. All Rights Reserved.