private int orientationFlags()

in ConfigurableFeatureExtractor/src/main/java/org/apache/uima/tools/cfe/CommonFeatureMatcher.java [322:347]


    private int orientationFlags (Annotation ann, Annotation trg)
    {
        int result = CONSTANT_INGORE;
        if ((ann.getEnd() < trg.getBegin()) && (ann.getEnd() < trg.getBegin())) {
            result = CONSTANT_LEFTLEFT; 
        }
        else if ((ann.getBegin() < trg.getBegin()) && (ann.getEnd() <= trg.getEnd())) {
            result = CONSTANT_LEFTINSIDE; 
        }
        else if ((ann.getBegin() < trg.getBegin()) && (ann.getEnd() > trg.getEnd())) {
            result = CONSTANT_LEFTRIGHT; 
        }
        else if ((ann.getBegin() <= trg.getEnd()) && (ann.getEnd() <= trg.getEnd())) {
            result = CONSTANT_INSIDEINSIDE; 
        }
        else if ((ann.getBegin() <= trg.getEnd()) && (ann.getEnd() > trg.getEnd())) {
            result = CONSTANT_INSIDERIGHT; 
        }
        else if ((ann.getBegin() > trg.getEnd()) && (ann.getEnd() > trg.getEnd())) {
            result = CONSTANT_RIGHTRIGHT; 
        }
        else {
            // never happens
        }
        return result;
    }