|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectruleset.Labeler
public class Labeler
Loads a rule set and processes one or more files. Labeler will load a ruleset (@see PPIRuleset) and apply it to one or more files in a directory tree. If a directory name is passed as the starting point then the ruleset will be applied to all files in the directory and subdirectories.
Options:
-d: Scan only the current directory. Do not recurse sub-directories. -r: Scan the current directory and recursely scan sub-directories.Usage:
labeler ruleset [-d | -R] pathname [pathname ...]
| Field Summary | |
|---|---|
pds.util.PPIVariableList |
mCommandList
|
pds.util.PPIVariableList |
mGlobalList
Preserves global variables between executions of the ruleset. |
igpp.util.MultiPrinter |
mOutput
|
boolean |
mRecurse
|
java.lang.String |
mStartPath
|
java.lang.String |
mStartRule
|
| Constructor Summary | |
|---|---|
Labeler()
Create an instance. |
|
| Method Summary | |
|---|---|
igpp.util.MultiPrinter |
getOutput()
|
boolean |
getRecurse()
|
java.lang.String |
getStartPath()
|
static void |
main(java.lang.String[] args)
Entry point for the application. |
boolean |
processItem(java.lang.String ruleset,
java.lang.String pathName)
Process a file or directory using a ruleset. |
boolean |
runRuleset(java.lang.String ruleFile,
java.lang.String pathName)
Process a single file using a ruleset. |
void |
setOutput(javax.servlet.jsp.JspWriter writer)
|
void |
setOutput(java.io.PrintStream stream)
|
void |
setOutput(java.io.PrintWriter writer)
|
void |
setRecurse(boolean state)
|
void |
setStartPath(java.lang.String path)
|
void |
setVariable(java.lang.String name,
java.lang.String value)
Define a variable which set at the start of each exceution of a ruleset. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public pds.util.PPIVariableList mGlobalList
public pds.util.PPIVariableList mCommandList
public java.lang.String mStartPath
public java.lang.String mStartRule
public boolean mRecurse
public igpp.util.MultiPrinter mOutput
| Constructor Detail |
|---|
public Labeler()
| Method Detail |
|---|
public static void main(java.lang.String[] args)
public boolean processItem(java.lang.String ruleset,
java.lang.String pathName)
throws java.lang.Exception
ruleset - the pathname to the ruleset file.pathName - the pathname of the file to process.
If java.lang.Exception
public boolean runRuleset(java.lang.String ruleFile,
java.lang.String pathName)
throws java.lang.Exception
ruleset - the pathname to the ruleset file.pathName - the pathname of the file to process.
If java.lang.Exception
public void setVariable(java.lang.String name,
java.lang.String value)
name - the name of the variable.value - the value to the set the variable.public void setRecurse(boolean state)
public boolean getRecurse()
public void setStartPath(java.lang.String path)
public java.lang.String getStartPath()
public void setOutput(java.io.PrintStream stream)
public void setOutput(java.io.PrintWriter writer)
public void setOutput(javax.servlet.jsp.JspWriter writer)
public igpp.util.MultiPrinter getOutput()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||