org.odata4j.edm
Class EdmEntityType.Builder
java.lang.Object
org.odata4j.edm.EdmItem.Builder<T,TBuilder>
org.odata4j.edm.EdmType.Builder<T,TBuilder>
org.odata4j.edm.EdmStructuralType.Builder<EdmEntityType,EdmEntityType.Builder>
org.odata4j.edm.EdmEntityType.Builder
- All Implemented Interfaces:
- Named
- Enclosing class:
- EdmEntityType
public static class EdmEntityType.Builder
- extends EdmStructuralType.Builder<EdmEntityType,EdmEntityType.Builder>
- implements Named
Mutable builder for EdmEntityType
objects.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EdmEntityType.Builder
public EdmEntityType.Builder()
addKeys
public EdmEntityType.Builder addKeys(List<String> keys)
addKeys
public EdmEntityType.Builder addKeys(String... keys)
addNavigationProperties
public EdmEntityType.Builder addNavigationProperties(EdmNavigationProperty.Builder... navigationProperties)
addNavigationProperties
public EdmEntityType.Builder addNavigationProperties(List<EdmNavigationProperty.Builder> navProperties)
build
public EdmEntityType build()
- Specified by:
build
in class EdmType.Builder<EdmEntityType,EdmEntityType.Builder>
buildImpl
protected EdmEntityType buildImpl()
- Specified by:
buildImpl
in class EdmType.Builder<EdmEntityType,EdmEntityType.Builder>
builtFunc
public Func<EdmEntityType> builtFunc()
func1_getFQAliasName
public static Func1<EdmEntityType.Builder,String> func1_getFQAliasName()
func1_getFullyQualifiedTypeName
public static Func1<EdmEntityType.Builder,String> func1_getFullyQualifiedTypeName()
getAlias
public String getAlias()
getFQAliasName
public String getFQAliasName()
getFQBaseTypeName
public String getFQBaseTypeName()
getName
public String getName()
- Description copied from interface:
Named
- Gets the name.
- Specified by:
getName
in interface Named
- Returns:
- the name
getNavigationProperties
public List<EdmNavigationProperty.Builder> getNavigationProperties()
pred1_hasAlias
public static Predicate1<EdmEntityType.Builder> pred1_hasAlias()
setAlias
public EdmEntityType.Builder setAlias(String alias)
setBaseType
public EdmEntityType.Builder setBaseType(EdmEntityType.Builder baseType)
setBaseType
public EdmEntityType.Builder setBaseType(String baseTypeName)
setHasStream
public EdmEntityType.Builder setHasStream(Boolean hasStream)
http://odata4j.org