Some of the class instances created by the means of the class
element may be parameterized using property
child elements. A property child element specifies a Bean (that is, a Java™ Object) property.
Example:
<property name="columns" type="int" value="40" />
implies that the bean to be parametrized has a public method which resembles:
setColumns(int number)
Such properties are completely specific to the bean they parametrize and therefore, cannot be described in this section.
type | Corresponding Java™ type | Syntax of value | Example |
---|---|---|---|
boolean | boolean | true, false | true |
byte | byte | integer: -128 to 127 inclusive | 100 |
char | char | a single character | a |
short | short | integer: -32768 to 32767 inclusive | 1000 |
int | int | integer: -2147483648 to 2147483647 inclusive | -1 |
long | long | integer: -9223372036854775808 to 9223372036854775807, inclusive | 255 |
float | float | single-precision 32-bit format IEEE 754 | -0.5 |
double | double | double-precision 64-bit format IEEE 754 | 1.0 |
String | java.lang.String | A string | Hello, world! |
URL | java.net.URL | An absolute or relative URI. A relative URI is relative to the URI of the file containing the configuration element. | css/toc.css |
Example actually used in the XHTML configuration:
<validateHook name="checkLinks"> <class>com.xmlmind.xmleditapp.linktype.LinkChecker</class> <property name="checkAnchors" type="boolean" value="false" /> <property name="checkRefs" type="boolean" value="false" /> </validateHook>