private char getRelationFromRels ( char builtForRel , char glossRel ) { if ( builtForRel == IMappingElement . EQUIVALENCE ) { return glossRel ; } if ( builtForRel == IMappingElement . LESS_GENERAL ) { if ( ( glossRel == IMappingElement . LESS_GENERAL ) || ( glossRel == IMappingElement . EQUIVALENCE ) ) { return IMappingElement . LESS_GENERAL ; } } if ( builtForRel == IMappingElement . MORE_GENERAL ) { if ( ( glossRel == IMappingElement . MORE_GENERAL ) || ( glossRel == IMappingElement . EQUIVALENCE ) ) { return IMappingElement . MORE_GENERAL ; } } return IMappingElement . IDK ; }
Decides which relation to return as a function of relation for which extended gloss was built .