Class PepperMapperImpl

    • Constructor Detail

      • PepperMapperImpl

        public PepperMapperImpl()
    • Method Detail

      • getResourceURI

        public org.eclipse.emf.common.util.URI getResourceURI()
        {@inheritDoc PepperMapper#getResourceURI()}
        Specified by:
        getResourceURI in interface PepperMapper
        Returns:
        uri of resource
      • setResourceURI

        public void setResourceURI​(org.eclipse.emf.common.util.URI resourceURI)
        {@inheritDoc PepperMapper#setResourceURI(URI)}
        Specified by:
        setResourceURI in interface PepperMapper
        Parameters:
        resourceURI - uri of resource
      • getDocument

        public org.corpus_tools.salt.common.SDocument getDocument()
        {@inheritDoc PepperMapper#getDocument()}
        Specified by:
        getDocument in interface PepperMapper
        Returns:
        SDocument object to be mapped
      • setDocument

        public void setDocument​(org.corpus_tools.salt.common.SDocument sDocument)
        {@inheritDoc PepperMapper#setDocument(SDocument)}
        Specified by:
        setDocument in interface PepperMapper
        Parameters:
        sDocument - SDocument object to be mapped
      • getCorpus

        public org.corpus_tools.salt.common.SCorpus getCorpus()
        {@inheritDoc PepperMapper#getCorpus()}
        Specified by:
        getCorpus in interface PepperMapper
        Returns:
        SCorpus object to be mapped
      • setCorpus

        public void setCorpus​(org.corpus_tools.salt.common.SCorpus sCorpus)
        {@inheritDoc PepperMapper#setCorpus(SCorpus)}
        Specified by:
        setCorpus in interface PepperMapper
        Parameters:
        sCorpus - SCorpus object to be mapped
      • initialize

        protected void initialize()
        This method initializes this object and is called by the constructor. OVERRIDE THIS METHOD FOR CUSTOMIZED MAPPING.
      • mapSDocument

        public DOCUMENT_STATUS mapSDocument()
        {@inheritDoc PepperMapper#mapSDocument()} OVERRIDE THIS METHOD FOR CUSTOMIZED MAPPING. NOTE: This method is only called if the element to be mapped is of type SDocument, i.e., if this.getDocument() != null!
        Specified by:
        mapSDocument in interface PepperMapper
      • mapSCorpus

        public DOCUMENT_STATUS mapSCorpus()
        {@inheritDoc PepperMapper#mapSCorpus()} OVERRIDE THIS METHOD FOR CUSTOMIZED MAPPING. NOTE: This method is only called if the element to be mapped is of type SCorpus, i.e., if this.getCorpus() != null!
        Specified by:
        mapSCorpus in interface PepperMapper
      • addProgress

        public void addProgress​(Double progress)
        {@inheritDoc PepperMapper#addProgress(Double)}
        Specified by:
        addProgress in interface PepperMapper
        Parameters:
        progress - the progress must be a value between 0 for 0% and 1 for 100%
      • setProgress

        public void setProgress​(Double progress)
        {@inheritDoc PepperMapper#setProgress(Double)} OVERRIDE THIS METHOD FOR CUSTOMIZED MAPPING.
        Specified by:
        setProgress in interface PepperMapper
        Parameters:
        progress - the progress must be a value between 0 for 0% and 1 for 100%
      • readXMLResource

        protected void readXMLResource​(DefaultHandler2 contentHandler,
                                       org.eclipse.emf.common.util.URI documentLocation)
        Helper method to read an xml file with a DefaultHandler2 implementation given as contentHandler. It is assumed, that the file encoding is set to UTF-8.
        Parameters:
        contentHandler - DefaultHandler2 implementation
        documentLocation - location of the xml-file
      • setPepperMapperController

        public void setPepperMapperController​(PepperMapperController controller)
        Sets the controller of this mapper, to grant n access to Pepper via the controller.
        Specified by:
        setPepperMapperController in interface PepperMapper
        Parameters:
        controller - controller for this object