|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.faktorips.runtime.ObjectProperty
public class ObjectProperty
An instance of this class identifies a property in an object, e.g. the name property of a specific person.
To add custom information that additionally qualifies the object property, it is possible to
implement and use an IPropertyQualifier.
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
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)
| Method Detail |
|---|
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.public boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||