org.odata4j.internal
Class InternalUtil

java.lang.Object
  extended by org.odata4j.internal.InternalUtil

public class InternalUtil
extends Object


Constructor Summary
InternalUtil()
           
 
Method Summary
static String formatDateTime(LocalDateTime dateTime)
           
static String formatDateTimeOffset(DateTime dateTime)
           
static ODataVersion getDataServiceVersion(String headerValue)
           
static String getEntityRelId(EdmEntitySet entitySet, OEntityKey entityKey)
           
static String getEntityRelId(List<String> keyPropertyNames, List<OProperty<?>> entityProperties, String entitySetName)
           
static String getEntityRelId(OEntity oe)
           
static XMLEventReader2 newXMLEventReader(Reader reader)
           
static DateTime parseDateTime(String value)
           
static LocalTime parseTime(String value)
           
static String reflectionToString(Object obj)
           
static void sleep(long millis)
           
static
<T> T
toEntity(Class<T> entityType, OEntity oe)
           
static
<T> T
toPojo(Class<T> pojoClass, OEntity oe)
           
static String toString(DateTime utc)
           
static String toString(LocalTime time)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InternalUtil

public InternalUtil()
Method Detail

formatDateTime

public static String formatDateTime(LocalDateTime dateTime)

formatDateTimeOffset

public static String formatDateTimeOffset(DateTime dateTime)

getDataServiceVersion

public static ODataVersion getDataServiceVersion(String headerValue)

getEntityRelId

public static String getEntityRelId(EdmEntitySet entitySet,
                                    OEntityKey entityKey)

getEntityRelId

public static String getEntityRelId(List<String> keyPropertyNames,
                                    List<OProperty<?>> entityProperties,
                                    String entitySetName)

getEntityRelId

public static String getEntityRelId(OEntity oe)

newXMLEventReader

public static XMLEventReader2 newXMLEventReader(Reader reader)

parseDateTime

public static DateTime parseDateTime(String value)

parseTime

public static LocalTime parseTime(String value)

reflectionToString

public static String reflectionToString(Object obj)

sleep

public static void sleep(long millis)

toEntity

public static <T> T toEntity(Class<T> entityType,
                             OEntity oe)

toPojo

public static <T> T toPojo(Class<T> pojoClass,
                           OEntity oe)

toString

public static String toString(DateTime utc)

toString

public static String toString(LocalTime time)


http://odata4j.org