g-Eclipse
Release 1.0.0

eu.geclipse.core.model.impl
Class GenericVoProperties

java.lang.Object
  extended by PlatformObject
      extended by eu.geclipse.core.model.impl.AbstractGridElement
          extended by eu.geclipse.core.model.impl.GenericVoProperties
All Implemented Interfaces:
IGridElement, IStorableElement

public class GenericVoProperties
extends AbstractGridElement
implements IStorableElement

Properties for the GenericVirtualOrganization.


Field Summary
static java.lang.String NAME
          Name to reference the properties.
 
Method Summary
 IFileStore getFileStore()
          Get the file store that this element is associated with.
 java.lang.String getName()
          Get the name of this element.
 IGridContainer getParent()
          Get the parent element of this element.
 IPath getPath()
          Get the path of this element relative to the grid root element.
 IResource getResource()
          Get the corresponding resource of this element.
 boolean isLocal()
          Determines if this element is local.
 void load()
          Load the properties of that element.
 void save()
          Write the properties of this element.
 
Methods inherited from class eu.geclipse.core.model.impl.AbstractGridElement
dispose, getAdapter, getProject, isHidden, isVirtual
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface eu.geclipse.core.model.IGridElement
dispose, getProject, isHidden, isVirtual
 

Field Detail

NAME

public static final java.lang.String NAME
Name to reference the properties.

See Also:
Constant Field Values
Method Detail

getFileStore

public IFileStore getFileStore()
Description copied from interface: IGridElement
Get the file store that this element is associated with. May return null if there is no such associated file store. If this element is not virtual the filestore corresponds to the file store of the corresponding resource.

Specified by:
getFileStore in interface IGridElement
Returns:
The corresponding file store.

getName

public java.lang.String getName()
Description copied from interface: IGridElement
Get the name of this element. The names of all children of a container have to be unique within this container. If this element is not virtual the name is the name of the corresponding resource.

Specified by:
getName in interface IGridElement
Returns:
The name of this element.

getParent

public IGridContainer getParent()
Description copied from interface: IGridElement
Get the parent element of this element. The parent can only be an IGridContainer. This method may not return null since the only element that is allowed to return null is the IGridRoot which is a singleton and is internally defined within the model.

Specified by:
getParent in interface IGridElement
Returns:
The parent container of this element.

getPath

public IPath getPath()
Description copied from interface: IGridElement
Get the path of this element relative to the grid root element. If this element is not virtual this has to be the path of the corresponding @IResource.

Specified by:
getPath in interface IGridElement
Returns:
The path of this element relative to the grid root.

getResource

public IResource getResource()
Description copied from interface: IGridElement
Get the corresponding resource of this element. This may be null if - and only if - this element is virtual.

Specified by:
getResource in interface IGridElement
Returns:
The corresponding resource or null if this element is virtual.

isLocal

public boolean isLocal()
Description copied from interface: IGridElement
Determines if this element is local. A local element has to be any related item (not necessarily an IResource) that is local in the means that it is located on the local machine.

Specified by:
isLocal in interface IGridElement
Returns:
True if this element is local.

load

public void load()
          throws ProblemException
Description copied from interface: IStorableElement
Load the properties of that element. That may cause that some predefined properties may be overwritten with the loaded properties. The element itself has to know from where to load itself.

Specified by:
load in interface IStorableElement
Throws:
ProblemException - If an error occurs while loading this element. This is mainly due to IOExceptions.

save

public void save()
          throws ProblemException
Description copied from interface: IStorableElement
Write the properties of this element. The element itself has to know where to save itself.

Specified by:
save in interface IStorableElement
Throws:
ProblemException - If an error occurs while saving this element. This is mainly due to IOExceptions.

g-Eclipse
Release 1.0.0