|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.entityfs.el.AbstractLocation<T>
public abstract class AbstractLocation<T extends EntityLocation<?>>
Abstract base class with implementations of EntityLocation methods.
| Field Summary |
|---|
| Fields inherited from interface org.entityfs.el.EntityLocation |
|---|
CURRENT_DIRECTORY_STRING, EXTENSION_SEPARATOR, PARENT_DIRECTORY_STRING, SEPARATOR, SEPARATOR_CHAR |
| Constructor Summary | |
|---|---|
AbstractLocation()
|
|
| Method Summary | |
|---|---|
boolean |
equals(Object o)
|
String |
getBaseName()
Return the entity name without extensions. |
String |
getExtension()
Get the entity name extension without the separator ( "."). |
String |
getName()
Get a name from a location string. |
LinkedList<String> |
getPathSegmentStack()
Get this entity location represented as a list of entity names. |
int |
hashCode()
|
boolean |
isRootDir()
Is this entity location an absolute entity location referencing the root directory. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.entityfs.el.EntityLocation |
|---|
getChildLocation, getLocation, getLocation, getParentLocation |
| Constructor Detail |
|---|
public AbstractLocation()
| Method Detail |
|---|
public boolean isRootDir()
EntityLocationel.getLocation().equals(AbsoluteLocation.ROOT_DIR) true?
isRootDir in interface EntityLocation<T extends EntityLocation<?>>true if this entity location is an absolute location
pointing to the root directory, false otherwise.public String getName()
getName in interface EntityLocation<T extends EntityLocation<?>>public String getExtension()
EntityLocationnew
AbsoluteLocation("/d1/f.txt").getExtension() returns txt.
getExtension in interface EntityLocation<T extends EntityLocation<?>>public String getBaseName()
EntityLocationgetName().equals(getBaseName() + "." +
getExtension()) == true holds.
If the entity name starts with a dot, that first dot is ignored.
getBaseName in interface EntityLocation<T extends EntityLocation<?>>public LinkedList<String> getPathSegmentStack()
EntityLocation../foo/bar gives the
following path segment stack:
..foobar
getPathSegmentStack in interface EntityLocation<T extends EntityLocation<?>>public boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||