org.odata4j.producer.inmemory
Interface PropertyModel

All Known Implementing Classes:
BeanBasedPropertyModel, EntityIdFunctionPropertyModelDelegate, EnumsAsStringsPropertyModelDelegate, PropertyModelDelegate

public interface PropertyModel


Method Summary
 Class<?> getCollectionElementType(String collectionName)
           
 Iterable<String> getCollectionNames()
          gets the names of all collections defined by the model
 Iterable<?> getCollectionValue(Object target, String collectionName)
           
 Iterable<String> getDeclaredCollectionNames()
          gets the names of collections defined only at this inheritance level in the model
 Iterable<String> getDeclaredPropertyNames()
          gets the names of properties defined only at this inheritance level in the model
 Iterable<String> getPropertyNames()
          gets the names of all properties defined by the model
 Class<?> getPropertyType(String propertyName)
           
 Object getPropertyValue(Object target, String propertyName)
           
 void setCollectionValue(Object target, String collectionName, Collection<?> value)
           
 void setPropertyValue(Object target, String propertyName, Object value)
           
 

Method Detail

getCollectionElementType

Class<?> getCollectionElementType(String collectionName)

getCollectionNames

Iterable<String> getCollectionNames()
gets the names of all collections defined by the model

Returns:
- collection names

getCollectionValue

Iterable<?> getCollectionValue(Object target,
                               String collectionName)

getDeclaredCollectionNames

Iterable<String> getDeclaredCollectionNames()
gets the names of collections defined only at this inheritance level in the model

Returns:
- collection names

getDeclaredPropertyNames

Iterable<String> getDeclaredPropertyNames()
gets the names of properties defined only at this inheritance level in the model

Returns:
- property names

getPropertyNames

Iterable<String> getPropertyNames()
gets the names of all properties defined by the model

Returns:
- property names

getPropertyType

Class<?> getPropertyType(String propertyName)

getPropertyValue

Object getPropertyValue(Object target,
                        String propertyName)

setCollectionValue

void setCollectionValue(Object target,
                        String collectionName,
                        Collection<?> value)

setPropertyValue

void setPropertyValue(Object target,
                      String propertyName,
                      Object value)


http://odata4j.org