Package | Description |
---|---|
org.apache.commons.flatfile |
Entity interface hierarchy and basic implementations.
|
org.apache.commons.flatfile.dsl |
Contains the DSL-based EntityFactory and supporting classes.
|
org.apache.commons.flatfile.entityfactory |
Basic EntityFactory implementations.
|
org.apache.commons.flatfile.morph |
Contains Flatfile's Morph Reflector/Transformer implementations.
|
Modifier and Type | Interface and Description |
---|---|
interface |
EntityCollection
An entity that is a collection of child entities.
|
interface |
IndexedEntityCollection
EntityCollection whose children are indexed.
|
interface |
NamedEntityCollection
EntityCollection whose children are mapped to a name.
|
Modifier and Type | Class and Description |
---|---|
class |
DynamicField
Dynamically-resizable field.
|
class |
EntityArray
Entity collection with the following approach: a size (number of children)
and a prototypical child are assigned.
|
class |
EntityCollectionSupport
Implementation of common operations for an EntityCollection.
|
class |
EntityMap
Basic implementation of NamedEntityCollection.
|
class |
EntitySupport
Generic entity support stuff.
|
class |
Field
Stores string representations of objects in a (fixed-length) byte array.
|
class |
FieldSupport
Support and basic field options.
|
class |
InputFilteringDynamicField
Dynamic field with filtered input.
|
class |
PadJustifyFieldSupport
Support for fields with pad/justify.
|
Modifier and Type | Method and Description |
---|---|
Entity |
Entity.clone()
Clone oneself.
|
Entity |
IndexedEntityCollection.getChild(int index)
Get the child at the specified index.
|
Entity |
EntityArray.getChild(int index)
Get the child at the specified index.
|
Entity |
NamedEntityCollection.getChild(String name)
Get the specified child.
|
Entity |
EntityMap.getChild(String name)
Get the specified child.
|
Entity |
EntityFactory.getEntity(Object cue)
Get an Entity.
|
Entity |
EntityArray.getPrototype()
Get the prototype.
|
static Entity |
ImmutableEntity.of(Entity e)
Get an immutable instance of
e . |
Modifier and Type | Method and Description |
---|---|
Map<String,Entity> |
EntityMap.getChildMap()
Get a map of the children.
|
Collection<Entity> |
EntityMap.getChildren()
Get the children.
|
Collection<Entity> |
EntityCollection.getChildren()
Get the children.
|
Collection<Entity> |
EntityArray.getChildren()
Get the children.
|
Modifier and Type | Method and Description |
---|---|
void |
EntityMap.add(String name,
Entity child)
Add a child.
|
static Entity |
ImmutableEntity.of(Entity e)
Get an immutable instance of
e . |
void |
EntityArray.setPrototype(Entity prototype)
Set the prototype.
|
protected boolean |
EntityCollectionSupport.shouldSuppress(Entity child)
Learn whether the specified child should be suppressed.
|
Constructor and Description |
---|
EntityArray(Entity prototype)
Create a new EntityArray with the specified prototype.
|
EntityArray(Entity prototype,
int size)
Create a new IndexedEntityCollection.
|
Modifier and Type | Method and Description |
---|---|
Entity |
EntityTreeParser.createEntity(EntityDefinition def) |
protected Entity |
EntityTreeParser.entity(antlr.collections.AST _t) |
protected Entity |
EntityTreeParser.field(antlr.collections.AST _t) |
protected Entity |
EntityTreeParser.fieldDef(antlr.collections.AST _t) |
Entity |
ParserEntityFactory.getEntity(Object cue)
Get an Entity.
|
protected Entity |
EntityTreeParser.immutable(antlr.collections.AST _t,
Entity e) |
protected Entity |
EntityTreeParser.typeRef(antlr.collections.AST _t) |
protected Entity |
EntityTreeParser.value(antlr.collections.AST _t,
Entity e) |
Modifier and Type | Method and Description |
---|---|
protected void |
EntityTreeParser.entityOption(antlr.collections.AST _t,
Entity e) |
protected void |
EntityTreeParser.entityOptions(antlr.collections.AST _t,
Entity e) |
protected Entity |
EntityTreeParser.immutable(antlr.collections.AST _t,
Entity e) |
protected Entity |
EntityTreeParser.value(antlr.collections.AST _t,
Entity e) |
Modifier and Type | Method and Description |
---|---|
Entity |
CompositeEntityFactory.getEntity(Object cue)
Get an Entity.
|
Entity |
CloningEntityFactory.getEntity(Object cue)
Get an Entity.
|
Constructor and Description |
---|
CloningEntityFactory(Map<? extends Object,? extends Entity> lookup)
Create a new CloningEntityFactory.
|
Modifier and Type | Method and Description |
---|---|
protected Entity |
IndexedEntityCollectionReflector.getEntity(Object container,
int index)
Get the child entity at index
index . |
protected Entity |
BaseEntityCollectionReflector.getEntity(Object container,
int index)
Get the child entity at index
index . |
protected Entity |
NamedEntityCollectionReflector.getEntity(Object bean,
String propertyName)
Get the named child entity.
|
protected Entity |
IndexedEntityCollectionReflector.getEntity(Object bean,
String propertyName)
Get the named child entity.
|
protected Entity |
BaseEntityCollectionReflector.getEntity(Object bean,
String propertyName)
Get the named child entity.
|
Modifier and Type | Method and Description |
---|---|
protected Iterator<Entity> |
BaseEntityCollectionReflector.getIteratorImpl(Object o) |
Modifier and Type | Method and Description |
---|---|
protected void |
BaseEntityCollectionReflector.setEntityValue(Entity e,
Object value)
Set the value of an Entity
|
Copyright © 2008-2016 The Apache Software Foundation. All Rights Reserved.