com.bbn.swede.core.resources
Class OWLFolder

java.lang.Object
  extended bycom.bbn.swede.core.resources.OWLElement
      extended bycom.bbn.swede.core.resources.OWLFolder
All Implemented Interfaces:
IOWLElement, IOWLFolder

public class OWLFolder
extends OWLElement
implements IOWLFolder

Implementation for OWL folder elements.

Author:
jlerner

Field Summary
 
Fields inherited from class com.bbn.swede.core.resources.OWLElement
_elemParent, _info, _resource, _sElementName
 
Constructor Summary
(package private) OWLFolder(IFolder folder)
          Creates an OWL folder element based on an Eclipse folder resource.
 
Method Summary
 boolean contains(IResource resource)
          Checks if this element or one of its decendents is based on a particular Eclipse resource.
 Object getAdapter(Class adapter)
           
 IContainer getContainer()
          Returns the Eclipse folder resource that is the basis for this OWL folder, cast as an IContainer.
 IOWLElement getCorrespondingElement(IResource resource)
          Locates the OWL Element corresponding to a particular Eclipse resource.
 IFolder getFolder()
          Returns the Eclipse folder resource that is the basis for this OWL folder.
 
Methods inherited from class com.bbn.swede.core.resources.OWLElement
accept, getCorrespondingResource, getElementInfo, getElementName, getLocalURI, getParent, getPath, getResource, getURI, isReadOnly, setElementName, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.bbn.swede.core.IOWLElement
accept, getCorrespondingResource, getElementInfo, getElementName, getLocalURI, getParent, getPath, getResource, getURI, isReadOnly, setParent
 

Constructor Detail

OWLFolder

OWLFolder(IFolder folder)
Creates an OWL folder element based on an Eclipse folder resource.

Parameters:
folder - The Eclipse folder
Method Detail

contains

public boolean contains(IResource resource)
Description copied from interface: IOWLElement
Checks if this element or one of its decendents is based on a particular Eclipse resource.

Specified by:
contains in interface IOWLElement
Overrides:
contains in class OWLElement

getCorrespondingElement

public IOWLElement getCorrespondingElement(IResource resource)
Description copied from interface: IOWLElement
Locates the OWL Element corresponding to a particular Eclipse resource.

Specified by:
getCorrespondingElement in interface IOWLElement
Overrides:
getCorrespondingElement in class OWLElement

getContainer

public IContainer getContainer()
Description copied from interface: IOWLFolder

Returns the Eclipse folder resource that is the basis for this OWL folder, cast as an IContainer.

This is a convenience method, fully equivalent to:

(IContainer)getFolder()

Specified by:
getContainer in interface IOWLFolder
Returns:
The folder's inner IFolder, cast as an IContainer.

getFolder

public IFolder getFolder()
Description copied from interface: IOWLFolder
Returns the Eclipse folder resource that is the basis for this OWL folder.

Specified by:
getFolder in interface IOWLFolder
Returns:
The folder's inner IFolder

getAdapter

public Object getAdapter(Class adapter)
Overrides:
getAdapter in class OWLElement


Copyright © 2004-2005 BBN Technologies. All Rights Reserved.