|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.pebble.PluginProperties
public class PluginProperties
Contains properties that can be used by Pebble plugins.
Constructor Summary | |
---|---|
PluginProperties(Blog blog)
Creates a new instance with the specified owning blog. |
Method Summary | |
---|---|
java.util.Properties |
getProperties()
|
java.lang.String |
getPropertiesAsString()
Gets properties file as a String in the format it is saved on disk. |
java.lang.String |
getProperty(java.lang.String name)
Gets the named property. |
boolean |
hasProperty(java.lang.String name)
Determines whether a property with the specified name exists. |
void |
setPropertiesAsString(java.lang.String content)
Sets the properties and saves it to disk. |
void |
setProperty(java.lang.String name,
java.lang.String value)
Sets the named property. |
void |
store()
Helper method to store the properties to disk. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PluginProperties(Blog blog)
blog
- the owning Blog instanceMethod Detail |
---|
public java.lang.String getPropertiesAsString()
public void setPropertiesAsString(java.lang.String content)
content
- the properties file format as a Stringpublic boolean hasProperty(java.lang.String name)
name
- the name of th eproperty to test for
public java.lang.String getProperty(java.lang.String name)
name
- the name of the property
public java.util.Properties getProperties()
public void setProperty(java.lang.String name, java.lang.String value)
name
- the name of the propertyvalue
- the value of the propertypublic void store()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |