public class ContextProperties extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
CONTEXT_PATH |
static String |
FILE_NAME |
static String |
FILE_PATH |
protected SiteGenerator |
globalContext |
static String |
PAGE_NAME |
static String |
PAGE_PATH |
protected ContextProperties |
parent |
| Constructor and Description |
|---|
ContextProperties(SiteGenerator globalContext) |
ContextProperties(SiteGenerator globalContext,
File file) |
| Modifier and Type | Method and Description |
|---|---|
String |
getCharSet() |
File |
getCurrentDir() |
Node |
getPageNode()
Returns the first page nothe on the hirarhie of that context
|
ContextProperties |
getParent() |
String |
getValue(String propertyName,
Node currentNode) |
boolean |
hasBeenModified(long lastModified)
Returns true if this context has been modified after or at this date.
|
String |
parseGlobalVariables(String stringToParse,
Node currentNode) |
String |
parseVariables(String stringToParse,
Node currentNode)
Parse the string passed in parameter and replace the variables found by its values.
|
void |
setPageNode(Node node) |
void |
setParent(ContextProperties parentContext) |
String |
toString() |
public static final String PAGE_NAME
public static final String PAGE_PATH
public static final String FILE_NAME
public static final String FILE_PATH
public static final String CONTEXT_PATH
protected final SiteGenerator globalContext
protected ContextProperties parent
public ContextProperties(SiteGenerator globalContext, File file)
public ContextProperties(SiteGenerator globalContext)
public void setPageNode(Node node)
public Node getPageNode()
public File getCurrentDir()
public boolean hasBeenModified(long lastModified)
lastModified - public void setParent(ContextProperties parentContext)
public ContextProperties getParent()
public String parseVariables(String stringToParse, Node currentNode)
stringToParse - public String getCharSet()
Copyright © 2014 ginere solutions. All Rights Reserved.