| java.lang.Object | |
| ↳ | org.odata4j.producer.inmemory.BeanModel |
An abstract representation of the "bean" nature of a class. This class caches up-front analysis of a class to locate the getters and setters it will need in order to operate on instances.
Instances of this class can then be used in place of reflection.
| Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| beanClass | |||||||||||
| collections | |||||||||||
| getters | |||||||||||
| setters | |||||||||||
| types | |||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Constructs the abstract bean representation of a class.
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Returns true if the property has a getter.
| |||||||||||
Returns true if the property has a setter.
| |||||||||||
Recovers the original class on which this metadata is based.
| |||||||||||
For any given collection type, identifies the type of the elements of the collection.
| |||||||||||
Returns the list of properties that have collection types.
| |||||||||||
Returns a collection from a property in an instance.
| |||||||||||
Returns the list of all properties identified on this class.
| |||||||||||
Discovers the type of a property.
| |||||||||||
Interrogates an instance of the target class and discovers the value
of a given property.
| |||||||||||
Updates a collection property.
| |||||||||||
Updates an instance to set a property to a given value
This method is only intended to be used for simple properties
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Constructs the abstract bean representation of a class.
| beanClass | The class to introspect |
|---|
Returns true if the property has a getter.
| propertyName |
|---|
Returns true if the property has a setter.
| propertyName |
|---|
Recovers the original class on which this metadata is based.
For any given collection type, identifies the type of the elements of the collection.
| collectionName | The name of the collection |
|---|
Returns the list of properties that have collection types.
Returns a collection from a property in an instance.
| target | The instance to look at |
|---|---|
| collectionName | The name of the property on the instance which holds the collection |
Returns the list of all properties identified on this class.
A property is any field that has a simple value type (i.e. not a collection type) and either has a getter or a setter defined on it.
Discovers the type of a property.
| propertyName | The property you are interested in |
|---|
Interrogates an instance of the target class and discovers the value of a given property. This method is only intended to be used for simple properties.
| target | The instance of the class |
|---|---|
| propertyName | The name of the property to fetch |
Updates a collection property.
| target | The instance to look at |
|---|---|
| collectionName | The name of the property on the instance which holds the collection |
| collectionValue | The new collection |
Updates an instance to set a property to a given value This method is only intended to be used for simple properties
| target | The instance to update |
|---|---|
| propertyName | The name of the property |
| propertyValue | The value to set in the property |