|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.oddjob.values.properties.PropertiesBase
public class PropertiesBase
Base class for things that load Properties.
Constructor Summary | |
---|---|
PropertiesBase()
|
Method Summary | |
---|---|
String |
getExtract()
Getter for extract. |
String |
getPrefix()
Getter for prefix. |
Properties |
getSets(int index)
Indexed getter for sets. |
PropertySource |
getSource()
|
boolean |
isFromXML()
Getter for fromXML. |
boolean |
isSubstitute()
Getter for substitute. |
void |
setArooaContext(ArooaContext context)
|
void |
setExtract(String extract)
|
void |
setFromXML(boolean fromXml)
|
void |
setInput(InputStream input)
|
void |
setPrefix(String prefix)
|
void |
setSets(int index,
Properties props)
|
void |
setSource(PropertySource source)
|
void |
setSubstitute(boolean substitute)
|
void |
setValues(String key,
String value)
|
protected Properties |
toProperties()
The main method that provides the properties. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PropertiesBase()
Method Detail |
---|
public void setArooaContext(ArooaContext context)
setArooaContext
in interface ArooaContextAware
protected Properties toProperties() throws IOException, ArooaConversionException
IOException
ArooaConversionException
public void setInput(InputStream input)
Property: input
Description: An input source for Properties.
Required: No.
public void setFromXML(boolean fromXml)
Property: fromXML
Description: If the input for the properties is in XML format.
Required: No, defaults to false.
public boolean isFromXML()
public void setValues(String key, String value)
Property: values
Description: Properties defined as key value pairs.
Required: No.
public void setSets(int index, Properties props)
Property: sets
Description: Extra properties to be merged into the overall property set.
Required: No.
public Properties getSets(int index)
index
- The index.
public void setSubstitute(boolean substitute)
Property: substitute
Description: Use substitution for the values of ${} type properties.
Required: No.
public boolean isSubstitute()
public String getExtract()
public void setExtract(String extract)
Property: extract
Description: Extract this prefix form property names. Filters out properties that do not begin with this prefix.
Required: No.
public String getPrefix()
public void setPrefix(String prefix)
Property: prefix
Description: Append this prefix to property names.
Required: No.
public PropertySource getSource()
public void setSource(PropertySource source)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |