TPTP 4.5.0 Platform Project
Public API Specification

org.eclipse.hyades.models.common.datapool.impl
Class Common_DatapoolFactoryImpl

java.lang.Object
  extended by org.eclipse.emf.common.notify.impl.BasicNotifierImpl
      extended by org.eclipse.emf.ecore.impl.BasicEObjectImpl
          extended by org.eclipse.emf.ecore.impl.EObjectImpl
              extended by org.eclipse.emf.ecore.impl.FlatEObjectImpl
                  extended by org.eclipse.emf.ecore.impl.EModelElementImpl
                      extended by org.eclipse.emf.ecore.impl.EFactoryImpl
                          extended by org.eclipse.hyades.models.common.datapool.impl.Common_DatapoolFactoryImpl
All Implemented Interfaces:
org.eclipse.emf.common.notify.Notifier, org.eclipse.emf.ecore.EFactory, org.eclipse.emf.ecore.EModelElement, org.eclipse.emf.ecore.EObject, org.eclipse.emf.ecore.InternalEObject, IDatapoolFactory, Common_DatapoolFactory

public class Common_DatapoolFactoryImpl
extends org.eclipse.emf.ecore.impl.EFactoryImpl
implements Common_DatapoolFactory

An implementation of the model Factory.

Generated

Nested Class Summary
 
Nested classes/interfaces inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl
org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EAdapterList
 
Nested classes/interfaces inherited from interface org.eclipse.emf.ecore.InternalEObject
org.eclipse.emf.ecore.InternalEObject.EStore
 
Field Summary
static java.lang.String copyright
           
 
Fields inherited from class org.eclipse.emf.ecore.impl.EObjectImpl
ELAST_EOBJECT_FLAG
 
Fields inherited from interface org.eclipse.hyades.models.common.datapool.Common_DatapoolFactory
eINSTANCE
 
Fields inherited from interface org.eclipse.emf.ecore.InternalEObject
EOPPOSITE_FEATURE_BASE
 
Constructor Summary
Common_DatapoolFactoryImpl()
          Creates an instance of the factory
 
Method Summary
 void close(IDatapoolIterator iterator)
          Return the iterator to the factory so that it can be properly destroyed.
 IDatapool constructDatapool()
          Constructs and returns an empty IDataPool
 java.lang.String convertDPLRoleToString(org.eclipse.emf.ecore.EDataType eDataType, java.lang.Object instanceValue)
           
 java.lang.String convertToString(org.eclipse.emf.ecore.EDataType eDataType, java.lang.Object instanceValue)
           
 org.eclipse.emf.ecore.EObject create(org.eclipse.emf.ecore.EClass eClass)
           
 IDatapoolSuggestedType createDatapoolSuggestedType()
           
 DPLCell createDPLCell()
           
 DPLDatapool createDPLDatapool()
           
 DPLDatapoolSpec createDPLDatapoolSpec()
           
 DPLEquivalenceClass createDPLEquivalenceClass()
           
 DPLRecord createDPLRecord()
           
 DPLRole createDPLRoleFromString(org.eclipse.emf.ecore.EDataType eDataType, java.lang.String initialValue)
           
 DPLVariable createDPLVariable()
           
 java.lang.Object createFromString(org.eclipse.emf.ecore.EDataType eDataType, java.lang.String initialValue)
           
 Common_DatapoolPackage getCommon_DatapoolPackage()
           
static Common_DatapoolPackage getPackage()
          Deprecated.  
static Common_DatapoolFactory init()
          Creates the default factory implementation
 IDatapool load(java.io.File dpFile, boolean sharedInstance)
          Load the datapool from the specified file.
 IDatapool loadForEdit(java.io.File dpFile, boolean sharedInstance)
          Load the datapool from the specified file.
 IDatapoolIterator open(IDatapool datapool, java.lang.String iteratorExtensionId)
          Return an iterator instance implemented by the extension with given extensionId.
 void save(IDatapool datapool)
          Persists the specified instance of a datapool.
 void saveAs(IDatapool datapool, java.io.File dpFile)
          Persists the specified instance of a datapool to the specified file.
 void unload(IDatapool datapool)
          Removes a reference to an instance of a datapool.
 void unload(IDatapool datapool)
          Removes a reference to an instance of a datapool.
 
Methods inherited from class org.eclipse.emf.ecore.impl.EFactoryImpl
basicSetEPackage, eGet, eInverseAdd, eInverseRemove, eIsSet, eSet, eUnset, getEPackage, setEPackage
 
