org.odata4j.producer.inmemory
Class PropertyModelDelegate

java.lang.Object
  extended by org.odata4j.producer.inmemory.PropertyModelDelegate
All Implemented Interfaces:
Delegate<PropertyModel>, PropertyModel
Direct Known Subclasses:
EntityIdFunctionPropertyModelDelegate, EnumsAsStringsPropertyModelDelegate

public abstract class PropertyModelDelegate
extends Object
implements Delegate<PropertyModel>, PropertyModel


Constructor Summary
PropertyModelDelegate()
           
 
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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.odata4j.core.Delegate
getDelegate
 

Constructor Detail

PropertyModelDelegate

public PropertyModelDelegate()
Method Detail

getCollectionElementType

public Class<?> getCollectionElementType(String collectionName)
Specified by:
getCollectionElementType in interface PropertyModel

getCollectionNames

public Iterable<String> getCollectionNames()
Description copied from interface: PropertyModel
gets the names of all collections defined by the model

Specified by:
getCollectionNames in interface PropertyModel
Returns:
- collection names

getCollectionValue

public Iterable<?> getCollectionValue(Object target,
                                      String collectionName)
Specified by:
getCollectionValue in interface PropertyModel

getDeclaredCollectionNames

public Iterable<String> getDeclaredCollectionNames()
Description copied from interface: PropertyModel
gets the names of collections defined only at this inheritance level in the model

Specified by:
getDeclaredCollectionNames in interface PropertyModel
Returns:
- collection names

getDeclaredPropertyNames

public Iterable<String> getDeclaredPropertyNames()
Description copied from interface: PropertyModel
gets the names of properties defined only at this inheritance level in the model

Specified by:
getDeclaredPropertyNames in interface PropertyModel
Returns:
- property names

getPropertyNames

public Iterable<String> getPropertyNames()
Description copied from interface: PropertyModel
gets the names of all properties defined by the model

Specified by:
getPropertyNames in interface PropertyModel
Returns:
- property names

getPropertyType

public Class<?> getPropertyType(String propertyName)
Specified by:
getPropertyType in interface PropertyModel

getPropertyValue

public Object getPropertyValue(Object target,
                               String propertyName)
Specified by:
getPropertyValue in interface PropertyModel

setCollectionValue

public void setCollectionValue(Object target,
                               String collectionName,
                               Collection<?> value)
Specified by:
setCollectionValue in interface PropertyModel

setPropertyValue

public void setPropertyValue(Object target,
                             String propertyName,
                             Object value)
Specified by:
setPropertyValue in interface PropertyModel


http://odata4j.org