org.odata4j.edm
Class EdmDataServices

java.lang.Object
  extended by org.odata4j.edm.EdmDataServices
Direct Known Subclasses:
EdmDataServicesDecorator

public class EdmDataServices
extends Object

The <edmx:DataServices> element contains the service metadata of a Data Service. This service metadata contains zero or more EDM conceptual schemas.

Since this is the root of a large metadata tree, convenience methods are included to help locate child metadata elements.

See Also:
[msdn] 2.2 <edmx:DataServices>

Nested Class Summary
static class EdmDataServices.Builder
          Mutable builder for EdmDataServices objects.
 
Field Summary
static EdmDataServices EMPTY
           
 
Constructor Summary
protected EdmDataServices(ODataVersion version, ImmutableList<EdmSchema> schemas, ImmutableList<PrefixedNamespace> namespaces)
           
 
Method Summary
 EdmComplexType findEdmComplexType(String complexTypeFQName)
           
 EdmEntitySet findEdmEntitySet(String entitySetName)
           
 EdmType findEdmEntityType(String fqName)
           
 EdmFunctionImport findEdmFunctionImport(String functionImportName)
           
 EdmPropertyBase findEdmProperty(String propName)
           
 EdmSchema findSchema(String namespace)
           
 Iterable<EdmAssociation> getAssociations()
           
 Iterable<EdmComplexType> getComplexTypes()
           
 EdmEntitySet getEdmEntitySet(EdmEntityType type)
           
 EdmEntitySet getEdmEntitySet(String entitySetName)
           
 Iterable<EdmEntitySet> getEntitySets()
           
 Iterable<EdmEntityType> getEntityTypes()
           
 ImmutableList<PrefixedNamespace> getNamespaces()
           
 ImmutableList<EdmSchema> getSchemas()
           
 Iterable<EdmStructuralType> getStructuralTypes()
           
 Iterable<EdmStructuralType> getSubTypes(EdmStructuralType t)
           
 String getVersion()
           
static EdmDataServices.Builder newBuilder()
           
static EdmDataServices.Builder newBuilder(EdmDataServices metadata)
           
 EdmType resolveType(String fqTypeName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EMPTY

public static final EdmDataServices EMPTY
Constructor Detail

EdmDataServices

protected EdmDataServices(ODataVersion version,
                          ImmutableList<EdmSchema> schemas,
                          ImmutableList<PrefixedNamespace> namespaces)
Method Detail

findEdmComplexType

public EdmComplexType findEdmComplexType(String complexTypeFQName)

findEdmEntitySet

public EdmEntitySet findEdmEntitySet(String entitySetName)

findEdmEntityType

public EdmType findEdmEntityType(String fqName)

findEdmFunctionImport

public EdmFunctionImport findEdmFunctionImport(String functionImportName)

findEdmProperty

public EdmPropertyBase findEdmProperty(String propName)

findSchema

public EdmSchema findSchema(String namespace)

getAssociations

public Iterable<EdmAssociation> getAssociations()

getComplexTypes

public Iterable<EdmComplexType> getComplexTypes()

getEdmEntitySet

public EdmEntitySet getEdmEntitySet(EdmEntityType type)

getEdmEntitySet

public EdmEntitySet getEdmEntitySet(String entitySetName)

getEntitySets

public Iterable<EdmEntitySet> getEntitySets()

getEntityTypes

public Iterable<EdmEntityType> getEntityTypes()

getNamespaces

public ImmutableList<PrefixedNamespace> getNamespaces()

getSchemas

public ImmutableList<EdmSchema> getSchemas()

getStructuralTypes

public Iterable<EdmStructuralType> getStructuralTypes()

getSubTypes

public Iterable<EdmStructuralType> getSubTypes(EdmStructuralType t)

getVersion

public String getVersion()

newBuilder

public static EdmDataServices.Builder newBuilder()

newBuilder

public static EdmDataServices.Builder newBuilder(EdmDataServices metadata)

resolveType

public EdmType resolveType(String fqTypeName)


http://odata4j.org