hep.analysis
Class AbstractNamedObject

java.lang.Object
  |
  +--hep.analysis.AbstractNamedObject
All Implemented Interfaces:
NamedObject, java.io.Serializable
Direct Known Subclasses:
Folder, Histogram, Page, Plot

public abstract class AbstractNamedObject
extends java.lang.Object
implements NamedObject, java.io.Serializable

An abstract implementation of NamedObject. This is the base class for Histogram, Plot, Page etc.

See Also:
Serialized Form

Inner classes inherited from class hep.analysis.NamedObject
NamedObject.RenameException
 
Field Summary
protected  Folder m_parent
           
 
Method Summary
 void delete()
          Delete this object
protected abstract  Folder getDefaultParent()
          Get default parent is called when an object is read in with no parent Folder.
 Folder getFolder()
          Get the folder that contains this object
 java.lang.String getName()
          Get name of this object
 void rename(java.lang.String newName)
          Changes the name of an object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_parent

protected transient Folder m_parent
Method Detail

delete

public void delete()
Delete this object
Specified by:
delete in interface NamedObject

rename

public void rename(java.lang.String newName)
            throws NamedObject.RenameException
Description copied from interface: NamedObject
Changes the name of an object
Specified by:
rename in interface NamedObject

getName

public java.lang.String getName()
Description copied from interface: NamedObject
Get name of this object
Specified by:
getName in interface NamedObject
Following copied from interface: hep.analysis.NamedObject
Returns:
The objects name

getFolder

public Folder getFolder()
Description copied from interface: NamedObject
Get the folder that contains this object
Specified by:
getFolder in interface NamedObject
Following copied from interface: hep.analysis.NamedObject
Returns:
The folder

getDefaultParent

protected abstract Folder getDefaultParent()
Get default parent is called when an object is read in with no parent Folder. Concrete classes must provide an implementation of this method.