Package org.corpus_tools.pepper.modules
Class MappingSubject
- java.lang.Object
-
- org.corpus_tools.pepper.modules.MappingSubject
-
public class MappingSubject extends Object
A subject is a container forSDocumentorSCorpusobject to be merged. Further this container contains theDOCUMENT_STATUSand theURIwhere the resource is located- Author:
- Florian Zipser
-
-
Field Summary
Fields Modifier and Type Field Description protected DOCUMENT_STATUSmappingResultprotected org.eclipse.emf.common.util.URIresourceURIURIof resource.protected org.corpus_tools.salt.graph.IdentifiersElementIdIdentifierobject corresponding to eitherSDocumentorSCorpuswhich should be mapped
-
Constructor Summary
Constructors Constructor Description MappingSubject()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DocumentControllergetDocumentController()Returns the document controller, if one was set.org.corpus_tools.salt.graph.IdentifiergetIdentifier()ReturnsIdentifierobject corresponding to eitherSDocumentorSCorpuswhich should be mappedDOCUMENT_STATUSgetMappingResult(){@inheritDoc PepperMapperConnector#getMappingResult()}org.eclipse.emf.common.util.URIgetResourceURI(){@inheritDoc PepperMapper#getResourceURI()}voidsetDocumentController(DocumentController documentController)If the setIdentifierbelongs to aSDocument, it's controller can be passed with this method.voidsetIdentifier(org.corpus_tools.salt.graph.Identifier sElementId)SetsIdentifierobject corresponding to eitherSDocumentorSCorpuswhich should be mappedvoidsetMappingResult(DOCUMENT_STATUS mappingResult){@inheritDoc PepperMapperConnector#setMappingResult(DOCUMENT_STATUS)}voidsetResourceURI(org.eclipse.emf.common.util.URI resourceURI){@inheritDoc PepperMapper#setResourceURI(URI)}StringtoString()Returns a String representation of this object.
-
-
-
Field Detail
-
resourceURI
protected org.eclipse.emf.common.util.URI resourceURI
URIof resource. The URI could refer a directory or a file, which can be a corpus or a document.
-
sElementId
protected org.corpus_tools.salt.graph.Identifier sElementId
Identifierobject corresponding to eitherSDocumentorSCorpuswhich should be mapped
-
mappingResult
protected volatile DOCUMENT_STATUS mappingResult
-
-
Method Detail
-
getResourceURI
public org.eclipse.emf.common.util.URI getResourceURI()
{@inheritDoc PepperMapper#getResourceURI()}
-
setResourceURI
public void setResourceURI(org.eclipse.emf.common.util.URI resourceURI)
{@inheritDoc PepperMapper#setResourceURI(URI)}
-
getIdentifier
public org.corpus_tools.salt.graph.Identifier getIdentifier()
ReturnsIdentifierobject corresponding to eitherSDocumentorSCorpuswhich should be mapped- Returns:
-
setIdentifier
public void setIdentifier(org.corpus_tools.salt.graph.Identifier sElementId)
SetsIdentifierobject corresponding to eitherSDocumentorSCorpuswhich should be mapped- Parameters:
sElementId-
-
setMappingResult
public void setMappingResult(DOCUMENT_STATUS mappingResult)
{@inheritDoc PepperMapperConnector#setMappingResult(DOCUMENT_STATUS)}
-
getMappingResult
public DOCUMENT_STATUS getMappingResult()
{@inheritDoc PepperMapperConnector#getMappingResult()}
-
getDocumentController
public DocumentController getDocumentController()
Returns the document controller, if one was set. This is useful in case the setIdentifierbelongs to aSDocument.- Returns:
- the controller for the
SDocument
-
setDocumentController
public void setDocumentController(DocumentController documentController)
If the setIdentifierbelongs to aSDocument, it's controller can be passed with this method.- Parameters:
documentController- the controller for theSDocument
-
-