Class MappingSubject


  • public class MappingSubject
    extends Object
    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
    • Field Detail

      • resourceURI

        protected org.eclipse.emf.common.util.URI resourceURI
        URI of 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
        Identifier object corresponding to either SDocument or SCorpus which should be mapped
    • Constructor Detail

      • MappingSubject

        public MappingSubject()
    • 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()
        Returns Identifier object corresponding to either SDocument or SCorpus which should be mapped
        Returns:
      • setIdentifier

        public void setIdentifier​(org.corpus_tools.salt.graph.Identifier sElementId)
        Sets Identifier object corresponding to either SDocument or SCorpus which 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 set Identifier belongs to a SDocument.
        Returns:
        the controller for the SDocument
      • setDocumentController

        public void setDocumentController​(DocumentController documentController)
        If the set Identifier belongs to a SDocument, it's controller can be passed with this method.
        Parameters:
        documentController - the controller for the SDocument
      • toString

        public String toString()
        Returns a String representation of this object. This representation should not be used for serialization/deserialization purposes.
        Overrides:
        toString in class Object