public final class CoreUtils extends Object
public static ODataValue getODataValue(CommonEdmEnabledODataClient<?> client, org.apache.olingo.commons.core.edm.EdmTypeInfo type, Object obj)
public static ODataAnnotation getODataAnnotation(CommonEdmEnabledODataClient<?> client, String term, EdmType type, Object obj)
public static CommonODataProperty getODataProperty(CommonEdmEnabledODataClient<?> client, String name, org.apache.olingo.commons.core.edm.EdmTypeInfo type, Object obj)
public static void addProperties(CommonEdmEnabledODataClient<?> client, Map<String,Object> changes, CommonODataEntity entity)
public static void addProperties(CommonEdmEnabledODataClient<?> client, Map<String,Object> changes, ODataComplexValue<CommonODataProperty> entity)
public static void addAnnotations(CommonEdmEnabledODataClient<?> client, Map<Class<? extends AbstractTerm>,Object> annotations, ODataAnnotatable annotatable)
public static CommonURIBuilder<?> buildEditLink(CommonEdmEnabledODataClient<?> client, String entitySetURI, CommonODataEntity entity, Object key)
public static Object getKey(CommonEdmEnabledODataClient<?> client, EntityInvocationHandler typeHandler, Class<?> entityTypeRef, CommonODataEntity entity)
public static Object getObjectFromODataValue(ODataValue value, Type typeRef, AbstractService<?> service) throws InstantiationException, IllegalAccessException
public static Object getObjectFromODataValue(ODataValue value, Class<?> ref, AbstractService<?> service) throws InstantiationException, IllegalAccessException
public static Collection<Class<? extends AbstractTerm>> getAnnotationTerms(AbstractService<?> service, List<ODataAnnotation> annotations)
public static Class<?> getComplexTypeRef(AbstractService<?> service, ODataValue value)
public static URI getMediaEditLink(String name, CommonODataEntity entity)
public static URI getTargetEntitySetURI(CommonEdmEnabledODataClient<?> client, NavigationProperty property)
Copyright © 2013–2015 The Apache Software Foundation. All rights reserved.