|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.molwind.io.AbstractWorldLocator org.molwind.chemical.io.SDFileLocator
public class SDFileLocator
SDFileLocator implements a locator to find worlds based on SDF chemical file format.
Field Summary | |
---|---|
static java.lang.String |
DEFAULT_ID_ATTRIBUTE
The default name of the attribute denoting the id. |
static java.lang.String |
DEFAULT_PARENT_ATTRIBUTE
The default name of the attribute denoting the parent. |
static java.lang.String |
DEFAULT_PATH_SEPARATOR
The default value for seperating a path |
static java.lang.String[] |
DEFAULT_SDF_SUFFIX
The default file extensions recognized by this locator. |
static java.lang.String |
pathNames
The relativ adress for looking up the worlds |
Constructor Summary | |
---|---|
SDFileLocator()
Creates an SDFilelocator instance. |
Method Summary | |
---|---|
void |
addBasePath(java.lang.String path)
Adds a path to the base paths |
java.lang.String |
getIdAttributeName()
Get the idAttributeName value. |
java.lang.String |
getParentAttributeName()
Get the parentAttributeName value. |
java.lang.String |
getPathNames()
Get the worldpaths |
java.lang.String[] |
getWorldNames()
|
MolwindWorld |
locateByFileName(java.lang.String fileName)
Locates the world by the given name by iteraring all world names |
MolwindWorld |
locateWorld(java.lang.String worldName)
Locates a world with the given name. |
void |
removeBasePath(java.lang.String path)
Removes the given path from the base paths |
void |
setIdAttributeName(java.lang.String newIdAttributeName)
Set the idAttributeName value. |
void |
setParentAttributeName(java.lang.String newParentAttributeName)
Set the ParentAttributeName value. |
void |
setPathNames(java.lang.String paths)
Set the pathNames |
Methods inherited from class org.molwind.io.AbstractWorldLocator |
---|
configure |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static java.lang.String pathNames
public static final java.lang.String[] DEFAULT_SDF_SUFFIX
public static final java.lang.String DEFAULT_PARENT_ATTRIBUTE
public static final java.lang.String DEFAULT_ID_ATTRIBUTE
public static final java.lang.String DEFAULT_PATH_SEPARATOR
Constructor Detail |
---|
public SDFileLocator()
Method Detail |
---|
public void addBasePath(java.lang.String path)
addBasePath
in interface BasePathSupport
path
- the path to be addpublic void removeBasePath(java.lang.String path)
removeBasePath
in interface BasePathSupport
path
- the path to be removedpublic MolwindWorld locateByFileName(java.lang.String fileName) throws java.io.IOException
the
- filename
java.io.IOException
- is thrown upon i/o errorpublic MolwindWorld locateWorld(java.lang.String worldName) throws java.io.IOException
locateWorld
in interface WorldLocator
locateWorld
in class AbstractWorldLocator
worldName
- the name of the world
java.io.IOException
- is thrown upon i/o errorpublic java.lang.String[] getWorldNames()
getWorldNames
in interface WorldLocator
getWorldNames
in class AbstractWorldLocator
public java.lang.String getParentAttributeName()
parentAttributeName
value.
parentAttributeName
valuepublic void setParentAttributeName(java.lang.String newParentAttributeName)
ParentAttributeName
value.
newParentAttributeName
- the new ParentAttributeName
valuepublic java.lang.String getIdAttributeName()
idAttributeName
value.
idAttributeName
valuepublic void setIdAttributeName(java.lang.String newIdAttributeName)
idAttributeName
value.
newIdAttributeName
- the new idAttributeName
valuepublic void setPathNames(java.lang.String paths)
pathNames
paths
- the new pathNames
valuepublic java.lang.String getPathNames()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |