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