Class StateImpl
- java.lang.Object
-
- org.eclipse.emf.common.notify.impl.BasicNotifierImpl
-
- org.eclipse.emf.ecore.impl.BasicEObjectImpl
-
- org.eclipse.emf.ecore.impl.EObjectImpl
-
- org.enterprisedomain.classmaker.impl.ItemImpl
-
- org.enterprisedomain.classmaker.impl.StateImpl
-
- All Implemented Interfaces:
org.eclipse.core.runtime.jobs.ISchedulingRule
,org.eclipse.emf.common.notify.Notifier
,org.eclipse.emf.ecore.EObject
,org.eclipse.emf.ecore.InternalEObject
,Item
,State
public class StateImpl extends ItemImpl implements State
An implementation of the model object ' State'.The following features are implemented:
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
StateImpl.MakingCompletionListener
class
StateImpl.StateAdapter
-
Nested classes/interfaces inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl
org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EAdapterList<E extends java.lang.Object & org.eclipse.emf.common.notify.Adapter>, org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EObservableAdapterList, org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EScannableAdapterList
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(java.lang.String filepattern)
Item
basicGetParent()
Project
basicGetProject()
Revision
basicGetRevision()
Strategy
basicGetStrategy()
org.eclipse.emf.common.notify.NotificationChain
basicSetStrategy(Strategy newStrategy, org.eclipse.emf.common.notify.NotificationChain msgs)
void
build(org.eclipse.core.runtime.IProgressMonitor monitor)
void
checkout()
void
checkout(java.lang.String commitId, boolean forced)
java.lang.String
commit()
boolean
contains(org.eclipse.core.runtime.jobs.ISchedulingRule otherRule)
void
copyModel(Item from)
void
delete(org.eclipse.core.runtime.IProgressMonitor monitor)
java.lang.Object
eGet(int featureID, boolean resolve, boolean coreType)
org.eclipse.emf.common.notify.NotificationChain
eInverseAdd(org.eclipse.emf.ecore.InternalEObject otherEnd, int featureID, org.eclipse.emf.common.notify.NotificationChain msgs)
org.eclipse.emf.common.notify.NotificationChain
eInverseRemove(org.eclipse.emf.ecore.InternalEObject otherEnd, int featureID, org.eclipse.emf.common.notify.NotificationChain msgs)
boolean
eIsSet(int featureID)
void
eSet(int featureID, java.lang.Object newValue)
void
eUnset(int featureID)
org.eclipse.emf.ecore.EObject
find(org.eclipse.emf.ecore.EObject eObject, Stage stage)
java.lang.String
getCommitId()
org.eclipse.emf.common.util.EList<java.lang.String>
getCommitIds()
org.eclipse.emf.common.util.EMap<StageQualifier,Customizer>
getCustomizers()
java.lang.String
getDeployableUnitName()
java.lang.String
getEditDeployableUnitName()
java.lang.String
getEditorDeployableUnitName()
java.lang.String
getEditorPluginClassName()
java.lang.String
getEditPluginClassName()
java.lang.String
getJobFamily()
java.lang.String
getModelName()
java.lang.String
getPackageClassName()
java.lang.String
getProjectName()
org.eclipse.emf.common.util.EList<java.lang.String>
getRequiredPlugins()
org.eclipse.emf.ecore.resource.Resource
getResource()
Revision
getRevision()
org.eclipse.emf.common.util.EMap<StageQualifier,Customizer>
getStateCustomizers()
Strategy
getStrategy()
long
getTimestamp()
java.lang.String
initialize(boolean commit)
boolean
isConflicting(org.eclipse.core.runtime.jobs.ISchedulingRule otherRule)
boolean
isEdit()
boolean
isEditor()
boolean
isMaking()
void
load(boolean create)
Initialize and load resource.void
loadResource(org.eclipse.emf.common.util.URI modelURI, boolean create, boolean loadOnDemand)
java.lang.String
make(org.eclipse.core.runtime.IProgressMonitor monitor)
void
saveResource()
void
setCommitId(java.lang.String newCommitId)
void
setDeployableUnitName(java.lang.String newDeployableUnitName)
void
setEdit(boolean newEdit)
void
setEditDeployableUnitName(java.lang.String newDeployableUnitName)
void
setEditor(boolean newEditor)
void
setEditorDeployableUnitName(java.lang.String newDeployableUnitName)
void
setEditorPluginClassName(java.lang.String newEditorPluginClassName)
void
setEditPluginClassName(java.lang.String newEditPluginClassName)
void
setJobFamily(java.lang.String newJobFamily)
void
setMaking(boolean newMaking)
void
setPackageClassName(java.lang.String newPackageClassName)
void
setParent(Item newParent)
void
setProject(Project newProject)
void
setProjectName(java.lang.String newProjectName)
void
setProjectVersion(org.eclipse.core.runtime.IProgressMonitor monitor)
void
setResource(org.eclipse.emf.ecore.resource.Resource newResource)
void
setRevision(Revision newRevision)
void
setStrategy(Strategy newStrategy)
void
setTimestamp(long newTimestamp)
java.lang.String
toString()
-
Methods inherited from class org.enterprisedomain.classmaker.impl.ItemImpl
basicSetDomainModel, getDomainModel, getLanguage, getLocale, getParent, getPhase, getProject, setDomainModel, setLanguage, setLocale, setModelName, setPhase
-
Methods inherited from class org.eclipse.emf.ecore.impl.EObjectImpl
eAdapters, eClass, eContainerFeatureID, eDeliver, eInternalContainer, eInvoke, eIsProxy, eSetClass, eSetDeliver, eSetProxyURI
-
Methods inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl
eAllContents, eBaseStructuralFeatureID, eBasicRemoveFromContainer, eBasicRemoveFromContainerFeature, eBasicSetContainer, eContainer, eContainingFeature, eContainmentFeature, eContains, eContents, eCrossReferences, eDerivedOperationID, eDerivedOperationID, eDerivedStructuralFeatureID, eDerivedStructuralFeatureID, eDirectResource, eDynamicBasicRemoveFromContainer, eDynamicGet, eDynamicGet, eDynamicInverseAdd, eDynamicInverseRemove, eDynamicInvoke, eDynamicIsSet, eDynamicIsSet, eDynamicSet, eDynamicSet, eDynamicUnset, eDynamicUnset, eGet, eGet, eGet, eInternalResource, eInverseAdd, eInverseRemove, eInvoke, eIsSet, eObjectForURIFragmentSegment, eOpenGet, eOpenIsSet, eOpenSet, eOpenUnset, eProxyURI, eResolveProxy, eResource, eSet, eSetResource, eSetStore, eSetting, eStore, eUnset, eURIFragmentSegment, eVirtualGet, eVirtualGet, eVirtualIsSet, eVirtualSet, eVirtualUnset
-
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.EObject
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset
-
Methods inherited from interface org.enterprisedomain.classmaker.Item
getDomainModel, getLanguage, getLocale, getParent, getPhase, getProject, setDomainModel, setLanguage, setLocale, setModelName, setPhase
-
-
-
-
Method Detail
-
getPackageClassName
public java.lang.String getPackageClassName()
- Specified by:
getPackageClassName
in interfaceState
- Returns:
- the value of the 'Package Class Name' attribute.
- See Also:
State.setPackageClassName(String)
,ClassMakerPackage.getState_PackageClassName()
-
setPackageClassName
public void setPackageClassName(java.lang.String newPackageClassName)
- Specified by:
setPackageClassName
in interfaceState
- Parameters:
newPackageClassName
- the new value of the 'Package Class Name' attribute.- See Also:
State.getPackageClassName()
-
getEditPluginClassName
public java.lang.String getEditPluginClassName()
- Specified by:
getEditPluginClassName
in interfaceState
- Returns:
- the value of the 'Edit Plugin Class Name' attribute.
- See Also:
State.setEditPluginClassName(String)
,ClassMakerPackage.getState_EditPluginClassName()
-
setEditPluginClassName
public void setEditPluginClassName(java.lang.String newEditPluginClassName)
- Specified by:
setEditPluginClassName
in interfaceState
- Parameters:
newEditPluginClassName
- the new value of the 'Edit Plugin Class Name' attribute.- See Also:
State.getEditPluginClassName()
-
getEditorPluginClassName
public java.lang.String getEditorPluginClassName()
- Specified by:
getEditorPluginClassName
in interfaceState
- Returns:
- the value of the 'Editor Plugin Class Name' attribute.
- See Also:
State.setEditorPluginClassName(String)
,ClassMakerPackage.getState_EditorPluginClassName()
-
setEditorPluginClassName
public void setEditorPluginClassName(java.lang.String newEditorPluginClassName)
- Specified by:
setEditorPluginClassName
in interfaceState
- Parameters:
newEditorPluginClassName
- the new value of the 'Editor Plugin Class Name' attribute.- See Also:
State.getEditorPluginClassName()
-
getRequiredPlugins
public org.eclipse.emf.common.util.EList<java.lang.String> getRequiredPlugins()
- Specified by:
getRequiredPlugins
in interfaceState
- Returns:
- the value of the 'Required Plugins' attribute list.
- See Also:
ClassMakerPackage.getState_RequiredPlugins()
-
getTimestamp
public long getTimestamp()
- Specified by:
getTimestamp
in interfaceState
- Returns:
- the value of the 'Timestamp' attribute.
- See Also:
#setTimestamp(Date)
,org.genericdomain.EnterpriseDomainPackage#getState_Timestamp()
-
setTimestamp
public void setTimestamp(long newTimestamp)
- Specified by:
setTimestamp
in interfaceState
- Parameters:
newTimestamp
- the new value of the 'Timestamp' attribute.- See Also:
State.getTimestamp()
-
getDeployableUnitName
public java.lang.String getDeployableUnitName()
- Specified by:
getDeployableUnitName
in interfaceState
- Returns:
- the value of the 'Deployable Unit Name' attribute.
- See Also:
ClassMakerPackage.getState_DeployableUnitName()
-
setDeployableUnitName
public void setDeployableUnitName(java.lang.String newDeployableUnitName)
- Specified by:
setDeployableUnitName
in interfaceState
- Parameters:
newDeployableUnitName
- the new value of the 'Deployable Unit Name' attribute.- See Also:
State.getDeployableUnitName()
-
getEditDeployableUnitName
public java.lang.String getEditDeployableUnitName()
- Specified by:
getEditDeployableUnitName
in interfaceState
- Returns:
- the value of the 'Edit Deployable Unit Name' attribute.
- See Also:
State.setEditDeployableUnitName(String)
,ClassMakerPackage.getState_EditDeployableUnitName()
-
setEditDeployableUnitName
public void setEditDeployableUnitName(java.lang.String newDeployableUnitName)
- Specified by:
setEditDeployableUnitName
in interfaceState
- Parameters:
newDeployableUnitName
- the new value of the 'Edit Deployable Unit Name' attribute.- See Also:
State.getEditDeployableUnitName()
-
getEditorDeployableUnitName
public java.lang.String getEditorDeployableUnitName()
- Specified by:
getEditorDeployableUnitName
in interfaceState
- Returns:
- the value of the 'Editor Deployable Unit Name' attribute.
- See Also:
State.setEditorDeployableUnitName(String)
,ClassMakerPackage.getState_EditorDeployableUnitName()
-
setEditorDeployableUnitName
public void setEditorDeployableUnitName(java.lang.String newDeployableUnitName)
- Specified by:
setEditorDeployableUnitName
in interfaceState
- Parameters:
newDeployableUnitName
- the new value of the 'Editor Deployable Unit Name' attribute.- See Also:
State.getEditorDeployableUnitName()
-
basicGetParent
public Item basicGetParent()
Description copied from class:ItemImpl
- Overrides:
basicGetParent
in classItemImpl
-
setParent
public void setParent(Item newParent)
Description copied from class:ItemImpl
- Specified by:
setParent
in interfaceItem
- Overrides:
setParent
in classItemImpl
- Parameters:
newParent
- the new value of the 'Parent' reference.- See Also:
Item.getParent()
-
initialize
public java.lang.String initialize(boolean commit)
Description copied from class:ItemImpl
- Specified by:
initialize
in interfaceItem
- Overrides:
initialize
in classItemImpl
-
getModelName
public java.lang.String getModelName()
Description copied from class:ItemImpl
- Specified by:
getModelName
in interfaceItem
- Overrides:
getModelName
in classItemImpl
- Returns:
- the value of the 'Model Name' attribute.
- See Also:
Item.setModelName(String)
,ClassMakerPackage.getItem_ModelName()
-
loadResource
public void loadResource(org.eclipse.emf.common.util.URI modelURI, boolean create, boolean loadOnDemand)
-
saveResource
public void saveResource()
Description copied from interface:State
- Specified by:
saveResource
in interfaceState
-
eInverseAdd
public org.eclipse.emf.common.notify.NotificationChain eInverseAdd(org.eclipse.emf.ecore.InternalEObject otherEnd, int featureID, org.eclipse.emf.common.notify.NotificationChain msgs)
- Overrides:
eInverseAdd
in classItemImpl
-
make
public java.lang.String make(org.eclipse.core.runtime.IProgressMonitor monitor) throws java.lang.Exception
-
load
public void load(boolean create) throws org.eclipse.core.runtime.CoreException
Initialize and load resource. Parent revision should be set.
-
checkout
public void checkout(java.lang.String commitId, boolean forced)
-
add
public void add(java.lang.String filepattern) throws java.lang.Exception
-
commit
public java.lang.String commit() throws java.lang.Exception
-
eInverseRemove
public org.eclipse.emf.common.notify.NotificationChain eInverseRemove(org.eclipse.emf.ecore.InternalEObject otherEnd, int featureID, org.eclipse.emf.common.notify.NotificationChain msgs)
- Overrides:
eInverseRemove
in classItemImpl
-
basicGetProject
public Project basicGetProject()
- Specified by:
basicGetProject
in classItemImpl
-
setProject
public void setProject(Project newProject)
- Specified by:
setProject
in interfaceItem
- Overrides:
setProject
in classItemImpl
- Parameters:
newProject
- the new value of the 'Project' reference.- See Also:
Item.getProject()
-
getRevision
public Revision getRevision()
- Specified by:
getRevision
in interfaceState
- Returns:
- the value of the 'Revision' reference.
- See Also:
State.setRevision(Revision)
,ClassMakerPackage.getState_Revision()
-
basicGetRevision
public Revision basicGetRevision()
-
setRevision
public void setRevision(Revision newRevision)
- Specified by:
setRevision
in interfaceState
- Parameters:
newRevision
- the new value of the 'Revision' reference.- See Also:
State.getRevision()
-
getJobFamily
public java.lang.String getJobFamily()
- Specified by:
getJobFamily
in interfaceState
- Returns:
- the value of the 'Job Family' attribute.
- See Also:
State.setJobFamily(String)
,ClassMakerPackage.getState_JobFamily()
-
setJobFamily
public void setJobFamily(java.lang.String newJobFamily)
- Specified by:
setJobFamily
in interfaceState
- Parameters:
newJobFamily
- the new value of the 'Job Family' attribute.- See Also:
State.getJobFamily()
-
getResource
public org.eclipse.emf.ecore.resource.Resource getResource()
- Specified by:
getResource
in interfaceState
- Returns:
- the value of the 'Resource' reference.
- See Also:
State.setResource(Resource)
,ClassMakerPackage.getState_Resource()
-
setResource
public void setResource(org.eclipse.emf.ecore.resource.Resource newResource)
- Specified by:
setResource
in interfaceState
- Parameters:
newResource
- the new value of the 'Resource' reference.- See Also:
State.getResource()
-
getCommitIds
public org.eclipse.emf.common.util.EList<java.lang.String> getCommitIds()
- Specified by:
getCommitIds
in interfaceState
- Returns:
- the value of the 'Commit Ids' attribute list.
- See Also:
ClassMakerPackage.getState_CommitIds()
-
getCommitId
public java.lang.String getCommitId()
- Specified by:
getCommitId
in interfaceState
- Returns:
- the value of the 'Commit Id' attribute.
- See Also:
State.setCommitId(String)
,ClassMakerPackage.getState_CommitId()
-
setCommitId
public void setCommitId(java.lang.String newCommitId)
- Specified by:
setCommitId
in interfaceState
- Parameters:
newCommitId
- the new value of the 'Commit Id' attribute.- See Also:
State.getCommitId()
-
getCustomizers
public org.eclipse.emf.common.util.EMap<StageQualifier,Customizer> getCustomizers()
Description copied from class:ItemImpl
- Specified by:
getCustomizers
in interfaceItem
- Overrides:
getCustomizers
in classItemImpl
- Returns:
- the value of the 'Customizers' map.
- See Also:
ClassMakerPackage.getItem_Customizers()
-
getStateCustomizers
public org.eclipse.emf.common.util.EMap<StageQualifier,Customizer> getStateCustomizers()
- Specified by:
getStateCustomizers
in interfaceState
- Returns:
- the value of the 'State Customizers' map.
- See Also:
ClassMakerPackage.getState_StateCustomizers()
-
getProjectName
public java.lang.String getProjectName()
- Specified by:
getProjectName
in interfaceState
- Returns:
- the value of the 'Project Name' attribute.
- See Also:
State.setProjectName(String)
,ClassMakerPackage.getState_ProjectName()
-
setProjectName
public void setProjectName(java.lang.String newProjectName)
- Specified by:
setProjectName
in interfaceState
- Parameters:
newProjectName
- the new value of the 'Project Name' attribute.- See Also:
State.getProjectName()
-
isMaking
public boolean isMaking()
- Specified by:
isMaking
in interfaceState
- Returns:
- the value of the 'Making' attribute.
- See Also:
State.setMaking(boolean)
,ClassMakerPackage.getState_Making()
-
setMaking
public void setMaking(boolean newMaking)
- Specified by:
setMaking
in interfaceState
- Parameters:
newMaking
- the new value of the 'Making' attribute.- See Also:
State.isMaking()
-
isEdit
public boolean isEdit()
- Specified by:
isEdit
in interfaceState
- Returns:
- the value of the 'Edit' attribute.
- See Also:
State.setEdit(boolean)
,ClassMakerPackage.getState_Edit()
-
setEdit
public void setEdit(boolean newEdit)
- Specified by:
setEdit
in interfaceState
- Parameters:
newEdit
- the new value of the 'Edit' attribute.- See Also:
State.isEdit()
-
isEditor
public boolean isEditor()
- Specified by:
isEditor
in interfaceState
- Returns:
- the value of the 'Editor' attribute.
- See Also:
State.setEditor(boolean)
,ClassMakerPackage.getState_Editor()
-
setEditor
public void setEditor(boolean newEditor)
- Specified by:
setEditor
in interfaceState
- Parameters:
newEditor
- the new value of the 'Editor' attribute.- See Also:
State.isEditor()
-
getStrategy
public Strategy getStrategy()
- Specified by:
getStrategy
in interfaceState
- Returns:
- the value of the 'Strategy' reference.
- See Also:
State.setStrategy(Strategy)
,ClassMakerPackage.getState_Strategy()
,Strategy.getState()
-
basicGetStrategy
public Strategy basicGetStrategy()
-
basicSetStrategy
public org.eclipse.emf.common.notify.NotificationChain basicSetStrategy(Strategy newStrategy, org.eclipse.emf.common.notify.NotificationChain msgs)
-
setStrategy
public void setStrategy(Strategy newStrategy)
- Specified by:
setStrategy
in interfaceState
- Parameters:
newStrategy
- the new value of the 'Strategy' reference.- See Also:
State.getStrategy()
-
setProjectVersion
public void setProjectVersion(org.eclipse.core.runtime.IProgressMonitor monitor) throws org.eclipse.core.runtime.CoreException
- Specified by:
setProjectVersion
in interfaceState
- Throws:
org.eclipse.core.runtime.CoreException
-
delete
public void delete(org.eclipse.core.runtime.IProgressMonitor monitor) throws org.eclipse.core.runtime.CoreException
-
find
public org.eclipse.emf.ecore.EObject find(org.eclipse.emf.ecore.EObject eObject, Stage stage)
-
eGet
public java.lang.Object eGet(int featureID, boolean resolve, boolean coreType)
-
eSet
public void eSet(int featureID, java.lang.Object newValue)
-
eUnset
public void eUnset(int featureID)
-
eIsSet
public boolean eIsSet(int featureID)
-
contains
public boolean contains(org.eclipse.core.runtime.jobs.ISchedulingRule otherRule)
- Specified by:
contains
in interfaceorg.eclipse.core.runtime.jobs.ISchedulingRule
-
isConflicting
public boolean isConflicting(org.eclipse.core.runtime.jobs.ISchedulingRule otherRule)
- Specified by:
isConflicting
in interfaceorg.eclipse.core.runtime.jobs.ISchedulingRule
-
-