Methods inherited from class org.eclipse.emf.ecore.impl.EModelElementImpl
eObjectForURIFragmentSegment, eURIFragmentSegment, getEAnnotation, getEAnnotations
 
Methods inherited from class org.eclipse.emf.ecore.impl.FlatEObjectImpl
eContents, eCrossReferences, eIsProxy, eProxyURI, eSetProxyURI
 
Methods inherited from class org.eclipse.emf.ecore.impl.EObjectImpl
eAdapters, eClass, eContainerFeatureID, eDeliver, eInternalContainer, eSetClass, eSetDeliver
 
Methods inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl
eAllContents, eBaseStructuralFeatureID, eBasicRemoveFromContainer, eBasicRemoveFromContainerFeature, eBasicSetContainer, eContainer, eContainingFeature, eContainmentFeature, eContains, eDerivedStructuralFeatureID, eDerivedStructuralFeatureID, eDirectResource, eDynamicBasicRemoveFromContainer, eDynamicGet, eDynamicGet, eDynamicInverseAdd, eDynamicInverseRemove, eDynamicIsSet, eDynamicIsSet, eDynamicSet, eDynamicSet, eDynamicUnset, eDynamicUnset, eGet, eGet, eGet, eInternalResource, eInverseAdd, eInverseRemove, eIsSet, eOpenGet, eOpenIsSet, eOpenSet, eOpenUnset, eResolveProxy, eResource, eSet, eSetResource, eSetStore, eSetting, eStore, eUnset, eVirtualGet, eVirtualGet, eVirtualIsSet, eVirtualSet, eVirtualUnset, toString
 
Methods inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl
eNotificationRequired, eNotify
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.emf.ecore.EFactory
getEPackage, setEPackage
 
Methods inherited from interface org.eclipse.emf.ecore.EModelElement
getEAnnotation, getEAnnotations
 
Methods inherited from interface org.eclipse.emf.ecore.EObject
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eIsProxy, eIsSet, eResource, eSet, eUnset
 
Methods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
 
Methods inherited from interface org.eclipse.emf.ecore.InternalEObject
eNotificationRequired
 

Field Detail

copyright

public static final java.lang.String copyright

See Also:
Constant Field Values
Generated
Constructor Detail

Common_DatapoolFactoryImpl

public Common_DatapoolFactoryImpl()
Creates an instance of the factory.

Generated
Method Detail

init

public static Common_DatapoolFactory init()
Creates the default factory implementation.

Generated

create

public org.eclipse.emf.ecore.EObject create(org.eclipse.emf.ecore.EClass eClass)

Specified by:
create in interface org.eclipse.emf.ecore.EFactory
Overrides:
create in class org.eclipse.emf.ecore.impl.EFactoryImpl
Generated

createFromString

public java.lang.Object createFromString(org.eclipse.emf.ecore.EDataType eDataType,
                                         java.lang.String initialValue)

Specified by:
createFromString in interface org.eclipse.emf.ecore.EFactory
Overrides:
createFromString in class org.eclipse.emf.ecore.impl.EFactoryImpl
Generated

convertToString

public java.lang.String convertToString(org.eclipse.emf.ecore.EDataType eDataType,
                                        java.lang.Object instanceValue)

Specified by:
convertToString in interface org.eclipse.emf.ecore.EFactory
Overrides:
convertToString in class org.eclipse.emf.ecore.impl.EFactoryImpl
Generated

createDPLDatapoolSpec

public DPLDatapoolSpec createDPLDatapoolSpec()

Specified by:
createDPLDatapoolSpec in interface Common_DatapoolFactory
Returns:
a new object of class 'DPL Datapool Spec'.
Generated

createDPLDatapool

public DPLDatapool createDPLDatapool()

Specified by:
createDPLDatapool in interface Common_DatapoolFactory
Returns:
a new object of class 'DPL Datapool'.
Generated

createDPLRoleFromString

public DPLRole createDPLRoleFromString(org.eclipse.emf.ecore.EDataType eDataType,
                                       java.lang.String initialValue)

Generated

convertDPLRoleToString

public java.lang.String convertDPLRoleToString(org.eclipse.emf.ecore.EDataType eDataType,
                                               java.lang.Object instanceValue)

Generated

createDPLEquivalenceClass

public DPLEquivalenceClass createDPLEquivalenceClass()

