1 package org.kuali.common.jdbc.reader.model;
2
3 import org.kuali.common.util.Assert;
4
5 public final class Delimiter {
6
7 public static final String DEFAULT_VALUE = "/";
8 public static final Delimiter DEFAULT_DELIMITER = new Delimiter();
9
10 public Delimiter() {
11 this(DEFAULT_VALUE, DelimiterMode.DEFAULT_VALUE);
12 }
13
14 public Delimiter(String value) {
15 this(value, DelimiterMode.DEFAULT_VALUE);
16 }
17
18 public Delimiter(DelimiterMode mode) {
19 this(DEFAULT_VALUE, mode);
20 }
21
22 public Delimiter(String value, DelimiterMode mode) {
23 Assert.noBlanks(value);
24 Assert.noNulls(mode);
25 this.value = value;
26 this.mode = mode;
27 }
28
29 private final String value;
30 private final DelimiterMode mode;
31
32 public String getValue() {
33 return value;
34 }
35
36 public DelimiterMode getMode() {
37 return mode;
38 }
39
40 }