public abstract class AbstractParser extends Object implements Parser
Modifier and Type | Class and Description |
---|---|
protected class |
AbstractParser.FieldDefinition |
Modifier and Type | Field and Description |
---|---|
protected List<String> |
availableExtensions |
protected int |
blankFieldCount |
protected IProjection |
defaultProjection |
protected DynObjectManager |
dynManager |
protected DynStruct |
dynStruct |
protected EditableFeatureType |
featureType |
protected File |
file |
protected GeometryManager |
geomanager |
protected Map<String,String> |
metadata |
Constructor and Description |
---|
AbstractParser(SeismicManager manager) |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getMetadataFieldNameSeparator, getMetadataToken, hasMetadata, hasMetadataFieldName
protected GeometryManager geomanager
protected DynObjectManager dynManager
protected DynStruct dynStruct
protected File file
protected EditableFeatureType featureType
protected int blankFieldCount
protected IProjection defaultProjection
public AbstractParser(SeismicManager manager)
public void initializeParser()
initializeParser
in interface Parser
public boolean isFileSupported(File file)
isFileSupported
in interface Parser
public String[] getOrderedFieldNames()
getOrderedFieldNames
in interface Parser
protected void addFieldDefinition(String nombre, int type)
public List<AbstractParser.FieldDefinition> getFieldDefinitions()
getFieldDefinitions
in interface Parser
protected void initializeDefinitions()
public int getFieldDefinitionType(String name)
getFieldDefinitionType
in interface Parser
protected void createDynObjectProjectInfo(DynObject dynObject)
public String getProjectYear()
getProjectYear
in interface Parser
public String getProjectName()
getProjectName
in interface Parser
public String getProjectId()
getProjectId
in interface Parser
public String getFieldDefinitionName(String name)
getFieldDefinitionName
in interface Parser
public String getFieldDefinitionName(int index)
getFieldDefinitionName
in interface Parser
public String getFieldDefinitionNewName(String name)
getFieldDefinitionNewName
in interface Parser
public String getFieldDefinitionNewName(int index)
getFieldDefinitionNewName
in interface Parser
public void setFieldDefinitionNewName(String name, String newName)
setFieldDefinitionNewName
in interface Parser
public abstract String getDescription()
getDescription
in interface Parser
public abstract boolean hasStartEndDelimiters()
hasStartEndDelimiters
in interface Parser
public abstract String getStartDelimiter()
getStartDelimiter
in interface Parser
public abstract String getEndDelimiter()
getEndDelimiter
in interface Parser
public abstract String getHeaderToken()
getHeaderToken
in interface Parser
public abstract boolean hasHeaderTokenRepited()
hasHeaderTokenRepited
in interface Parser
public abstract String getFieldDelimiter()
getFieldDelimiter
in interface Parser
public abstract boolean hasFieldName()
hasFieldName
in interface Parser
public abstract String getFieldNameSeparator()
getFieldNameSeparator
in interface Parser
protected void preParsingProcess()
protected void postParsingProcess()
public SeismicManager getDriverManager()
public void getFeatures()
protected void extractFeatures(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 List<DynObject> updateDataContent(DynStruct struct)
updateDataContent
in interface Parser
public List<DynObject> updateDataContent(DynStruct struct, List<String> fieldNames)
updateDataContent
in interface Parser
public Map<String,String> getMetadataInfo(File file)
getMetadataInfo
in interface Parser
public void readMetadata(File file)
readMetadata
in interface Parser
protected IProjection getProjectionData(String value)
protected boolean hasProjectionData(String key)
protected void readDocument(File file, boolean onlyFirst)
public List<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 setProjectId(String projectId)
setProjectId
in interface Parser
public void setProjectName(String projectName)
setProjectName
in interface Parser
public void setProjectYear(String projectYear)
setProjectYear
in interface Parser