public class DataCreator extends Object
Constructor and Description |
---|
DataCreator(OData odata,
Edm edm) |
Modifier and Type | Method and Description |
---|---|
protected static Link |
buildMediaLink(String title,
String href) |
protected static Property |
createComplex(String name,
Property... properties) |
protected static Property |
createComplexCollection(String name,
List<Property>... propertiesList) |
protected Property |
createKeyNavAllPrimComplexValue(String name) |
protected static Property |
createPrimitive(String name,
Object value) |
protected static Property |
createPrimitiveCollection(String name,
Object... values) |
protected Map<String,EntityCollection> |
getData() |
protected static Calendar |
getDateTime(int year,
int month,
int day,
int hour,
int minute,
int second) |
protected static int |
getDuration(int days,
int hours,
int minutes,
int seconds) |
protected static Calendar |
getTime(int hour,
int minute,
int second) |
protected static void |
setLink(Entity entity,
String navigationPropertyName,
Entity target) |
protected static void |
setLinks(Entity entity,
String navigationPropertyName,
Entity... targets) |
protected Map<String,EntityCollection> getData()
protected static Property createPrimitiveCollection(String name, Object... values)
protected static Property createComplexCollection(String name, List<Property>... propertiesList)
protected static Calendar getDateTime(int year, int month, int day, int hour, int minute, int second)
protected static int getDuration(int days, int hours, int minutes, int seconds)
protected static Calendar getTime(int hour, int minute, int second)
Copyright © 2013–2015 The Apache Software Foundation. All rights reserved.