|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.snver.pileup.config.AbstractConfigurationFactory
public abstract class AbstractConfigurationFactory
Abstract class for configuration object creation
Created by IntelliJ IDEA. User: weicheng hu Date: 11/21/11 Time: 10:41 AM
| Field Summary | |
|---|---|
protected static java.lang.String |
NULL
|
| Constructor Summary | |
|---|---|
AbstractConfigurationFactory()
|
|
| Method Summary | |
|---|---|
protected void |
afterParsing(java.util.Properties prop)
Do special logic after the normal parsing routine |
protected abstract void |
beforeParsing(java.util.Properties prop)
|
protected java.lang.String |
buildFileName(java.lang.String name)
Remove the last file separator if necessary |
java.util.Properties |
createProperties(java.lang.String[] args)
Update the user input properties onto the default properties object |
java.util.Properties |
getDefaultProperties()
Build default properties object from a template |
protected void |
isComplete(java.util.Properties prop)
Check completion for the properties object parsing routine |
protected boolean |
isValueValid(java.lang.String value,
int type)
Check for properties validation |
protected boolean |
onParsing(java.lang.String key,
java.lang.String value,
java.util.Properties prop)
Do special logic before the normal parsing routine |
protected abstract void |
setMore(java.util.Properties prop)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final java.lang.String NULL
| Constructor Detail |
|---|
public AbstractConfigurationFactory()
| Method Detail |
|---|
public java.util.Properties getDefaultProperties()
protected abstract void setMore(java.util.Properties prop)
public java.util.Properties createProperties(java.lang.String[] args)
throws NoMatchOptionException,
java.lang.NumberFormatException
args - String[]
NoMatchOptionException - Error in parsing routine
java.lang.NumberFormatException - Error in parsing routineprotected abstract void beforeParsing(java.util.Properties prop)
protected boolean onParsing(java.lang.String key,
java.lang.String value,
java.util.Properties prop)
throws NoMatchOptionException,
java.lang.NumberFormatException
key - Stringvalue - Stringprop - Properties
NoMatchOptionException - Error in parsing routine
java.lang.NumberFormatException - Error in parsing routineprotected void afterParsing(java.util.Properties prop)
prop - Properties
protected void isComplete(java.util.Properties prop)
throws NoMatchOptionException
prop - Properties
NoMatchOptionException - Error in parsing routine
protected boolean isValueValid(java.lang.String value,
int type)
throws NoMatchOptionException,
java.lang.NumberFormatException
value - Stringtype - Integer
NoMatchOptionException - Error in parsing routine
java.io.FileNotFoundException - Error in file operation
java.lang.NumberFormatException - Error in numeric conversionprotected java.lang.String buildFileName(java.lang.String name)
name - String
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||