public class ODataMetadataDefaultImpl extends java.lang.Object implements ODataMetadata
ODataMetadata
.ODataPayload.Type
Constructor and Description |
---|
ODataMetadataDefaultImpl(java.util.Set<java.lang.String> metaNamespaces,
java.util.Map<java.lang.String,ODataMetaEntityType> metaEntityTypeMap,
java.util.Map<java.lang.String,ODataMetaComplexType> metaComplexTypeMap,
java.util.Map<java.lang.String,ODataMetaEntityContainer> entityContainerMap,
java.lang.String metadataXml)
Constructor of metadata default implementation.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getLatestResourcePath()
Returns the last resource path of the metadata.
|
ODataMetaComplexType |
getMetaComplex(java.lang.String fqName)
Retrieves the metadata representation of a complex type specified by its fully qualified name.
|
java.util.Set<java.lang.String> |
getMetaComplexNames()
Retrieves the set of fully qualified names of the complex types.
|
ODataMetaEntityType |
getMetaEntity(java.lang.String fqName)
Retrieves the metadata for an OData Entity Type specified by the given fully qualified name of the entity type.
|
ODataMetaEntityContainer |
getMetaEntityContainer(java.lang.String fqName)
Retrieves an entity container specified by its fully qualified name.
|
java.util.Set<java.lang.String> |
getMetaEntityContainerNames()
Retrieves the set of fully qualified names of metadata entity containers.
|
java.util.Set<java.lang.String> |
getMetaEntityNames()
Retrieves the set of fully qualified names of metadata entity types.
|
java.util.Set<java.lang.String> |
getMetaNamespaces()
Retrieves the Namespaces of the metadata.
|
java.lang.String |
getResourcePath()
Returns the resource path of the metadata.
|
java.lang.String |
getXml()
Retrieves the xml raw format of the metadata as a String.
|
int |
hashCode() |
public ODataMetadataDefaultImpl(java.util.Set<java.lang.String> metaNamespaces, java.util.Map<java.lang.String,ODataMetaEntityType> metaEntityTypeMap, java.util.Map<java.lang.String,ODataMetaComplexType> metaComplexTypeMap, java.util.Map<java.lang.String,ODataMetaEntityContainer> entityContainerMap, java.lang.String metadataXml)
metaNamespaces
- set of namespaces within this metadata. MUST be non-null, otherwise IllegalArgumentException is thrownmetaEntityTypeMap
- map of entity types where the key is the fully qualified entity type name and the value is the metadata representation of the entity type. MUST be non-null, otherwise
IllegalArgumentException is thrownmetaComplexTypeMap
- map of complex types where the key is the complex type name and the value is the metadata representation of the complex type. MUST be non-null, otherwise IllegalArgumentException is
thrownentityContainerMap
- map of entity containers where the key is the entity container name and the value is the metadata representation of the entity container. MUST be non-null, otherwise
IllegalArgumentException is thrownmetadataXml
- xml raw format of the metadata. MUST be non-null, otherwise IllegalArgumentException is thrownjava.lang.IllegalArgumentException
- if metaNamespaces, metaEntityTypeMap, metaComplexTypeMap or entityContainerMap is nullpublic java.util.Set<java.lang.String> getMetaNamespaces()
ODataMetadata
getMetaNamespaces
in interface ODataMetadata
public ODataMetaEntityType getMetaEntity(java.lang.String fqName)
ODataMetadata
getMetaEntity
in interface ODataMetadata
fqName
- fully qualified name of the entity type. MUST be non-null, otherwise NullPointerException is thrownpublic ODataMetaComplexType getMetaComplex(java.lang.String fqName)
ODataMetadata
getMetaComplex
in interface ODataMetadata
fqName
- fully qualified name of the complex type. MUST be non-null, otherwise NullPointerException is thrownpublic java.util.Set<java.lang.String> getMetaEntityNames()
ODataMetadata
getMetaEntityNames
in interface ODataMetadata
public java.util.Set<java.lang.String> getMetaEntityContainerNames()
ODataMetadata
getMetaEntityContainerNames
in interface ODataMetadata
public java.util.Set<java.lang.String> getMetaComplexNames()
ODataMetadata
getMetaComplexNames
in interface ODataMetadata
public ODataMetaEntityContainer getMetaEntityContainer(java.lang.String fqName)
ODataMetadata
getMetaEntityContainer
in interface ODataMetadata
fqName
- fully qualified name of the entity container. MUST be non-null, otherwise NullPointerException is thrownpublic java.lang.String getResourcePath()
ODataMetadata
getResourcePath
in interface ODataMetadata
public java.lang.String getLatestResourcePath()
ODataMetadata
getLatestResourcePath
in interface ODataMetadata
public java.lang.String getXml()
ODataMetadata
getXml
in interface ODataMetadata
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object