public class ObjectProperty extends Object implements Serializable
To add custom information that additionally qualifies the object property, it is possible to
implement and use an IPropertyQualifier.
| Constructor and Description |
|---|
ObjectProperty(Object object)
Creates an ObjectProperty that characterizes only the object but not a specific property of
it.
|
ObjectProperty(Object object,
String property)
Creates an ObjectProperty that characterizes the object and the name of the property.
|
ObjectProperty(Object object,
String property,
int index)
Creates a new ObjectProperty.
|
ObjectProperty(Object object,
String property,
int index,
IPropertyQualifier qualifier)
Creates a new ObjectProperty.
|
ObjectProperty(Object object,
String property,
IPropertyQualifier qualifier)
Creates a new ObjectProperty.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
int |
getIndex()
In case of
getObject() is an array or list this index defines which object of the
index is referenced. |
Object |
getObject()
The object that is identified by this
ObjectProperty. |
String |
getProperty()
The name of the property that is identified by this
ObjectProperty. |
IPropertyQualifier |
getQualifier()
Returns the
IPropertyQualifier defined at the instantiation of this
ObjectProperty. |
int |
hashCode() |
boolean |
hasIndex()
Returns whether this
ObjectProperty has an index that identifies an object in an
array or list. |
String |
toString() |
public ObjectProperty(Object object, String property, int index, IPropertyQualifier qualifier)
It is possible to provide additional information using the qualifier and implementing the
interface IPropertyQualifier.
public ObjectProperty(Object object, String property, IPropertyQualifier qualifier)
It is possible to provide additional information using the qualifier and implementing the
interface IPropertyQualifier.
public ObjectProperty(Object object, String property, int index)
public ObjectProperty(Object object, String property)
public ObjectProperty(Object object)
public Object getObject()
ObjectProperty.public String getProperty()
ObjectProperty. The property name
should be available as bean property in the given object.public int getIndex()
getObject() is an array or list this index defines which object of the
index is referenced.getObject(). Returns -1 if there is no index available.hasIndex()public IPropertyQualifier getQualifier()
IPropertyQualifier defined at the instantiation of this
ObjectProperty.IPropertyQualifier containing additional information or null
if no qualifier exists.public boolean hasIndex()
ObjectProperty has an index that identifies an object in an
array or list.true if this ObjectProperty references an index, false if there
is no index available.Copyright © 2017. All rights reserved.