Class Expansion


  • public class Expansion
    extends Object
    Type safe builder of $expand queries. You can use it in a human readable way, e.g.:
    
     Expansion.of(EntityType.THING)
                            .with(ExpandedEntity.of(EntityType.LOCATIONS))
                            .and(ExpandedEntity.of(EntityType.DATASTREAMS, EntityType.OBSERVATIONS))
                            .and(ExpandedEntity.of(EntityType.DATASTREAMS, EntityType.SENSOR));
     
    This expansion would be valid for Thing requests and expand to the thing's locations, observations of the thing's datastreams and the sensor of each datastream of the thing.
    Author:
    Nils Sommer