public abstract class AbstractConfigDirPropsReader extends Object implements CyProperty<Properties>
CyProperty.DEFAULT_PROPS_CONFIG_DIR.
public class PropsReader extends AbstractConfigDirPropsReader {
PropsReader(String s, SavePolicy sp) {
super(s,sp);
}
}
Module: property-api
To use this in your app, include the following dependency in your POM:
<dependency>
<groupId>org.cytoscape</groupId>
<artifactId>property-api</artifactId>
</dependency>CyProperty.SavePolicy| Modifier and Type | Field and Description |
|---|---|
protected String |
name
The name of this CyProperty.
|
protected Properties |
props
The Properties object created for this class.
|
protected CyProperty.SavePolicy |
savePolicy
The SavePolicy of this CyProperty.
|
DEFAULT_PROPS_CONFIG_DIR| Constructor and Description |
|---|
AbstractConfigDirPropsReader(String name,
String propFileName,
CyProperty.SavePolicy savePolicy)
Creates a new AbstractConfigDirPropsReader object.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getName()
Returns the name of the CyProperty.
|
Properties |
getProperties()
Return a property object.
|
Class<? extends Properties> |
getPropertyType()
Returns the type of the property object.
|
CyProperty.SavePolicy |
getSavePolicy()
Returns the
CyProperty.SavePolicy of the CyProperty. |
protected final String name
protected final Properties props
protected final CyProperty.SavePolicy savePolicy
public AbstractConfigDirPropsReader(String name, String propFileName, CyProperty.SavePolicy savePolicy)
name - The name of this CyProperty.propFileName - The name of the java.util.Properties file to read.savePolicy - The save policy for this CyProperty. This value MUST be
either CyProperty.SavePolicy.CONFIG_DIR or
CyProperty.SavePolicy.SESSION_FILE_AND_CONFIG_DIR so that we can
reasonably expect to find a properties file in the configuration directory.
If you'd like to use a different SavePolicy, then consider using
SimpleCyProperty instead.public String getName()
getName in interface CyProperty<Properties>public CyProperty.SavePolicy getSavePolicy()
CyProperty.SavePolicy of the CyProperty.getSavePolicy in interface CyProperty<Properties>CyProperty.SavePolicy of the CyProperty.public Properties getProperties()
getProperties in interface CyProperty<Properties>public Class<? extends Properties> getPropertyType()
getPropertyType in interface CyProperty<Properties>Copyright 2011-2015 Cytoscape Consortium. All rights reserved.