public class ODataSchema
extends java.lang.Object
Schema object.| Constructor and Description |
|---|
ODataSchema(Schema schema) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsAssociationBetween(java.lang.String type1,
java.lang.String type2) |
java.util.Collection<Association> |
getAssociations() |
ODataEntityContainer |
getDefaultEntityContainer()
Retrieves default entity container in this schema content.
|
ODataEntityType |
getEntityType(java.lang.String type)
Retrieves an entity type defined in this schema.
|
java.util.Collection<java.lang.String> |
getEntityTypeNames()
Retrieves names of all entity types defined in this schema.
|
boolean |
isEmpty()
Checks whether content of this schema is empty.
|
public boolean isEmpty()
true, if this schema has empty content; false, if at least one element (XML element) is found in
the schema content.public java.util.Collection<java.lang.String> getEntityTypeNames()
public ODataEntityType getEntityType(java.lang.String type)
type - name of the type to retrievejava.lang.IllegalArgumentException - if the specified type does not exist in this schema.public boolean containsAssociationBetween(java.lang.String type1,
java.lang.String type2)
public java.util.Collection<Association> getAssociations()
public ODataEntityContainer getDefaultEntityContainer()
null, if default entity container is not present.Copyright © 2018 SAP SE. All Rights Reserved.