org.beangle.commons.bean

Type members

Classlikes

trait Disposable

Disposable interface.

Disposable interface.

trait Factory[T]

Initializing interface.

Initializing interface.

object Properties
Companion
class
class Properties(conversion: Conversion) extends Logging
Companion
object
Companion
class

Default Property Name Resolver .

Default Property Name Resolver .

This class assists in resolving property names in the following four formats, with the layout of an identifying String in parentheses:

  • <strong>Simple (<code>name</code>)</strong> - The specified <code>name</code> identifies an individual property of a particular JavaBean. The name of the actual getter or setter method to be used is determined using standard JavaBeans instrospection, a property named "xyz" will have a getter method named <code>getXyz()</code> or (for boolean properties only) <code>isXyz()</code>, and a setter method named <code>setXyz()</code>.

  • <strong>Indexed (<code>name[index]</code>)</strong> - The underlying property value is assumed to be an array. The appropriate (zero-relative) entry in the array is selected. <code>List</code> objects are now also supported for read/write.

  • <strong>Mapped (<code>name(key)</code>)</strong> - The JavaBean is assumed to have an property getter and setter methods with an additional attribute of type <code>java.lang.String</code>.

  • <strong>Nested (<code>name1.name2[index].name3(key)</code>)</strong> - Combining mapped, nested, and indexed references is also supported.

Since

3.2.0

Companion
object