Class ODataEntityContainer
- java.lang.Object
-
- de.hybris.platform.odata2services.odata.ODataEntityContainer
-
public class ODataEntityContainer extends java.lang.ObjectA helper class for exploring and evaluating content of an ODataSchemaobject.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancontainsAssociationSetBetween(java.lang.String type1, java.lang.String type2)Checks whether this container contains anAssociationSetbetween the specified types.java.util.Collection<java.lang.String>getAssociationSetNames()Retrieves names of all AssociationSets present in the content of this container.java.util.Collection<java.lang.String>getEntitySetTypes()Retrieves all entity types referred from the EntitySet elements present in this container.
-
-
-
Method Detail
-
containsAssociationSetBetween
public boolean containsAssociationSetBetween(java.lang.String type1, java.lang.String type2)Checks whether this container contains anAssociationSetbetween the specified types.- Parameters:
type1- simple (not fully qualified) type name for the one end of the association.type2- simple (not fully qualified) type name for the other end of the association.- Returns:
true, if suchAssociationSetis present in the content of this container;false, otherwise.
-
getEntitySetTypes
public java.util.Collection<java.lang.String> getEntitySetTypes()
Retrieves all entity types referred from the EntitySet elements present in this container.- Returns:
- a collection of all entity types. The types are stripped of the schema name, so if EntitySet type is
"MyNamespace.MyType", then only"MyType"is returned. If there are no entity sets defined in this container, then an empty collection is returned.
-
getAssociationSetNames
public java.util.Collection<java.lang.String> getAssociationSetNames()
Retrieves names of all AssociationSets present in the content of this container.- Returns:
- a collection of all association set names or an empty collection, if this container does not have a single
AssociationSet.
-
-