public interface EntitySource
Interface for entity providers.
Modifier and Type | Interface and Description |
---|---|
static class |
EntitySource.Layout
The layout of an entity source.
|
Modifier and Type | Method and Description |
---|---|
EntitySource.Layout |
getLayout()
Get this entity source’s layout, if one is available.
|
java.util.Map<java.lang.String,java.lang.Object> |
getMetadata()
Get metadata from this entity source.
|
java.lang.String |
getName()
Get the name of this entity source.
|
java.util.Set<EntityType> |
getTypes()
Get the entity types produced by this source.
|
ObjectStream<Entity> |
openStream()
Get the data from this entity source.
|
@Nonnull java.lang.String getName()
Get the name of this entity source.
@Nonnull java.util.Set<EntityType> getTypes()
Get the entity types produced by this source.
@Nullable EntitySource.Layout getLayout()
Get this entity source’s layout, if one is available. A source has a layout if it produces a single entity type with a known set of attributes.
null
if this source does not know its layout.@Nonnull ObjectStream<Entity> openStream() throws java.io.IOException
Get the data from this entity source.
java.io.IOException
@Nonnull java.util.Map<java.lang.String,java.lang.Object> getMetadata()
Get metadata from this entity source.