org.odata4j.edm
Class EdmSchema.Builder

java.lang.Object
  extended by org.odata4j.edm.EdmItem.Builder<EdmSchema,EdmSchema.Builder>
      extended by org.odata4j.edm.EdmSchema.Builder
Enclosing class:
EdmSchema

public static class EdmSchema.Builder
extends EdmItem.Builder<EdmSchema,EdmSchema.Builder>

Mutable builder for EdmSchema objects.


Constructor Summary
EdmSchema.Builder()
           
 
Method Summary
 EdmSchema.Builder addAssociations(Collection<EdmAssociation.Builder> associations)
           
 EdmSchema.Builder addComplexTypes(Collection<EdmComplexType.Builder> complexTypes)
           
 EdmSchema.Builder addEntityContainers(Collection<EdmEntityContainer.Builder> entityContainers)
           
 EdmSchema.Builder addEntityContainers(EdmEntityContainer.Builder... entityContainers)
           
 EdmSchema.Builder addEntityTypes(Collection<EdmEntityType.Builder> entityTypes)
           
 EdmSchema.Builder addEntityTypes(EdmEntityType.Builder... entityTypes)
           
 EdmSchema build()
           
 EdmEntityContainer.Builder findEntityContainer(String name)
           
 List<EdmAssociation.Builder> getAssociations()
           
 Iterable<EdmComplexType.Builder> getComplexTypes()
           
 List<EdmEntityContainer.Builder> getEntityContainers()
           
 List<EdmEntityType.Builder> getEntityTypes()
           
 String getNamespace()
           
 EdmSchema.Builder setAlias(String alias)
           
 EdmSchema.Builder setNamespace(String namespace)
           
 
Methods inherited from class org.odata4j.edm.EdmItem.Builder
getAnnotations, getDocumentation, setAnnotations, setDocumentation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EdmSchema.Builder

public EdmSchema.Builder()
Method Detail

addAssociations

public EdmSchema.Builder addAssociations(Collection<EdmAssociation.Builder> associations)

addComplexTypes

public EdmSchema.Builder addComplexTypes(Collection<EdmComplexType.Builder> complexTypes)

addEntityContainers

public EdmSchema.Builder addEntityContainers(Collection<EdmEntityContainer.Builder> entityContainers)

addEntityContainers

public EdmSchema.Builder addEntityContainers(EdmEntityContainer.Builder... entityContainers)

addEntityTypes

public EdmSchema.Builder addEntityTypes(Collection<EdmEntityType.Builder> entityTypes)

addEntityTypes

public EdmSchema.Builder addEntityTypes(EdmEntityType.Builder... entityTypes)

build

public EdmSchema build()

findEntityContainer

public EdmEntityContainer.Builder findEntityContainer(String name)

getAssociations

public List<EdmAssociation.Builder> getAssociations()

getComplexTypes

public Iterable<EdmComplexType.Builder> getComplexTypes()

getEntityContainers

public List<EdmEntityContainer.Builder> getEntityContainers()

getEntityTypes

public List<EdmEntityType.Builder> getEntityTypes()

getNamespace

public String getNamespace()

setAlias

public EdmSchema.Builder setAlias(String alias)

setNamespace

public EdmSchema.Builder setNamespace(String namespace)


http://odata4j.org