public abstract class AbstractParser extends java.lang.Object implements Parser
Modifier and Type | Class and Description |
---|---|
protected class |
AbstractParser.FieldDefinition |
Modifier and Type | Field and Description |
---|---|
protected java.util.List<java.lang.String> |
availableExtensions |
protected int |
blankFieldCount |
protected IProjection |
defaultProjection |
protected DynObjectManager |
dynManager |
protected DynStruct |
dynStruct |
protected EditableFeatureType |
featureType |
protected java.io.File |
file |
protected GeometryManager |
geomanager |
protected java.util.Map<java.lang.String,java.lang.String> |
metadata |
Constructor and Description |
---|
AbstractParser(SeismicManager manager) |
Modifier and Type | Method and Description |
---|---|
protected void |
addFieldDefinition(java.lang.String nombre,
int type) |
abstract Parser |
clone() |
protected DynObject |
createDynObject(java.lang.String[] fields) |
protected void |
createDynObjectProjectInfo(DynObject dynObject) |
protected void |
extractFeatures(java.io.File file,
boolean onlyFirst) |
java.util.List<DynObject> |
getData() |
DynStruct |
getDataStruct() |
protected void |
getDataStructure() |
protected IProjection |
getDefaultProjection() |
abstract java.lang.String |
getDescription() |
SeismicManager |
getDriverManager() |
abstract java.lang.String |
getEndDelimiter() |
java.lang.String |
getEstado() |
java.util.List<java.lang.String> |
getExtensionSupported() |
void |
getFeatures() |
FeatureStore |
getFeatureStore() |
EditableFeatureType |
getFeatureType() |
java.lang.String |
getFieldDefinitionName(int index) |
java.lang.String |
getFieldDefinitionName(java.lang.String name) |
java.lang.String |
getFieldDefinitionNewName(int index) |
java.lang.String |
getFieldDefinitionNewName(java.lang.String name) |
java.util.List<AbstractParser.FieldDefinition> |
getFieldDefinitions() |
int |
getFieldDefinitionType(java.lang.String name) |
abstract java.lang.String |
getFieldDelimiter() |
protected java.util.List<java.lang.String> |
getFieldNames() |
abstract java.lang.String |
getFieldNameSeparator() |
protected java.lang.String |
getGeographicField(java.lang.String original) |
abstract java.lang.String |
getHeaderToken() |
java.util.Map<java.lang.String,java.lang.String> |
getMetadataInfo(java.io.File file) |
abstract java.lang.String |
getName() |
java.lang.String[] |
getOrderedFieldNames() |
java.lang.String |
getProjectId() |
IProjection |
getProjection() |
protected IProjection |
getProjectionData(java.lang.String value) |
java.lang.String |
getProjectName() |
java.lang.String |
getProjectYear() |
abstract java.lang.String |
getStartDelimiter() |
abstract boolean |
hasFieldName() |
abstract boolean |
hasHeader() |
abstract boolean |
hasHeaderTokenRepited() |
protected boolean |
hasProjectionData(java.lang.String key) |
abstract boolean |
hasStartEndDelimiters() |
protected void |
initializeDefinitions() |
void |
initializeParser() |
boolean |
isFileSupported(java.io.File file) |
java.util.List<DynObject> |
parseFile(java.io.File file) |
java.util.List<DynObject> |
parseFile(java.io.File file,
DynStruct struct) |
protected void |
postParsingProcess() |
protected void |
preParsingProcess() |
protected void |
readDocument(java.io.File file,
boolean onlyFirst) |
void |
readMetadata(java.io.File file) |
void |
setData(java.util.List<DynObject> data) |
void |
setDataStruct(DynStruct struct) |
void |
setEstado(java.lang.String estado) |
void |
setFieldDefinitionNewName(java.lang.String name,
java.lang.String newName) |
void |
setFile(java.io.File file) |
void |
setProjectId(java.lang.String projectId) |
void |
setProjection(IProjection proj) |
void |
setProjectName(java.lang.String projectName) |
void |
setProjectYear(java.lang.String projectYear) |
java.util.List<DynObject> |
updateDataContent() |
java.util.List<DynObject> |
updateDataContent(DynStruct struct) |
java.util.List<DynObject> |
updateDataContent(DynStruct struct,
java.util.List<java.lang.String> fieldNames) |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getMetadataFieldNameSeparator, getMetadataToken, hasMetadata, hasMetadataFieldName
protected GeometryManager geomanager
protected java.util.List<java.lang.String> availableExtensions
protected DynObjectManager dynManager
protected DynStruct dynStruct
protected java.io.File file
protected java.util.Map<java.lang.String,java.lang.String> metadata
protected EditableFeatureType featureType
protected int blankFieldCount
protected IProjection defaultProjection
public AbstractParser(SeismicManager manager)
public void initializeParser()
initializeParser
in interface Parser
public boolean isFileSupported(java.io.File file)
isFileSupported
in interface Parser
public java.lang.String[] getOrderedFieldNames()
getOrderedFieldNames
in interface Parser
protected void addFieldDefinition(java.lang.String nombre, int type)
public java.util.List<AbstractParser.FieldDefinition> getFieldDefinitions()
getFieldDefinitions
in interface Parser
protected void initializeDefinitions()
public int getFieldDefinitionType(java.lang.String name)
getFieldDefinitionType
in interface Parser
protected void createDynObjectProjectInfo(DynObject dynObject)
public java.lang.String getProjectYear()
getProjectYear
in interface Parser
public java.lang.String getProjectName()
getProjectName
in interface Parser
public java.lang.String getProjectId()
getProjectId
in interface Parser
public java.lang.String getFieldDefinitionName(java.lang.String name)
getFieldDefinitionName
in interface Parser
public java.lang.String getFieldDefinitionName(int index)
getFieldDefinitionName
in interface Parser
public java.lang.String getFieldDefinitionNewName(java.lang.String name)
getFieldDefinitionNewName
in interface Parser
public java.lang.String getFieldDefinitionNewName(int index)
getFieldDefinitionNewName
in interface Parser
public void setFieldDefinitionNewName(java.lang.String name, java.lang.String newName)
setFieldDefinitionNewName
in interface Parser
protected java.util.List<java.lang.String> getFieldNames()
public abstract java.lang.String getDescription()
getDescription
in interface Parser
public abstract boolean hasStartEndDelimiters()
hasStartEndDelimiters
in interface Parser
public abstract java.lang.String getStartDelimiter()
getStartDelimiter
in interface Parser
public abstract java.lang.String getEndDelimiter()
getEndDelimiter
in interface Parser
public abstract java.lang.String getHeaderToken()
getHeaderToken
in interface Parser
public abstract boolean hasHeaderTokenRepited()
hasHeaderTokenRepited
in interface Parser
public abstract java.lang.String getFieldDelimiter()
getFieldDelimiter
in interface Parser
public abstract boolean hasFieldName()
hasFieldName
in interface Parser
public abstract java.lang.String getFieldNameSeparator()
getFieldNameSeparator
in interface Parser
protected void preParsingProcess()
protected void postParsingProcess()
public SeismicManager getDriverManager()
public java.util.List<DynObject> parseFile(java.io.File file)
public void getFeatures()
protected void extractFeatures(java.io.File file, boolean onlyFirst)
public DynStruct getDataStruct()
getDataStruct
in interface Parser
public void setDataStruct(DynStruct struct)
setDataStruct
in interface Parser
public FeatureStore getFeatureStore()
public EditableFeatureType getFeatureType()
getFeatureType
in interface Parser
protected void getDataStructure()
public java.util.List<DynObject> updateDataContent()
public java.util.List<DynObject> updateDataContent(DynStruct struct)
updateDataContent
in interface Parser
public java.util.List<DynObject> updateDataContent(DynStruct struct, java.util.List<java.lang.String> fieldNames)
updateDataContent
in interface Parser
public java.util.Map<java.lang.String,java.lang.String> getMetadataInfo(java.io.File file)
getMetadataInfo
in interface Parser
public void readMetadata(java.io.File file)
readMetadata
in interface Parser
protected IProjection getProjectionData(java.lang.String value)
protected boolean hasProjectionData(java.lang.String key)
protected void readDocument(java.io.File file, boolean onlyFirst)
protected DynObject createDynObject(java.lang.String[] fields)
public java.util.List<java.lang.String> getExtensionSupported()
getExtensionSupported
in interface Parser
public IProjection getProjection()
getProjection
in interface Parser
public void setProjection(IProjection proj)
setProjection
in interface Parser
protected IProjection getDefaultProjection()
public void setData(java.util.List<DynObject> data)
protected java.lang.String getGeographicField(java.lang.String original)
public void setProjectId(java.lang.String projectId)
setProjectId
in interface Parser
public void setProjectName(java.lang.String projectName)
setProjectName
in interface Parser
public void setProjectYear(java.lang.String projectYear)
setProjectYear
in interface Parser
public void setEstado(java.lang.String estado)