The <property> element is used in the layer elements
to initialize a programmer defined property to the parent object within the
XML configuration process. The property value can be retrieved from within
a script as follows:
String value = layer.getProperty("propertyName");
| Frequency |
Description (in this context) |
|
PO+ |
The <property> element may appear one or more times within the
parent element in any order. |
| |
|
|
|
Attributes |
Description |
|
name |
The identifier of the property. Required.
|
|
value |
The text value of the property. Required.
|
| |
|
|
Example:
<layer name="Some Layer Name">
<property name="Custodian" value="John Doe"/>
</layer>
Retrieval:
String custodian = layer.getProperty("custodian");