|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectrendsite.engine.Context
rendsite.engine.PropertiesContext
public class PropertiesContext
Context for the stored properties.
will have to redo this completely, since it won't scale and they are shitty slow. It's enough to get things going now.
10NOV09 - EPG - First package release.
| Field Summary | |
|---|---|
protected things.data.ThingsPropertyTree |
local
|
protected static things.data.ThingsPropertyTree |
localEmpty
|
protected things.data.ThingsPropertyReaderToolkit |
localToolkit
|
protected things.data.ThingsPropertyView |
localView
|
protected Node_Directory |
scopedDirectory
|
protected things.data.ThingsPropertyTree |
store
|
protected things.data.ThingsPropertyReaderToolkit |
storeToolkit
|
protected things.data.ThingsPropertyView |
storeView
|
| Fields inherited from class rendsite.engine.Context |
|---|
configuration, logger, si |
| Constructor Summary | |
|---|---|
PropertiesContext(RendsiteConfiguration configuration,
java.io.File sourceDirectory,
java.io.File outputDirectory)
Create a context. |
|
| Method Summary | |
|---|---|
boolean |
COPY_ONLY(Node_Directory directory)
Is the directory copy only? |
boolean |
COPY_ONLY(Node_File file)
Is the file copy only? |
boolean |
EXCLUDED(java.io.File file)
Is the file or directory excluded? |
boolean |
EXCLUDED(Node_Directory directory)
Is the directory excluded? |
boolean |
EXCLUDED(Node_File file)
Is the file excluded? |
java.lang.String |
GET_CATALOG_NAME(Node_Directory directory)
Get the name of the catalog from the directory. |
java.lang.String |
GET_DEFAULT(java.lang.String name,
java.lang.String theDefault)
Get a property value or the given default, if the property is not set. |
java.lang.String |
GET_LOCAL_DEFAULT(java.lang.String name,
java.lang.String theDefault)
Get a property value or the given default, if the property is not set. |
java.lang.String[] |
GET_MULTIVALUE(java.lang.String name)
Get a property multi-value. |
java.lang.String |
GET_REQUIRED(java.lang.String name)
Get a property value. |
CategoryManager |
getCategoryManager()
Get the category manager. |
boolean |
IGNORED(java.io.File file)
Is the file or directory ignored? |
boolean |
IGNORED(Node_Directory directory)
Is the directory ignored? |
boolean |
IGNORED(Node_File file)
Is the file ignored? |
boolean |
MATCH(java.lang.String propname,
java.lang.String token)
Check to see if a token matches the value of a property. |
void |
reset()
Reset the context. |
void |
scope(Node_Directory directory)
Enter a scope. |
void |
unscope()
Exit a scope. |
things.data.ThingsPropertyView |
viewLocalDirectoriesPly(int ply)
Get a DIRECTORY ply from the local. |
things.data.ThingsPropertyView |
viewLocalFilesPly(int ply)
Get a FILE ply from the local. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected things.data.ThingsPropertyTree store
protected things.data.ThingsPropertyView storeView
protected things.data.ThingsPropertyReaderToolkit storeToolkit
protected things.data.ThingsPropertyTree local
protected things.data.ThingsPropertyView localView
protected static things.data.ThingsPropertyTree localEmpty
protected things.data.ThingsPropertyReaderToolkit localToolkit
protected Node_Directory scopedDirectory
| Constructor Detail |
|---|
public PropertiesContext(RendsiteConfiguration configuration,
java.io.File sourceDirectory,
java.io.File outputDirectory)
throws java.lang.Throwable
configuration - the configuration for the system.sourceDirectory - path to the source directory.outputDirectory - path to the output directory.
java.lang.Throwable - normally this will only happen if you pass a null or bad SystemInterface.| Method Detail |
|---|
public void reset()
throws java.lang.Throwable
reset in interface Resetablereset in class Contextjava.lang.Throwable - if it could not completely reset state.
public things.data.ThingsPropertyView viewLocalFilesPly(int ply)
throws java.lang.Throwable
ply -
java.lang.Throwable
public things.data.ThingsPropertyView viewLocalDirectoriesPly(int ply)
throws java.lang.Throwable
ply -
java.lang.Throwablepublic CategoryManager getCategoryManager()
public java.lang.String GET_DEFAULT(java.lang.String name,
java.lang.String theDefault)
GET_DEFAULT in interface PropertiesGeneralContextname - the property name.theDefault - the default value.
public java.lang.String GET_REQUIRED(java.lang.String name)
throws java.lang.Throwable
name - the property name.
java.lang.Throwable - if the property isn't set.
public java.lang.String GET_LOCAL_DEFAULT(java.lang.String name,
java.lang.String theDefault)
GET_LOCAL_DEFAULT in interface PropertiesGeneralContextname - the property name.theDefault - the default value.
public java.lang.String[] GET_MULTIVALUE(java.lang.String name)
throws java.lang.Throwable
GET_MULTIVALUE in interface PropertiesGeneralContextname - the property name.
java.lang.Throwable - for severe platform problems only.
public boolean MATCH(java.lang.String propname,
java.lang.String token)
throws java.lang.Throwable
MATCH in interface PropertiesGeneralContextpropname - the property name.token - the token to match.
java.lang.Throwable - for severe platform problems only.
public java.lang.String GET_CATALOG_NAME(Node_Directory directory)
throws java.lang.Throwable
directory - the directory
java.lang.Throwable - for severe platform problems only.
public boolean EXCLUDED(Node_Directory directory)
throws java.lang.Throwable
EXCLUDED in interface PropertiesFileContextdirectory - the directory.
java.lang.Throwable - for severe platform problems only.
public boolean EXCLUDED(Node_File file)
throws java.lang.Throwable
EXCLUDED in interface PropertiesFileContextfile - the file.
java.lang.Throwable - for severe platform problems only.
public boolean EXCLUDED(java.io.File file)
throws java.lang.Throwable
EXCLUDED in interface PropertiesFileContextfile - the java File representing a directory or file.
java.lang.Throwable - for severe platform problems only.
public boolean IGNORED(Node_Directory directory)
throws java.lang.Throwable
IGNORED in interface PropertiesFileContextdirectory - the directory.
java.lang.Throwable - for severe platform problems only.
public boolean IGNORED(Node_File file)
throws java.lang.Throwable
IGNORED in interface PropertiesFileContextfile - the file.
java.lang.Throwable - for severe platform problems only.
public boolean IGNORED(java.io.File file)
throws java.lang.Throwable
IGNORED in interface PropertiesFileContextfile - the java File representing a directory or file.
java.lang.Throwable - for severe platform problems only.
public boolean COPY_ONLY(Node_File file)
throws java.lang.Throwable
COPY_ONLY in interface PropertiesFileContextfile - the file.
java.lang.Throwable - for severe platform problems only.
public boolean COPY_ONLY(Node_Directory directory)
throws java.lang.Throwable
COPY_ONLY in interface PropertiesFileContextdirectory - the directory.
java.lang.Throwable - for severe platform problems only.
public void scope(Node_Directory directory)
throws java.lang.Throwable
directory -
java.lang.Throwable - will cause ERRORs if they can't load, but the scope should be ok. Be sure to call unscope() even if you get an exception.
public void unscope()
throws java.lang.Throwable
java.lang.Throwable - Any problem unscoping is a PANIC, since the scope stack will be in an unknown state.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||