|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.emf.emfstore.internal.client.properties.PropertyManager
public final class PropertyManager
This class is responsible for the modification of EMFStore based properties.
There are two kinds of properties, local and shared ones.
"foo"
has nothing in common with a local
property called "foo"
.
Constructor Summary | |
---|---|
PropertyManager(ProjectSpace projectSpace)
PropertyManager constructor. |
Method Summary | |
---|---|
EMFStoreProperty |
getLocalProperty(String propertyName)
Retrieves a local property. |
String |
getLocalStringProperty(String propertyName)
Retrieves a local string property. |
EMFStoreProperty |
getSharedProperty(String propertyName)
Retrieves the shared property with the given name. |
String |
getSharedStringProperty(String propertyName)
Retrieves a shared string property. |
void |
setLocalProperty(String propertyName,
org.eclipse.emf.ecore.EObject value)
Set a local property. |
void |
setLocalStringProperty(String propertyName,
String value)
Sets a local string property. |
void |
setSharedProperty(String propertyName,
org.eclipse.emf.ecore.EObject value)
Set a shared property. |
void |
setSharedStringProperty(String propertyName,
String string)
Set a shared string property. |
void |
setSharedVersionedProperty(String propertyName,
org.eclipse.emf.ecore.EObject value)
Sets the property with the given name to the given value. |
void |
setSharedVersionedStringProperty(String propertyName,
String string)
Set a versioned shared string property. |
void |
synchronizeSharedProperties()
Transmit changed shared properties to the server. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PropertyManager(ProjectSpace projectSpace)
projectSpace
- the project space that should get managed by the property
managerMethod Detail |
---|
public void setLocalProperty(String propertyName, org.eclipse.emf.ecore.EObject value)
propertyName
- the name of the local propertyvalue
- the actual value of the propertypublic void setLocalStringProperty(String propertyName, String value)
propertyName
- the name of the local propertyvalue
- the value of the local propertypublic EMFStoreProperty getLocalProperty(String propertyName)
propertyName
- the name of the local property
public String getLocalStringProperty(String propertyName)
propertyName
- the name of a local string property
null
public void setSharedVersionedProperty(String propertyName, org.eclipse.emf.ecore.EObject value)
propertyName
- the name of the property to be setvalue
- the actual value of the propertypublic void setSharedStringProperty(String propertyName, String string)
propertyName
- the name of the shared propertystring
- the string value that should be setpublic void setSharedVersionedStringProperty(String propertyName, String string)
propertyName
- the name of the shared propertystring
- the string value that should be setpublic void setSharedProperty(String propertyName, org.eclipse.emf.ecore.EObject value)
propertyName
- the name of the shared propertyvalue
- the value of the shared propertypublic EMFStoreProperty getSharedProperty(String propertyName)
propertyName
- the name of the shared property
public String getSharedStringProperty(String propertyName)
propertyName
- of the shared property as String
null
public void synchronizeSharedProperties() throws AccessControlException, ESException, EMFStorePropertiesOutdatedException
AccessControlException
- if the caller has no write access to the project space
ESException
- if the project space being manipulated is not yet shared or
an error occurs within EMFStore
EMFStorePropertiesOutdatedException
- if any changed property is outdated
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |