Class ExpandedEntity


  • public class ExpandedEntity
    extends Object
    An expanded entity is an entity to be included into a request.
    Author:
    Nils Sommer
    • Method Detail

      • from

        public static ExpandedEntity from​(EntityType... entities)
                                   throws InvalidRelationException
        Build an expanded entity. Entities can be nested to create an expanded entity, e.g. Thing/Locations in a Datastream request will include the Thing of the Datastream as well as all the Locations of the Thing.
        Parameters:
        entities - the entity types that construct this expanded entity
        Returns:
        the expanded entity
        Throws:
        InvalidRelationException - the entity types are not related to each other
      • getDirectSibling

        public EntityType getDirectSibling()