org.nuxeo.core.resources.model.impl
Class SiteFile

java.lang.Object
  extended by org.eclipse.core.runtime.PlatformObject
      extended by org.nuxeo.core.resources.model.impl.SiteResource
          extended by org.nuxeo.core.resources.model.impl.SiteFile
All Implemented Interfaces:
org.eclipse.core.runtime.IAdaptable, ISiteFile, ISiteResource

public class SiteFile
extends SiteResource
implements ISiteFile

Author:
Bogdan Stefanescu

Field Summary
 
Fields inherited from interface org.nuxeo.core.resources.model.ISiteResource
FILE, FOLDER, SITE
 
Constructor Summary
SiteFile(ISite site, java.lang.String path)
           
 
Method Summary
 boolean accept(ISiteResourceVisitor visitor, java.lang.Object context)
          Accept a visitor on this node of the resource tree
 int getType()
          Get the resource type.
 
Methods inherited from class org.nuxeo.core.resources.model.impl.SiteResource
create, delete, edit, exists, getContents, getController, getMetadata, getName, getParent, getPath, getSite, getURI, modify
 
Methods inherited from class org.eclipse.core.runtime.PlatformObject
getAdapter
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.nuxeo.core.resources.model.ISiteResource
create, delete, edit, exists, getContents, getMetadata, getName, getParent, getPath, getSite, getURI, modify
 
Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapter
 

Constructor Detail

SiteFile

public SiteFile(ISite site,
                java.lang.String path)
Method Detail

getType

public int getType()
Description copied from interface: ISiteResource
Get the resource type.

Specified by:
getType in interface ISiteResource
Specified by:
getType in class SiteResource
Returns:
the resource type

accept

public boolean accept(ISiteResourceVisitor visitor,
                      java.lang.Object context)
Description copied from interface: ISiteResource
Accept a visitor on this node of the resource tree

Specified by:
accept in interface ISiteResource
Specified by:
accept in class SiteResource
Parameters:
visitor - the visitor
context - a context object to be used by the visitor or null
Returns:
true if the traversal must continue otherwise false