g-Eclipse
Release 1.0.0

eu.geclipse.core.model.impl
Class AbstractGridElement

java.lang.Object
  extended by PlatformObject
      extended by eu.geclipse.core.model.impl.AbstractGridElement
All Implemented Interfaces:
IGridElement
Direct Known Subclasses:
AbstractApplicationManager, AbstractGridContainer, AbstractGridInfoService, AbstractServiceJob, ContainerMarker, GenericVoProperties, GridGlueElement, ResourceGridElement

public abstract class AbstractGridElement
extends PlatformObject
implements IGridElement

Abstract implementation of the IGridElement interface.


Constructor Summary
AbstractGridElement()
           
 
Method Summary
 void dispose()
          Clean up all resources that this element uses internally.
 java.lang.Object getAdapter(java.lang.Class adapter)
           
 IGridProject getProject()
          Get the IGridProject this element belongs to.
 boolean isHidden()
          Determines if this element is hidden.
 boolean isVirtual()
          Determines if this element is virtual.
 
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
getFileStore, getName, getParent, getPath, getResource, isLocal
 

Constructor Detail

AbstractGridElement

public AbstractGridElement()
Method Detail

dispose

public void dispose()
Description copied from interface: IGridElement
Clean up all resources that this element uses internally.

Specified by:
dispose in interface IGridElement

getAdapter

public java.lang.Object getAdapter(java.lang.Class adapter)

getProject

public IGridProject getProject()
Description copied from interface: IGridElement
Get the IGridProject this element belongs to. This method may return null if the element is not contained in a project like for example an element manager and its children.

Specified by:
getProject in interface IGridElement
Returns:
The IGridProject this element belongs to.

isHidden

public boolean isHidden()
Description copied from interface: IGridElement
Determines if this element is hidden. Hidden elements are not shown in the Grid model views.

Specified by:
isHidden in interface IGridElement
Returns:
True if this is a hidden element, false otherwise.

isVirtual

public boolean isVirtual()
Description copied from interface: IGridElement
Determines if this element is virtual. Virtual elements have no corresponding resources. If this method returns false the IGridElement.getResource() method returns null. If this method returns true the IGridElement.getResource() has to return a valid IResource that is related to this element.

Specified by:
isVirtual in interface IGridElement
Returns:
True if this element is virtual, i.e. has no corresponding resource.

g-Eclipse
Release 1.0.0