Specified by:
createDPLEquivalenceClass in interface Common_DatapoolFactory
Returns:
a new object of class 'DPL Equivalence Class'.
Generated

createDPLRecord

public DPLRecord createDPLRecord()

Specified by:
createDPLRecord in interface Common_DatapoolFactory
Returns:
a new object of class 'DPL Record'.
Generated

createDPLCell

public DPLCell createDPLCell()

Specified by:
createDPLCell in interface Common_DatapoolFactory
Returns:
a new object of class 'DPL Cell'.
Generated

createDPLVariable

public DPLVariable createDPLVariable()

Specified by:
createDPLVariable in interface Common_DatapoolFactory
Returns:
a new object of class 'DPL Variable'.
Generated

getCommon_DatapoolPackage

public Common_DatapoolPackage getCommon_DatapoolPackage()

Specified by:
getCommon_DatapoolPackage in interface Common_DatapoolFactory
Returns:
the package supported by this factory.
Generated

getPackage

public static Common_DatapoolPackage getPackage()
Deprecated. 

Generated

loadForEdit

public IDatapool loadForEdit(java.io.File dpFile,
                             boolean sharedInstance)
Load the datapool from the specified file. If a sharedInstance is requested then the cache of other datapools that have been opened is checked for an existing copy of the datapool. Note that modifying a shared instance of the datapool may effect other uses of the datapool and should only be done in a confined execution environment.

Parameters:
dpFile - The datapool file name.
sharedInstance - Available for sharing instances of the datapool, which can save significantly on datapool loading overhead.
See Also:
unload(IDatapool)

unload

public void unload(IDatapool datapool)
Removes a reference to an instance of a datapool. If the datapool is shared the reference count is reduced. Once all references to a datapool have been unloaded the datapool instance will be made available to garbage collection.

Parameters:
datapool - The datapool instance being unloaded.
See Also:
load(java.io.File,boolean)

save

public void save(IDatapool datapool)
Persists the specified instance of a datapool. The file used is the same as the file from which the datapool was loaded. If the datapool was constructed from scratch the saveAs method should be used to save the file.

Parameters:
datapool - The datapool instance being saved.
See Also:
load(java.io.File,boolean), unload(IDatapool), saveAs(IDatapool,java.io.File)

saveAs

public void saveAs(IDatapool datapool,
                   java.io.File dpFile)
Persists the specified instance of a datapool to the specified file.

Parameters:
datapool - The datapool instance being saved.
dpFile - The file to which the datapool is to be saved.
See Also:
load(java.io.File,boolean), unload(IDatapool), save(IDatapool)

load

public IDatapool load(java.io.File dpFile,
                      boolean sharedInstance)
Load the datapool from the specified file. If a sharedInstance is requested then the cache of other datapools that have been opened is checked for an existing copy of the datapool. Note that modifying a shared instance of the datapool may effect other uses of the datapool and should only be done in a confined execution environment.

Specified by:
load in interface IDatapoolFactory
Parameters:
dpFile - The datapool file name.
sharedInstance - Available for sharing instances of the datapool, which can save significantly on datapool loading overhead.
See Also:
unload(IDatapool)

unload

public void unload(IDatapool datapool)
Removes a reference to an instance of a datapool. If the datapool is shared the reference count is reduced. Once all references to a datapool have been unloaded the datapool instance may be made available to garbage collection.

Specified by:
unload in interface IDatapoolFactory
Parameters:
datapool - The datapool instance being unloaded.
See Also:
load(java.io.File,boolean)

open

public IDatapoolIterator open(IDatapool datapool,
                              java.lang.String iteratorExtensionId)
Return an iterator instance implemented by the extension with given extensionId.

Specified by:
open in interface IDatapoolFactory
Parameters:
datapool - The datapool instance being iterated over.
See Also:
close(IDatapoolIterator)

close

public void close(IDatapoolIterator iterator)
Return the iterator to the factory so that it can be properly destroyed. Note that if shared the iterator will not be destructed until all uses have been accounted for.

Specified by:
close in interface IDatapoolFactory
Parameters:
iterator - The iterator being freed.
See Also:
open(IDatapool,String)

createDatapoolSuggestedType

public IDatapoolSuggestedType createDatapoolSuggestedType()

constructDatapool

public IDatapool constructDatapool()
Constructs and returns an empty IDataPool


TPTP 4.5.0 Platform Project
Public API Specification