org.odata4j.core
Class OFuncs

java.lang.Object
  extended by org.odata4j.core.OFuncs

public class OFuncs
extends Object

A static factory to create useful generic function instances.


Method Summary
static Runnable asRunnable(Func<?> func)
           
static Func1<EdmType,String> edmTypeFullyQualifiedTypeName()
           
static
<TProperty>
Func1<OEntity,TProperty>
entityPropertyValue(String propName, Class<TProperty> propClass)
           
static
<T extends Named>
Func1<T,String>
name(Class<T> namedType)
           
static
<T> Func1<NamedValue<T>,OProperty<T>>
namedValueToProperty()
           
static Func1<NamedValue,OProperty<?>> namedValueToPropertyRaw()
           
static Func1<OLink,String> olinkTitle()
           
static
<T extends Titled>
Func1<T,String>
title(Class<T> titledType)
           
static
<T1,T2> Func1<Object,T2>
widen(Func1<T1,T2> fn)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

asRunnable

public static Runnable asRunnable(Func<?> func)

edmTypeFullyQualifiedTypeName

public static Func1<EdmType,String> edmTypeFullyQualifiedTypeName()

entityPropertyValue

public static <TProperty> Func1<OEntity,TProperty> entityPropertyValue(String propName,
                                                                       Class<TProperty> propClass)

name

public static <T extends Named> Func1<T,String> name(Class<T> namedType)

namedValueToProperty

public static <T> Func1<NamedValue<T>,OProperty<T>> namedValueToProperty()

namedValueToPropertyRaw

public static Func1<NamedValue,OProperty<?>> namedValueToPropertyRaw()

olinkTitle

public static Func1<OLink,String> olinkTitle()

title

public static <T extends Titled> Func1<T,String> title(Class<T> titledType)

widen

public static <T1,T2> Func1<Object,T2> widen(Func1<T1,T2> fn)


http://odata4j.org