org.apache.commons.configuration.plist

Class XMLPropertyListConfiguration.PListNode

public static class XMLPropertyListConfiguration.PListNode extends Node

Node extension with addXXX methods to parse the typed data passed by Digester. Do not use this class ! It is used internally by XMLPropertyConfiguration to parse the configuration file, it may be removed at any moment in the future.
Field Summary
static DateFormatformat
The standard format of dates in plist files.
static longserialVersionUID
The serial version UID.
Method Summary
voidaddDataValue(String value)
Parse the specified string as a byte array in base 64 format and add it to the values of the node.
voidaddDateValue(String value)
Parse the specified string as a date and add it to the values of the node.
voidaddFalseValue()
Add a boolean value 'false' to the values of the node.
voidaddIntegerValue(String value)
Parse the specified string as an Interger and add it to the values of the node.
voidaddList(XMLPropertyListConfiguration.ArrayNode node)
Add a sublist to the values of the node.
voidaddRealValue(String value)
Parse the specified string as a Double and add it to the values of the node.
voidaddTrueValue()
Add a boolean value 'true' to the values of the node.
voidaddValue(Object value)
Update the value of the node.

Field Detail

format

private static DateFormat format
The standard format of dates in plist files.

serialVersionUID

private static final long serialVersionUID
The serial version UID.

Method Detail

addDataValue

public void addDataValue(String value)
Parse the specified string as a byte array in base 64 format and add it to the values of the node.

Parameters: value the value to be added

addDateValue

public void addDateValue(String value)
Parse the specified string as a date and add it to the values of the node.

Parameters: value the value to be added

addFalseValue

public void addFalseValue()
Add a boolean value 'false' to the values of the node.

addIntegerValue

public void addIntegerValue(String value)
Parse the specified string as an Interger and add it to the values of the node.

Parameters: value the value to be added

addList

public void addList(XMLPropertyListConfiguration.ArrayNode node)
Add a sublist to the values of the node.

Parameters: node the node whose value will be added to the current node value

addRealValue

public void addRealValue(String value)
Parse the specified string as a Double and add it to the values of the node.

Parameters: value the value to be added

addTrueValue

public void addTrueValue()
Add a boolean value 'true' to the values of the node.

addValue

public void addValue(Object value)
Update the value of the node. If the existing value is null, it's replaced with the new value. If the existing value is a list, the specified value is appended to the list. If the existing value is not null, a list with the two values is built.

Parameters: value the value to be added