public class Salt2PAULAMapper extends org.corpus_tools.pepper.impl.PepperMapperImpl implements PAULAXMLDictionary, FilenameFilter
| Modifier and Type | Field and Description |
|---|---|
static String |
ID_PREFIX
a prefix for ids, which starts with a numeric
|
static String |
NO_LAYER |
static String |
PATH_DTD |
controller, progress, propsATT_BASE, ATT_FEAT_FEAT_DESC, ATT_FEAT_FEAT_EXP, ATT_FEAT_FEAT_TAR, ATT_FEAT_FEAT_VAL, ATT_HEADER_PAULA_ID, ATT_HEADER_TYPE, ATT_HREF, ATT_ID, ATT_MARK_MARK_TYPE, ATT_MULTI_FEAT_NAME, ATT_MULTI_FEAT_VALUE, ATT_PAULA_ID, ATT_REL_REL_TARGET, ATT_STRUCT_REL_TYPE, ATT_TYPE, ATT_VERSION, KW_AUDIO, LINE_SEPARATOR, MARK_LIST_CLOSE_TAG, PAULA_CLOSE_TAG, PAULA_FEAT_DOCTYPE_TAG, PAULA_MARK_DOCTYPE_TAG, PAULA_REL_DOCTYPE_TAG, PAULA_STRUCT_DOCTYPE_TAG, PAULA_TEXT_DOCTYPE_TAG, PAULA_TOKEN_FILE_CLOSING, STRUCT_LIST_CLOSE_TAG, TAG_FEAT_FEAT, TAG_FEAT_FEATLIST, TAG_HEADER, TAG_HEADER_XML, TAG_MARK_MARK, TAG_MARK_MARKLIST, TAG_MULTI_FEAT, TAG_MULTI_MULTIFEAT, TAG_MULTI_MULTIFEATLIST, TAG_PAULA, TAG_PAULA_OPEN, TAG_REL_REL, TAG_REL_RELLIST, TAG_STRUCT_REL, TAG_STRUCT_STRUCT, TAG_STRUCT_STRUCTLIST, TAG_TEXT_BODY, VALUE_MARK_MARK_TYPE, VERSION, XLINK_URI| Constructor and Description |
|---|
Salt2PAULAMapper() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(File f,
String s)
Implementation for FilenameFilter.
|
String |
checkId(String id)
Checks whether an id starts with a numeric, if true, the id will be
prefixed with
ID_PREFIX |
File |
generateFileName(org.corpus_tools.salt.graph.Label anno)
Returns a filename, where to store the given SAnnotation.
|
File |
generateFileName(org.corpus_tools.salt.core.SNode sNode)
Returns a filename, where to store the given SNode.
|
File |
generateFileName(org.corpus_tools.salt.core.SNode sNode,
org.corpus_tools.salt.common.STextualDS sText)
Returns a filename, where to store the given SNode.
|
File |
generateFileName(org.corpus_tools.salt.core.SRelation<? extends org.corpus_tools.salt.core.SNode,? extends org.corpus_tools.salt.core.SNode> sRelation)
Returns a filename, where to store the given
SRelation. |
String |
generatePaulaType(org.corpus_tools.salt.graph.IdentifiableElement id)
Generates a Paula type from the layers of passed
SNode object. |
String |
generateXPointer(org.corpus_tools.salt.graph.IdentifiableElement target,
File base)
Generates an xpointer for a set of
SNodes. |
String |
generateXPointer(List<? extends org.corpus_tools.salt.graph.IdentifiableElement> targets,
File base)
Generates an xpointer for a set of
SIdentifiableElements. |
org.eclipse.emf.common.util.URI |
getResourcePath()
Returns the path to the location of additional resources.
|
org.corpus_tools.pepper.common.DOCUMENT_STATUS |
mapSCorpus()
Maps
SMetaAnnotation obejcts. |
org.corpus_tools.pepper.common.DOCUMENT_STATUS |
mapSDocument()
OVERRIDE THIS METHOD FOR CUSTOMIZED MAPPING.
|
void |
mapSMedialDS()
Maps audio data as data source.
|
void |
mapSpans()
Maps all
SSpan objects. |
void |
mapTextualDataSources()
Maps all
STextualDS objects. |
void |
mapTokens()
Maps all
SToken objects. |
void |
setResourcePath(org.eclipse.emf.common.util.URI resources)
Method for setting a reference to the path where the resources for the
PAULAExporter (e.g.
|
addProgress, getCorpus, getDocument, getMappingResult, getMappingSubjects, getPepperMapperController, getProgress, getProperties, getResourceURI, initialize, readXMLResource, setCorpus, setDocument, setMappingResult, setPepperMapperController, setProgress, setProperties, setResourceURIpublic static final String PATH_DTD
public static final String ID_PREFIX
public static final String NO_LAYER
public org.eclipse.emf.common.util.URI getResourcePath()
public void setResourcePath(org.eclipse.emf.common.util.URI resources)
resources - public boolean accept(File f, String s)
accept in interface FilenameFilterpublic org.corpus_tools.pepper.common.DOCUMENT_STATUS mapSCorpus()
SMetaAnnotation obejcts.mapSCorpus in interface org.corpus_tools.pepper.modules.PepperMappermapSCorpus in class org.corpus_tools.pepper.impl.PepperMapperImplpublic org.corpus_tools.pepper.common.DOCUMENT_STATUS mapSDocument()
mapSDocument in interface org.corpus_tools.pepper.modules.PepperMappermapSDocument in class org.corpus_tools.pepper.impl.PepperMapperImplpublic void mapTextualDataSources()
STextualDS objects.public void mapTokens()
SToken objects.public void mapSMedialDS()
public void mapSpans()
SSpan objects.public String checkId(String id)
ID_PREFIXpublic String generateXPointer(org.corpus_tools.salt.graph.IdentifiableElement target, File base)
SNodes.targets - public String generateXPointer(List<? extends org.corpus_tools.salt.graph.IdentifiableElement> targets, File base)
SIdentifiableElements.targets - public String generatePaulaType(org.corpus_tools.salt.graph.IdentifiableElement id)
SNode object.sNode - public File generateFileName(org.corpus_tools.salt.core.SNode sNode, org.corpus_tools.salt.common.STextualDS sText)
sNode - SNode to which a filename has to be generatedsText - STextualDS node, which is referred by this node (only
in case of node is of type SToken)SNodepublic File generateFileName(org.corpus_tools.salt.core.SNode sNode)
sNode - SNode to which a filename has to be generatedSNodepublic File generateFileName(org.corpus_tools.salt.core.SRelation<? extends org.corpus_tools.salt.core.SNode,? extends org.corpus_tools.salt.core.SNode> sRelation)
SRelation.sNode - SNode to which a filename has to be generatedSNodepublic File generateFileName(org.corpus_tools.salt.graph.Label anno)
sNode - SNode to which a filename has to be generatedSNodeCopyright © 2009–2016 Humboldt-Universität zu Berlin, INRIA. All rights reserved.