Class ODataEntityContainer

java.lang.Object
de.hybris.platform.odata2services.odata.ODataEntityContainer

public class ODataEntityContainer extends Object
A helper class for exploring and evaluating content of an OData Schema object.
  • Method Details

    • containsAssociationSetBetween

      public boolean containsAssociationSetBetween(String type1, String type2)
      Checks whether this container contains an AssociationSet between 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 such AssociationSet is present in the content of this container; false, otherwise.
    • getEntitySetTypes

      public Collection<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 Collection<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.