Package de.fraunhofer.iosb.ilt.sta.query
Class ExpandedEntity
- java.lang.Object
-
- de.fraunhofer.iosb.ilt.sta.query.ExpandedEntity
-
public class ExpandedEntity extends Object
An expanded entity is an entity to be included into a request.- Author:
- Nils Sommer
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ExpandedEntity
from(EntityType... entities)
Build an expanded entity.EntityType
getDirectSibling()
String
toString()
-
-
-
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()
-
-