public interface EntityFormat
Entity format interface. This is used for line-based text files.
Modifier and Type | Method and Description |
---|---|
AttributeSet |
getAttributes()
Get the set of attributes entities from format may have, if known.
|
java.lang.Class<? extends EntityBuilder> |
getEntityBuilder()
Get the entity builder that this format will use.
|
EntityType |
getEntityType()
Get the type of entities returned by this format.
|
int |
getHeaderLines()
Get the number of header lines this format uses.
|
LineEntityParser |
makeParser(java.util.List<java.lang.String> header)
Create an entity parser for a file.
|
com.fasterxml.jackson.databind.node.ObjectNode |
toJSON()
Create a JSON description of this entity format.
|
EntityType getEntityType()
Get the type of entities returned by this format.
@Nullable AttributeSet getAttributes()
Get the set of attributes entities from format may have, if known.
null
if that information is not known.@Nonnull java.lang.Class<? extends EntityBuilder> getEntityBuilder()
Get the entity builder that this format will use.
@Nonnegative int getHeaderLines()
Get the number of header lines this format uses.
LineEntityParser makeParser(java.util.List<java.lang.String> header)
Create an entity parser for a file.
header
- The header lines.com.fasterxml.jackson.databind.node.ObjectNode toJSON()
Create a JSON description of this entity format.