10.1. Bean properties

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.

typeCorresponding Java™ typeSyntax of valueExample
booleanbooleantrue, falsetrue
bytebyteinteger: -128 to 127 inclusive100
charchara single charactera
shortshortinteger: -32768 to 32767 inclusive1000
intintinteger: -2147483648 to 2147483647 inclusive-1
longlonginteger: -9223372036854775808 to 9223372036854775807, inclusive255
floatfloatsingle-precision 32-bit format IEEE 754-0.5
doubledoubledouble-precision 64-bit format IEEE 7541.0
Stringjava.lang.StringA stringHello, world!
URLjava.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>