| java.lang.Object sample.dms.AbstractElement
All known Subclasses: sample.dms.Directory, sample.dms.File,
AbstractElement | abstract public class AbstractElement (Code) | | author: Ben Alex version: $Id: AbstractElement.java 1784 2007-02-24 21:00:24Z luke_t $ |
AbstractElement | protected AbstractElement()(Code) | | Constructor to use to represent a root element. A root element has an id of -1.
|
AbstractElement | protected AbstractElement(String name, AbstractElement parent)(Code) | | Constructor to use to represent a non-root element.
Parameters: name - name for this element (required, cannot be "/") Parameters: parent - for this element (required, cannot be null) |
getFullName | public String getFullName()(Code) | | the fully-qualified name of this element, including any parents |
getName | public String getName()(Code) | | the name of this token (never null, although will be "/" if root, otherwise it won't include separators) |
|
|