public class UserConfiguration extends Object
Modifier and Type | Field and Description |
---|---|
static String |
lineSplit |
static String |
MMCIF_FORMAT |
static String |
PDB_CACHE_DIR |
static String |
PDB_DIR |
static String |
PDB_FORMAT |
static String |
TMP_DIR |
Constructor and Description |
---|
UserConfiguration()
Default UserConfiguration:
split directory
autofetch files
default download location.
|
Modifier and Type | Method and Description |
---|---|
static UserConfiguration |
fromStartupParams(StartupParameters params) |
boolean |
getAutoFetch()
Deprecated.
|
String |
getCacheFilePath() |
LocalPDBDirectory.FetchBehavior |
getFetchBehavior() |
String |
getFileFormat() |
LocalPDBDirectory.ObsoleteBehavior |
getObsoleteBehavior() |
String |
getPdbFilePath() |
void |
setAutoFetch(boolean autoFetch)
Deprecated.
|
void |
setCacheFilePath(String cacheFilePath) |
void |
setFetchBehavior(LocalPDBDirectory.FetchBehavior fetchBehavior) |
void |
setFileFormat(String fileFormat) |
void |
setObsoleteBehavior(LocalPDBDirectory.ObsoleteBehavior obsoleteBehavior) |
void |
setPdbFilePath(String pdbFilePath) |
XMLWriter |
toXML(PrintWriter pw)
convert Configuration to an XML file so it can be serialized
|
XMLWriter |
toXML(XMLWriter xw)
convert Configuration to an XML file so it can be serialized
add to an already existing xml file.
|
public static final String PDB_FORMAT
public static final String MMCIF_FORMAT
public static final String TMP_DIR
public static final String PDB_DIR
public static final String PDB_CACHE_DIR
public static final String lineSplit
public UserConfiguration()
public String getPdbFilePath()
public void setPdbFilePath(String pdbFilePath)
public String getCacheFilePath()
public void setCacheFilePath(String cacheFilePath)
@Deprecated public boolean getAutoFetch()
getFetchBehavior()
@Deprecated public void setAutoFetch(boolean autoFetch)
getFetchBehavior()
public LocalPDBDirectory.FetchBehavior getFetchBehavior()
public void setFetchBehavior(LocalPDBDirectory.FetchBehavior fetchBehavior)
public LocalPDBDirectory.ObsoleteBehavior getObsoleteBehavior()
public void setObsoleteBehavior(LocalPDBDirectory.ObsoleteBehavior obsoleteBehavior)
public XMLWriter toXML(PrintWriter pw) throws IOException
pw
- IOException
public XMLWriter toXML(XMLWriter xw) throws IOException
xw
- the XML writer to useIOException
ConfigXMLHandler
public static UserConfiguration fromStartupParams(StartupParameters params)
public void setFileFormat(String fileFormat)
public String getFileFormat()
Copyright © 2000–2016 BioJava. All rights reserved.