Class CategoryMapper

    • Constructor Detail

      • CategoryMapper

        public CategoryMapper​(OMRSAPIHelper omrsapiHelper)
    • Method Detail

      • map

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

        public EntityDetail map​(Category 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
      • updateNodeWithClassification

        protected boolean updateNodeWithClassification​(Category category,
                                                       Classification omasClassification)
      • getInlinedClassifications

        protected List<Classification> getInlinedClassifications​(Category node)
        A Classification either exists in the classifications associated with a node or as an inlined attribute (these are properties / attributes of a node that correspond to OMRS Classifications)
        Parameters:
        node - supplied term
        Returns:
        inlined classifications.