public class FrameworkResource extends java.lang.Object implements IFrameworkResource
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
VALID_RESOURCE_NAME_CHARSET_REGEX |
static java.lang.String |
VALID_RESOURCE_NAME_REGEX |
Constructor and Description |
---|
FrameworkResource(java.lang.String name,
java.io.File dir,
IFrameworkResourceParent parent)
Constructor
|
Modifier and Type | Method and Description |
---|---|
java.io.File |
getBaseDir() |
protected org.apache.log4j.Logger |
getLogger() |
java.lang.String |
getName() |
IFrameworkResourceParent |
getParent() |
boolean |
isValid() |
protected void |
storeProperties(java.util.Properties props,
java.io.File file)
Store properties to disk
|
java.lang.String |
toString() |
public static final java.lang.String VALID_RESOURCE_NAME_CHARSET_REGEX
public static final java.lang.String VALID_RESOURCE_NAME_REGEX
public FrameworkResource(java.lang.String name, java.io.File dir, IFrameworkResourceParent parent)
name
- Name of resourcedir
- Base directory of resourceparent
- The parent resourceprotected org.apache.log4j.Logger getLogger()
public java.lang.String getName()
getName
in interface IFrameworkResource
public java.io.File getBaseDir()
getBaseDir
in interface IFrameworkResource
public IFrameworkResourceParent getParent()
getParent
in interface IFrameworkResource
public boolean isValid()
isValid
in interface IFrameworkResource
public java.lang.String toString()
toString
in class java.lang.Object
protected void storeProperties(java.util.Properties props, java.io.File file) throws java.io.IOException
props
- Properties to storefile
- File to write property data tojava.io.IOException
- thrown if file not found or can't write to file