org.biojava.bio.structure.align.util
Class UserConfiguration
java.lang.Object
org.biojava.bio.structure.align.util.UserConfiguration
public class UserConfiguration
- extends java.lang.Object
A container to persist config to the file system
- Author:
- Andreas Prlic
|
Constructor Summary |
UserConfiguration()
Default UserConfiguration:
split directory
autofetch files
default download location. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PDB_FORMAT
public static final java.lang.String PDB_FORMAT
- See Also:
- Constant Field Values
MMCIF_FORMAT
public static final java.lang.String MMCIF_FORMAT
- See Also:
- Constant Field Values
TMP_DIR
public static final java.lang.String TMP_DIR
- See Also:
- Constant Field Values
PDB_DIR
public static final java.lang.String PDB_DIR
- See Also:
- Constant Field Values
UserConfiguration
public UserConfiguration()
- Default UserConfiguration:
- split directory
- autofetch files
- default download location. This is the first specified of:
- PDB_DIR system property (for instance, -DPDB_DIR=/tmp)
- PDB_DIR environment variable
- System temp directory (java.io.tmpdir property)
getPdbFilePath
public java.lang.String getPdbFilePath()
setPdbFilePath
public void setPdbFilePath(java.lang.String pdbFilePath)
isSplit
public boolean isSplit()
setSplit
public void setSplit(boolean isSplit)
getAutoFetch
public boolean getAutoFetch()
setAutoFetch
public void setAutoFetch(boolean autoFetch)
toXML
public XMLWriter toXML(java.io.PrintWriter pw)
throws java.io.IOException
- convert Configuration to an XML file so it can be serialized
- Parameters:
pw -
- Returns:
- XMLWriter
- Throws:
java.io.IOException
toXML
public XMLWriter toXML(XMLWriter xw)
throws java.io.IOException
- convert Configuration to an XML file so it can be serialized
add to an already existing xml file.
- Parameters:
xw - the XML writer to use
- Returns:
- the writer again
- Throws:
java.io.IOException
fromStartupParams
public static UserConfiguration fromStartupParams(StartupParameters params)
setFileFormat
public void setFileFormat(java.lang.String fileFormat)
getFileFormat
public java.lang.String getFileFormat()