Class GlossaryMapper

    • Constructor Detail

      • GlossaryMapper

        public GlossaryMapper​(OMRSAPIHelper omrsapiHelper)
    • Method Detail

      • map

        public Glossary map​(EntityDetail entityDetail)
        Map EntityDetail to Glossary or a sub type of Glossary
        Parameters:
        entityDetail - the supplied EntityDetail
        Returns:
        Glossary the equivalent Glossary to the supplied entityDetail.
      • map

        public EntityDetail map​(Glossary node)
        Description copied from interface: INodeMapper
        Map from a Subject Area OMAS Node to an OMRS EntityDetail
        Parameters:
        node - a Subject Area OMAS Node
        Returns:
        an OMRS EntityDetail
      • mapPrimitiveToNode

        protected boolean mapPrimitiveToNode​(Glossary glossary,
                                             String propertyName,
                                             Object value)
        Map a primitive omrs property to the glossary object.
        Overrides:
        mapPrimitiveToNode in class EntityDetailMapper<Glossary>
        Parameters:
        glossary - the glossary to be updated
        propertyName - the omrs property name
        value - the omrs primitive property value
        Returns:
        true if the propertyName was recognised and mapped to the Node, otherwise false
      • updateNodeWithClassification

        protected boolean updateNodeWithClassification​(Glossary glossary,
                                                       Classification omasClassification)