public class CDOResourceImpl extends CDOResourceLeafImpl implements InternalCDOResource
The following features are implemented:
| Modifier and Type | Class and Description |
|---|---|
protected class |
CDOResourceImpl.ContentsCDOList
An implementation of a CDO specific 'contents' list.
|
MinimalEObjectImpl.ContainerBasicEObjectImpl.EPropertiesHolder, BasicEObjectImpl.EPropertiesHolderBaseImpl, BasicEObjectImpl.EPropertiesHolderImplBasicNotifierImpl.EAdapterList<E extends java.lang.Object & Adapter>, BasicNotifierImpl.EObservableAdapterList, BasicNotifierImpl.EScannableAdapterListXMLResource.ElementHandler, XMLResource.MissingPackageHandler, XMLResource.ResourceEntityHandler, XMLResource.ResourceHandler, XMLResource.URIHandler, XMLResource.XMLInfo, XMLResource.XMLMapResource.Diagnostic, Resource.Factory, Resource.Internal, Resource.IOWrappedExceptionInternalEObject.EStoreEVIRTUAL_GET, EVIRTUAL_IS_SET, EVIRTUAL_NO_VALUE, EVIRTUAL_SET, EVIRTUAL_UNSETOPTION_SAVE_BASE_URI, OPTION_SAVE_OVERRIDE_TRANSACTION, OPTION_SAVE_PROGRESS_MONITOR, PREFETCH_PARAMETERROOT_NAME, ROOT_PATHHREF, NIL, NO_NAMESPACE_SCHEMA_LOCATION, OPTION_ANY_SIMPLE_TYPE, OPTION_ANY_TYPE, OPTION_BINARY, OPTION_CONFIGURATION_CACHE, OPTION_DECLARE_XML, OPTION_DEFER_ATTACHMENT, OPTION_DEFER_IDREF_RESOLUTION, OPTION_DISABLE_NOTIFY, OPTION_DOM_USE_NAMESPACES_IN_SCOPE, OPTION_ELEMENT_HANDLER, OPTION_ENCODING, OPTION_ESCAPE_USING_CDATA, OPTION_EXTENDED_META_DATA, OPTION_FLUSH_THRESHOLD, OPTION_FORMATTED, OPTION_KEEP_DEFAULT_CONTENT, OPTION_LAX_FEATURE_PROCESSING, OPTION_LAX_WILDCARD_PROCESSING, OPTION_LINE_WIDTH, OPTION_MISSING_PACKAGE_HANDLER, OPTION_PARSER_FEATURES, OPTION_PARSER_PROPERTIES, OPTION_PROCESS_DANGLING_HREF, OPTION_PROCESS_DANGLING_HREF_DISCARD, OPTION_PROCESS_DANGLING_HREF_RECORD, OPTION_PROCESS_DANGLING_HREF_THROW, OPTION_PROXY_ATTRIBUTES, OPTION_RECORD_ANY_TYPE_NAMESPACE_DECLARATIONS, OPTION_RECORD_UNKNOWN_FEATURE, OPTION_RESOURCE_ENTITY_HANDLER, OPTION_RESOURCE_HANDLER, OPTION_ROOT_OBJECTS, OPTION_SAVE_DOCTYPE, OPTION_SAVE_TYPE_INFORMATION, OPTION_SCHEMA_LOCATION, OPTION_SCHEMA_LOCATION_IMPLEMENTATION, OPTION_SKIP_ESCAPE, OPTION_SKIP_ESCAPE_URI, OPTION_SUPPRESS_DOCUMENT_ROOT, OPTION_URI_HANDLER, OPTION_USE_CACHED_LOOKUP_TABLE, OPTION_USE_DEPRECATED_METHODS, OPTION_USE_ENCODED_ATTRIBUTE_STYLE, OPTION_USE_FILE_BUFFER, OPTION_USE_LEXICAL_HANDLER, OPTION_USE_PACKAGE_NS_URI_AS_LOCATION, OPTION_USE_PARSER_POOL, OPTION_USE_XML_NAME_TO_FEATURE_MAP, OPTION_XML_MAP, OPTION_XML_OPTIONS, OPTION_XML_VERSION, SCHEMA_LOCATION, TYPE, XML_NS, XML_SCHEMA_URI, XSI_NS, XSI_URIOPTION_CIPHER, OPTION_LINE_DELIMITER, OPTION_LINE_DELIMITER_UNSPECIFIED, OPTION_SAVE_ONLY_IF_CHANGED, OPTION_SAVE_ONLY_IF_CHANGED_FILE_BUFFER, OPTION_SAVE_ONLY_IF_CHANGED_MEMORY_BUFFER, OPTION_ZIP, RESOURCE__CONTENTS, RESOURCE__ERRORS, RESOURCE__IS_LOADED, RESOURCE__IS_MODIFIED, RESOURCE__IS_TRACKING_MODIFICATION, RESOURCE__RESOURCE_SET, RESOURCE__TIME_STAMP, RESOURCE__URI, RESOURCE__WARNINGSEOPPOSITE_FEATURE_BASENIL| Modifier | Constructor and Description |
|---|---|
protected |
CDOResourceImpl() |
|
CDOResourceImpl(URI initialURI) |
| Modifier and Type | Method and Description |
|---|---|
void |
attached(EObject object) |
NotificationChain |
basicSetResourceSet(ResourceSet resourceSet,
NotificationChain notifications) |
void |
cdoInternalLoading(EObject object)
Informs the resource that an
object contained within it is being loaded. |
void |
cdoInternalLoadingDone(EObject object)
Informs the resource that an
object contained within it has finished being loaded. |
void |
cdoInternalPostDetach(boolean remote)
It is really important for accessing the data to go through
CDOObjectImpl.cdoStore(). |
void |
cdoInternalPreLoad() |
protected EList<?> |
createList(EStructuralFeature eStructuralFeature) |
void |
delete(java.util.Map<?,?> options) |
void |
detached(EObject object) |
int |
eBaseStructuralFeatureID(int derivedFeatureID,
java.lang.Class<?> baseClass) |
int |
eDerivedStructuralFeatureID(int baseFeatureID,
java.lang.Class<?> baseClass) |
Resource.Internal |
eDirectResource() |
java.lang.Object |
eGet(int featureID,
boolean resolve,
boolean coreType) |
void |
eSet(int featureID,
java.lang.Object newValue) |
protected EClass |
eStaticClass() |
TreeIterator<EObject> |
getAllContents() |
protected TreeIterator<EObject> |
getAllProperContents(java.util.List<EObject> contents) |
EList<EObject> |
getContents() |
java.util.Map<java.lang.Object,java.lang.Object> |
getDefaultLoadOptions() |
java.util.Map<java.lang.Object,java.lang.Object> |
getDefaultSaveOptions() |
DOMHelper |
getDOMHelper() |
java.lang.String |
getEncoding() |
EObject |
getEObject(java.lang.String uriFragment)
Note: URI from temporary objects are going to changed when we commit the CDOTransaction.
|
protected EObject |
getEObjectByID(java.lang.String id)
Returns the object based on the fragment as an ID.
|
java.util.Map<EObject,AnyType> |
getEObjectToExtensionMap() |
java.util.Map<EObject,java.lang.String> |
getEObjectToIDMap()
Deprecated.
|
EList<Resource.Diagnostic> |
getErrors() |
java.lang.String |
getID(EObject eObject) |
java.util.Map<java.lang.String,EObject> |
getIDToEObjectMap()
Deprecated.
|
java.util.Map<java.lang.String,EObject> |
getIntrinsicIDToEObjectMap()
Returns the map used to cache the EObject that is identified by the
value
of its ID feature. |
java.lang.String |
getPublicId() |
ResourceSet |
getResourceSet() |
java.lang.String |
getSystemId() |
long |
getTimeStamp() |
URI |
getURI() |
java.lang.String |
getURIFragment(EObject object) |
URI |
getURIGen() |
EList<Resource.Diagnostic> |
getWarnings() |
java.lang.String |
getXMLVersion() |
boolean |
isExisting() |
boolean |
isLoaded() |
boolean |
isLoading() |
boolean |
isModified() |
boolean |
isRoot() |
boolean |
isTrackingModification() |
void |
load(org.xml.sax.InputSource inputSource,
java.util.Map<?,?> options) |
void |
load(java.io.InputStream inputStream,
java.util.Map<?,?> options) |
void |
load(java.util.Map<?,?> options) |
void |
load(org.w3c.dom.Node node,
java.util.Map<?,?> options) |
void |
recacheURIs() |
org.w3c.dom.Document |
save(org.w3c.dom.Document document,
java.util.Map<?,?> options,
DOMHandler handler) |
void |
save(java.util.Map<?,?> options) |
void |
save(java.io.OutputStream outputStream,
java.util.Map<?,?> options) |
void |
save(java.io.Writer writer,
java.util.Map<?,?> options) |
void |
setDoctypeInfo(java.lang.String publicId,
java.lang.String systemId) |
void |
setEncoding(java.lang.String encoding) |
protected void |
setExisting(boolean existing) |
void |
setFolder(CDOResourceFolder newFolder) |
void |
setID(EObject eObject,
java.lang.String id) |
void |
setIntrinsicIDToEObjectMap(java.util.Map<java.lang.String,EObject> intrinsicIDToEObjectMap)
Sets the map used to cache the EObject identified by the value of its ID feature.
|
void |
setModified(boolean newModified) |
void |
setName(java.lang.String newName) |
void |
setPath(java.lang.String newPath) |
void |
setResourceSet(ResourceSet newResourceSet) |
void |
setRoot(boolean root) |
void |
setTimeStamp(long newTimeStamp) |
void |
setTrackingModification(boolean newTrackingModification) |
void |
setTrackingModificationGen(boolean newTrackingModification) |
void |
setURI(URI newURI) |
void |
setURIGen(URI newURI) |
void |
setUseZip(boolean useZip) |
void |
setXMLVersion(java.lang.String version) |
java.lang.String |
toString(java.lang.String string) |
void |
unload() |
boolean |
useZip() |
basicSetFolder, basicSetName, checkDuplicates, eStaticFeatureCount, getBasename, getExtension, getFolder, getName, getPath, setBasename, setExtension, setFolderGen, setNameGen, toString, trimExtensioncdoClassInfo, cdoConflict, cdoDirectResource, cdoHistory, cdoID, cdoInternalDynamicFeature, cdoInternalInstance, cdoInternalPostAttach, cdoInternalPostInvalidate, cdoInternalPostLoad, cdoInternalPostRollback, cdoInternalPreAttach, cdoInternalPreCommit, cdoInternalSetID, cdoInternalSetResource, cdoInternalSetRevision, cdoInternalSetState, cdoInternalSetView, cdoInvalid, cdoLockState, cdoPermission, cdoPrefetch, cdoReadLock, cdoReload, cdoResource, cdoRevision, cdoRevision, cdoState, cdoView, cdoWriteLock, cdoWriteOption, createFeatureMap, createLock, createMap, createOrderedList, createUnorderedList, dynamicGet, dynamicSet, dynamicUnset, eAdapterAdded, eAdapterRemoved, eBasicAdapterListeners, eBasicSetAdapterListeners, eBasicSetContainer, eBasicSetContainer, eBasicSetSettings, eBasicSettings, eClass, eContainerAdapterArray, eContainerFeatureID, eDynamicClass, eDynamicFeature, eDynamicFeatureID, eDynamicIsSet, eHasSettings, eInternalContainer, eInternalResource, eIsCaching, equals, eSetClass, eSetDirectResource, eSetResource, eSettings, eStore, getLockState, hashCode, instanceToRevisionFeature, revisionToInstanceFeatureeBasicContainerFeatureID, eBasicInternalContainer, eDerivedStructuralFeatureIDeAdapters, eBasicAdapterArray, eBasicAdapters, eBasicHasAdapters, eBasicProperties, eBasicSetAdapterArray, eBasicSetContainer, eBasicSetContainerFeatureID, eContents, eCrossReferences, eDeliver, eIsProxy, eProperties, eProxyURI, eSetDeliver, eSetProxyURIeAddVirtualValue, eAllContents, eBasicRemoveFromContainer, eBasicRemoveFromContainerFeature, eComputeVirtualValuesCapacity, eContainer, eContainingFeature, eContainmentFeature, eContainmentFeature, eContains, eDerivedOperationID, eDerivedOperationID, eDynamicBasicRemoveFromContainer, eDynamicGet, eDynamicGet, eDynamicGet, eDynamicInverseAdd, eDynamicInverseAdd, eDynamicInverseRemove, eDynamicInverseRemove, eDynamicInvoke, eDynamicInvoke, eDynamicIsSet, eDynamicIsSet, eDynamicSet, eDynamicSet, eDynamicSet, eDynamicUnset, eDynamicUnset, eDynamicUnset, eGet, eGet, eGet, eInverseAdd, eInverseAdd, eInverseRemove, eInverseRemove, eInvocationDelegate, eInvoke, eInvoke, eIsSet, eIsSet, eObjectForURIFragmentSegment, eOpenGet, eOpenIsSet, eOpenSet, eOpenUnset, eRemoveVirtualValue, eResolveProxy, eResource, eSet, eSetStore, eSetting, eSettingDelegate, eSetVirtualIndexBits, eSetVirtualValue, eSetVirtualValues, eStaticOperationCount, eUnset, eUnset, eURIFragmentSegment, eVirtualBitCount, eVirtualGet, eVirtualGet, eVirtualIndex, eVirtualIndexBits, eVirtualIsSet, eVirtualSet, eVirtualUnset, eVirtualValue, eVirtualValueseNotificationRequired, eNotifyclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetBasename, getExtension, getFolder, getName, getPath, setBasename, setExtension, trimExtensioncdoConflict, cdoDirectResource, cdoHistory, cdoID, cdoInvalid, cdoLockState, cdoPermission, cdoPrefetch, cdoReadLock, cdoReload, cdoResource, cdoRevision, cdoRevision, cdoState, cdoView, cdoWriteLock, cdoWriteOptioneAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnseteAdapters, eDeliver, eNotify, eSetDelivereBasicRemoveFromContainer, eDerivedOperationID, eGet, eInverseAdd, eInverseRemove, eInvoke, eIsSet, eNotificationRequired, eObjectForURIFragmentSegment, eProxyURI, eResolveProxy, eSetProxyURI, eSetStore, eSetting, eUnset, eURIFragmentSegmentpublic CDOResourceImpl(URI initialURI)
protected CDOResourceImpl()
protected EClass eStaticClass()
eStaticClass in class CDOResourceLeafImplpublic Resource.Internal eDirectResource()
eDirectResource in interface InternalEObjecteDirectResource in class CDOObjectImplpublic int eDerivedStructuralFeatureID(int baseFeatureID,
java.lang.Class<?> baseClass)
eDerivedStructuralFeatureID in interface InternalEObjecteDerivedStructuralFeatureID in class BasicEObjectImplpublic int eBaseStructuralFeatureID(int derivedFeatureID,
java.lang.Class<?> baseClass)
eBaseStructuralFeatureID in interface InternalEObjecteBaseStructuralFeatureID in class BasicEObjectImplpublic boolean isRoot()
isRoot in interface CDOResourceNodepublic void setRoot(boolean root)
public ResourceSet getResourceSet()
getResourceSet in interface CDOResourcegetResourceSet in interface ResourceCDOResource.setResourceSet(ResourceSet),
EresourcePackage.getCDOResource_ResourceSet()public void setResourceSet(ResourceSet newResourceSet)
setResourceSet in interface CDOResourcenewResourceSet - the new value of the 'Resource Set' attribute.CDOResource.getResourceSet()public URI getURIGen()
public URI getURI()
getURI in interface CDOResourcegetURI in interface CDOResourceNodegetURI in interface ResourcegetURI in class CDOResourceNodeImplCDOResource.setURI(URI),
EresourcePackage.getCDOResource_URI()public void recacheURIs()
recacheURIs in class CDOResourceNodeImplpublic void setURIGen(URI newURI)
public void setURI(URI newURI)
setURI in interface CDOResourcesetURI in interface ResourcenewURI - the new value of the 'URI' attribute.CDOResource.getURI()public void setPath(java.lang.String newPath)
CDOResourceNodeImplsetPath in interface CDOResourceNodesetPath in class CDOResourceNodeImplnewPath - the new value of the 'Path' attribute.CDOResourceNode.getPath()public void setFolder(CDOResourceFolder newFolder)
CDOResourceNodeImplsetFolder in interface CDOResourceNodesetFolder in class CDOResourceNodeImplnewFolder - the new value of the 'Folder' container reference.CDOResourceNode.getFolder()public void setName(java.lang.String newName)
CDOResourceNodeImplsetName in interface CDOResourceNodesetName in class CDOResourceNodeImplnewName - the new value of the 'Name' attribute.CDOResourceNode.getName()public java.lang.Object eGet(int featureID,
boolean resolve,
boolean coreType)
eGet in interface InternalEObjecteGet in class CDOResourceNodeImplpublic void eSet(int featureID,
java.lang.Object newValue)
eSet in interface InternalEObjecteSet in class CDOResourceNodeImplpublic EList<EObject> getContents()
getContents in interface CDOResourcegetContents in interface ResourceEresourcePackage.getCDOResource_Contents()public void cdoInternalPostDetach(boolean remote)
CDOObjectImplCDOObjectImpl.cdoStore(). CDOObjectImpl.eStore() will redirect
you to the transient data.cdoInternalPostDetach in interface InternalCDOObjectcdoInternalPostDetach in class CDOObjectImplpublic boolean isModified()
isModified in interface CDOResourceisModified in interface ResourceCDOResource.setModified(boolean),
EresourcePackage.getCDOResource_Modified()public void setModified(boolean newModified)
setModified in interface CDOResourcesetModified in interface ResourcenewModified - the new value of the 'Modified' attribute.CDOResource.isModified()public boolean isLoaded()
isLoaded in interface CDOResourceisLoaded in interface ResourceEresourcePackage.getCDOResource_Loaded()public boolean isTrackingModification()
isTrackingModification in interface CDOResourceisTrackingModification in interface ResourceCDOResource.setTrackingModification(boolean),
EresourcePackage.getCDOResource_TrackingModification()public void setTrackingModificationGen(boolean newTrackingModification)
public void setTrackingModification(boolean newTrackingModification)
setTrackingModification in interface CDOResourcesetTrackingModification in interface ResourcenewTrackingModification - the new value of the 'Tracking Modification' attribute.CDOResource.isTrackingModification()public EList<Resource.Diagnostic> getErrors()
getErrors in interface CDOResourcegetErrors in interface ResourceEresourcePackage.getCDOResource_Errors()public EList<Resource.Diagnostic> getWarnings()
getWarnings in interface CDOResourcegetWarnings in interface ResourceEresourcePackage.getCDOResource_Warnings()public long getTimeStamp()
getTimeStamp in interface CDOResourcegetTimeStamp in interface ResourceCDOResource.setTimeStamp(long),
EresourcePackage.getCDOResource_TimeStamp()public void setTimeStamp(long newTimeStamp)
setTimeStamp in interface CDOResourcesetTimeStamp in interface ResourcenewTimeStamp - the new value of the 'Time Stamp' attribute.CDOResource.getTimeStamp()public TreeIterator<EObject> getAllContents()
getAllContents in interface ResourceResourceImpl.getAllContents()public EObject getEObject(java.lang.String uriFragment)
Note: This resource is not actually used to lookup the resulting object in CDO. Only the CDOView is used for this lookup! This means that this resource can be used to resolve any fragment with a CDOID of the associated CDOView.
getEObject in interface Resourcepublic java.util.Map<java.lang.String,EObject> getIntrinsicIDToEObjectMap()
value
of its ID feature.setIntrinsicIDToEObjectMap(java.util.Map<java.lang.String, org.eclipse.emf.ecore.EObject>)public void setIntrinsicIDToEObjectMap(java.util.Map<java.lang.String,EObject> intrinsicIDToEObjectMap)
null.
The map will be lazily loaded by the getEObjectByID method.
It is up to the client to clear the cache when it becomes invalid,
e.g., when the ID of a previously mapped EObject is changed.intrinsicIDToEObjectMap - the new map or null.getIntrinsicIDToEObjectMap()protected EObject getEObjectByID(java.lang.String id)
protected TreeIterator<EObject> getAllProperContents(java.util.List<EObject> contents)
public java.lang.String getURIFragment(EObject object)
getURIFragment in interface Resourcepublic boolean isLoading()
isLoading in interface Resource.Internalpublic void cdoInternalLoading(EObject object)
InternalCDOResourceobject contained within it is being loaded.cdoInternalLoading in interface InternalCDOResourcepublic void cdoInternalLoadingDone(EObject object)
InternalCDOResourceobject contained within it has finished being loaded.cdoInternalLoadingDone in interface InternalCDOResourcepublic void cdoInternalPreLoad()
cdoInternalPreLoad in interface InternalCDOLoadablecdoInternalPreLoad in class CDOObjectImplpublic void load(java.io.InputStream inputStream,
java.util.Map<?,?> options)
throws java.io.IOException
public void load(java.util.Map<?,?> options)
throws java.io.IOException
public void save(java.util.Map<?,?> options)
throws java.io.IOException
public void save(java.io.OutputStream outputStream,
java.util.Map<?,?> options)
throws java.io.IOException
public void delete(java.util.Map<?,?> options)
throws java.io.IOException
delete in interface CDOResourceNodedelete in interface Resourcejava.io.IOExceptionpublic void attached(EObject object)
attached in interface Resource.Internalpublic void detached(EObject object)
detached in interface Resource.Internalpublic NotificationChain basicSetResourceSet(ResourceSet resourceSet, NotificationChain notifications)
basicSetResourceSet in interface Resource.InternalResourceImpl.basicSetResourceSet(ResourceSet, NotificationChain)public boolean isExisting()
isExisting in interface CDOResourceprotected void setExisting(boolean existing)
protected EList<?> createList(EStructuralFeature eStructuralFeature)
createList in class CDOObjectImplpublic java.lang.String toString(java.lang.String string)
toString in class CDOResourceNodeImplpublic java.lang.String getID(EObject eObject)
getID in interface XMLResourcepublic void setID(EObject eObject, java.lang.String id)
setID in interface XMLResourcepublic boolean useZip()
useZip in interface XMLResourcepublic void setUseZip(boolean useZip)
setUseZip in interface XMLResourcepublic java.lang.String getPublicId()
getPublicId in interface XMLResourcepublic java.lang.String getSystemId()
getSystemId in interface XMLResourcepublic DOMHelper getDOMHelper()
getDOMHelper in interface XMLResourcepublic java.util.Map<java.lang.Object,java.lang.Object> getDefaultLoadOptions()
getDefaultLoadOptions in interface XMLResourcepublic java.util.Map<java.lang.Object,java.lang.Object> getDefaultSaveOptions()
getDefaultSaveOptions in interface XMLResourcepublic java.util.Map<EObject,AnyType> getEObjectToExtensionMap()
getEObjectToExtensionMap in interface XMLResourcepublic java.lang.String getEncoding()
getEncoding in interface XMLResourcepublic void setEncoding(java.lang.String encoding)
setEncoding in interface XMLResourcepublic java.lang.String getXMLVersion()
getXMLVersion in interface XMLResourcepublic void setXMLVersion(java.lang.String version)
setXMLVersion in interface XMLResourcepublic void setDoctypeInfo(java.lang.String publicId,
java.lang.String systemId)
setDoctypeInfo in interface XMLResourcepublic void load(org.w3c.dom.Node node,
java.util.Map<?,?> options)
throws java.io.IOException
load in interface XMLResourcejava.io.IOExceptionpublic void load(org.xml.sax.InputSource inputSource,
java.util.Map<?,?> options)
throws java.io.IOException
load in interface XMLResourcejava.io.IOExceptionpublic void save(java.io.Writer writer,
java.util.Map<?,?> options)
throws java.io.IOException
save in interface XMLResourcejava.io.IOExceptionpublic org.w3c.dom.Document save(org.w3c.dom.Document document,
java.util.Map<?,?> options,
DOMHandler handler)
save in interface XMLResource@Deprecated public java.util.Map<java.lang.String,EObject> getIDToEObjectMap()
getIDToEObjectMap in interface XMLResource@Deprecated public java.util.Map<EObject,java.lang.String> getEObjectToIDMap()
getEObjectToIDMap in interface XMLResourceCopyright (c) 2004-2019 Eike Stepper (Loehne, Germany) and others.
All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html