Class ODataEntityContainer


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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean containsAssociationSetBetween​(java.lang.String type1, java.lang.String type2)
      Checks whether this container contains an AssociationSet between 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • containsAssociationSetBetween

        public boolean containsAssociationSetBetween​(java.lang.String type1,
                                                     java.lang.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 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.