public String getString(Segment segment, int segmentNo) {
        switch (segment) {
            case A:
                return getStringForSegmentA(segmentNo);
            case B:
                return getStringForSegmentB(segmentNo);
            case C:
                return getStringForSegmentC(segmentNo);
            case D:
                return getStringForSegmentD(segmentNo);
            case E:
                return getStringForSegmentE(segmentNo);
            case F:
                return getStringForSegmentF(segmentNo);
        }
        throw new IllegalArgumentException();
    }