org.odata4j.producer
Class Responses

java.lang.Object
  extended by org.odata4j.producer.Responses

public class Responses
extends Object

A static factory to create immutable EntitiesResponse, EntityResponse, or PropertyResponse instances.


Method Summary
static EntitiesResponse entities(List<OEntity> entities, EdmEntitySet entitySet, Integer inlineCount, String skipToken)
          Create a new EntitiesResponse instance.
static EntityResponse entity(OEntity entity)
          Create a new EntityResponse instance.
static PropertyResponse property(OProperty<?> property)
          Create a new PropertyResponse instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

entities

public static EntitiesResponse entities(List<OEntity> entities,
                                        EdmEntitySet entitySet,
                                        Integer inlineCount,
                                        String skipToken)
Create a new EntitiesResponse instance.

Parameters:
entities - the OData entities, if any
entitySet - the entity-set
inlineCount - the inline-count value, if necessary
skipToken - the continuation-token, if necessary
Returns:
a new EntitiesResponse instance

entity

public static EntityResponse entity(OEntity entity)
Create a new EntityResponse instance.

Parameters:
entity - the OData entity
Returns:
a new EntityResponse instance

property

public static PropertyResponse property(OProperty<?> property)
Create a new PropertyResponse instance.

Parameters:
property - the property value
Returns:
a new PropertyResponse instance


http://odata4j.org