|
Rational Developer for Power Systems Software V7.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ibm.etools.iseries.projects.core.IBMiProperties
public class IBMiProperties
Provides access to the metadata for IBM i Project resources
Nested Class Summary | |
---|---|
static class |
IBMiProperties.SharedScope
The scope to which this property is shared |
Field Summary | |
---|---|
static QualifiedName |
_sessionKey
|
Constructor Summary | |
---|---|
protected |
IBMiProperties(IResource resource,
IBMiPropertiesType type)
Wrapper a set of IBM i properties for the given local resource for an IBM i object of the given type. |
Method Summary | |
---|---|
void |
clearCache()
Removes this object from the session properties for the resource so that the next reference to the properties for this resource will create a new properties object. |
static IBMiProperties |
getMemberProperties(IFile file)
Get the instance of the IBMiProperties file for this source physical member |
static IBMiProperties |
getObjectProperties(IFile file)
Get the instance of the IBMiProperties file for this IBM i object |
static IBMiProperties |
getProjectProperties(IProject project)
Get the instance of the IBMiProperties file for this project |
static IBMiProperties |
getProperties(IResource resource)
Given a workspace resource compute the corresponding IBMiProperties |
static IBMiProperties |
getProperties(IWorkspace workspace,
String path)
Given a workspace relative path and a reference to the workspace itself compute the IBMiProperties for the corresponding IResource |
static IFile |
getPropertiesIFile(IResource resource)
Returns the IFile (handle) of the team properties file associated with the given IResource. |
String |
getProperty(QualifiedName key)
Retrieves the string that is the value of the given key. |
static IBMiPropertiesType |
getResourceType(IResource resource)
Gets the properties type object for a given resource by determining the kind i resource that the given eclipse resource represents. |
IBMiProperties.SharedScope |
getSharedScope(QualifiedName key)
How widely shared is the property for the given key |
static IBMiProperties |
getSrcpfProperties(IFolder folder)
Get the instance of the IBMiProperties file for this source physical |
IBMiPropertiesType |
getType()
|
boolean |
hasFolderForSharedProperties()
Tests whether the .properties file containing the team shared metadata exists |
boolean |
isDirty()
Tests whether this properties model needs to be saved or not. returns true only if any of the predefined properties have changed since the last save. |
boolean |
isPredefinedProperty(QualifiedName key)
Is this a property defined by the i Project support |
void |
renameResource(IPath movedFromPath,
IResource movedToResource)
Notifies property model that the associated resource has moved from one resource name to another |
void |
save(IProgressMonitor monitor)
Saves the shared properties to their persistent format. |
void |
setProperty(QualifiedName key,
String value)
Sets the value of a property. |
static void |
updatePropertiesResourceReference(IResource res)
Updates the resource resource reference for the property model associated with this resource. |
void |
updateResourceReference(IResource res)
Update the resource resource reference for this property model. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final QualifiedName _sessionKey
Constructor Detail |
---|
protected IBMiProperties(IResource resource, IBMiPropertiesType type)
resource
- - the local IResource
that these properties describetype
- - the IBMiPropertiesType
the describes the IBM i object that
these properties are for.Method Detail |
---|
public static IFile getPropertiesIFile(IResource resource)
Used for testing only.
resource
-
IResource
public static IBMiPropertiesType getResourceType(IResource resource)
resource
- The resource to return the properties for.
public static IBMiProperties getProperties(IResource resource)
resource
- - the IResource
that we are looking for
properties for
IBMiProperties
that corresponds to the given IResource
or null if no such Resource can be found or it is not an IBMi project resource.public static IBMiProperties getProjectProperties(IProject project)
project
-
public static IBMiProperties getSrcpfProperties(IFolder folder)
public static IBMiProperties getObjectProperties(IFile file)
public static IBMiProperties getMemberProperties(IFile file)
public static IBMiProperties getProperties(IWorkspace workspace, String path)
workspace
- a reference to the Eclipse workspacepath
- relative to the workspace of the IBMi resource
we want the properties for
IBMiProperties
that corresponds to the given workspace relative path
or null if no such Resource can be found or it is not an IBMi project resource.public static void updatePropertiesResourceReference(IResource res)
public String getProperty(QualifiedName key)
key
- the name of the property. This is a qualified name. The qualifier usually takes the form of the plug-in
or package name to which the property is relevant.
public void setProperty(QualifiedName key, String value)
key
- the key of the property to setvalue
- the new value of that propertypublic void save(IProgressMonitor monitor)
monitor
- - IProgressMonitor
to monitor the progress of
the save. May be null.public IBMiPropertiesType getType()
public boolean isPredefinedProperty(QualifiedName key)
key
- - the QualifiedName
that refers to the key of the property of interest
public IBMiProperties.SharedScope getSharedScope(QualifiedName key)
IBMiProperties.SharedScope
enumpublic boolean isDirty()
public boolean hasFolderForSharedProperties()
public void renameResource(IPath movedFromPath, IResource movedToResource)
public void clearCache()
public void updateResourceReference(IResource res)
|
Rational Developer for Power Systems Software V7.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |