class CompoundSegmentPredicate implements PredicateRuleProducer {

    @Override
    public String getPredicateRule() {
        if (booleanOperator.equalsIgnoreCase("and")) {
            return buildAndPredicate();
        } else if (booleanOperator.equalsIgnoreCase("or")) {
            return buildOrPredicate();
        } else if (booleanOperator.equalsIgnoreCase("xor")) {
            return buildXorPredicate();
        } else if (hasSurrogation()) {
            return buildSurrogationPredicate();
        }
        return null;
    }

    public  CompoundSegmentPredicate();
    public  CompoundSegmentPredicate(CompoundPredicate predicate);

}