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 IFrameworkResourcepublic java.io.File getBaseDir()
getBaseDir in interface IFrameworkResourcepublic IFrameworkResourceParent getParent()
getParent in interface IFrameworkResourcepublic boolean isValid()
isValid in interface IFrameworkResourcepublic java.lang.String toString()
toString in class java.lang.Objectprotected 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