com.aptana.ide.samples.model
Class SamplesEntry

java.lang.Object
  extended by com.aptana.ide.samples.model.SamplesEntry

public class SamplesEntry
extends java.lang.Object

Author:
Kevin Sawicki (ksawicki@aptana.com)

Constructor Summary
SamplesEntry(SamplesInfo parent, java.io.File file, boolean isRoot)
          Creates a new sample entry
 
Method Summary
 void addSubEntry(SamplesEntry subEntry)
          Add sub entry to this entry
 java.io.File getFile()
           
 SamplesInfo getParent()
           
 SamplesEntry getRoot()
          Gets the sample root
 java.util.List getSubEntries()
          Gets the sub entries
 boolean isRoot()
           
 void setFile(java.io.File file)
           
 void setParent(SamplesInfo parent)
           
 void setRoot(boolean isRoot)
           
 void setRoot(SamplesEntry root)
          Sets the root (meaning the actual sample root)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SamplesEntry

public SamplesEntry(SamplesInfo parent,
                    java.io.File file,
                    boolean isRoot)
Creates a new sample entry

Parameters:
parent -
file -
isRoot -
Method Detail

setRoot

public void setRoot(SamplesEntry root)
Sets the root (meaning the actual sample root)

Parameters:
root -

getRoot

public SamplesEntry getRoot()
Gets the sample root

Returns:
- root sample

addSubEntry

public void addSubEntry(SamplesEntry subEntry)
Add sub entry to this entry

Parameters:
subEntry -

getSubEntries

public java.util.List getSubEntries()
Gets the sub entries

Returns:
- list of sub entries

getFile

public java.io.File getFile()
Returns:
the file

setFile

public void setFile(java.io.File file)
Parameters:
file - the file to set

isRoot

public boolean isRoot()
Returns:
the isRoot

setRoot

public void setRoot(boolean isRoot)
Parameters:
isRoot - the isRoot to set

getParent

public SamplesInfo getParent()
Returns:
the parent

setParent

public void setParent(SamplesInfo parent)
Parameters:
parent - the parent to set