Pepper  3.6.0
A highly extensible plattform for conversion and manipulationoflinguisticdata.
org.corpus_tools.pepper.modules.MappingSubject Class Reference

A subject is a container for SDocument or SCorpus object to be merged. More...

Public Member Functions

URI getResourceURI ()
 {@inheritDoc PepperMapper::getResourceURI()}
 
void setResourceURI (URI resourceURI)
 {@inheritDoc PepperMapper::setResourceURI(URI)}
 
Identifier getIdentifier ()
 Returns Identifier object corresponding to either SDocument or SCorpus which should be mapped. More...
 
void setIdentifier (Identifier sElementId)
 Sets Identifier object corresponding to either SDocument or SCorpus which should be mapped. More...
 
synchronized void setMappingResult (DOCUMENT_STATUS mappingResult)
 {@inheritDoc PepperMapperConnector::setMappingResult(DOCUMENT_STATUS)}
 
DOCUMENT_STATUS getMappingResult ()
 {@inheritDoc PepperMapperConnector::getMappingResult()}
 
DocumentController getDocumentController ()
 Returns the document controller, if one was set. More...
 
void setDocumentController (DocumentController documentController)
 If the set Identifier belongs to a SDocument, it's controller can be passed with this method. More...
 
String toString ()
 Returns a String representation of this object. More...
 

Protected Attributes

URI resourceURI = null
 URI of resource. More...
 
Identifier sElementId = null
 Identifier object corresponding to either SDocument or SCorpus which should be mapped
 
volatile DOCUMENT_STATUS mappingResult = null
 

Detailed Description

A subject is a container for SDocument or SCorpus object to be merged.

Further this container contains the DOCUMENT_STATUS and the URI where the resource is located

Author
Florian Zipser

Member Function Documentation

◆ getDocumentController()

DocumentController org.corpus_tools.pepper.modules.MappingSubject.getDocumentController ( )

Returns the document controller, if one was set.

This is useful in case the set Identifier belongs to a SDocument.

Returns
the controller for the SDocument

◆ getIdentifier()

Identifier org.corpus_tools.pepper.modules.MappingSubject.getIdentifier ( )

Returns Identifier object corresponding to either SDocument or SCorpus which should be mapped.

Returns

◆ setDocumentController()

void org.corpus_tools.pepper.modules.MappingSubject.setDocumentController ( DocumentController  documentController)

If the set Identifier belongs to a SDocument, it's controller can be passed with this method.

Parameters
documentControllerthe controller for the SDocument

◆ setIdentifier()

void org.corpus_tools.pepper.modules.MappingSubject.setIdentifier ( Identifier  sElementId)

Sets Identifier object corresponding to either SDocument or SCorpus which should be mapped.

Parameters
sElementId

◆ toString()

String org.corpus_tools.pepper.modules.MappingSubject.toString ( )

Returns a String representation of this object.

This representation should not be used for serialization/deserialization purposes.

Member Data Documentation

◆ resourceURI

URI org.corpus_tools.pepper.modules.MappingSubject.resourceURI = null
protected

URI of resource.

The URI could refer a directory or a file, which can be a corpus or a document.