File tree Expand file tree Collapse file tree 2 files changed +9
-10
lines changed
metafacture-mangling/src/main/java/org/metafacture/mangling Expand file tree Collapse file tree 2 files changed +9
-10
lines changed Original file line number Diff line number Diff line change @@ -37,14 +37,11 @@ public final class ObjectToLiteral<T> extends
37
37
public static final String DEFAULT_LITERAL_NAME = "obj" ;
38
38
public static final String DEFAULT_RECORD_ID = "" ;
39
39
40
- private String literalName ;
41
- private String recordId ;
40
+ private String literalName = DEFAULT_LITERAL_NAME ;
41
+ private String recordId = DEFAULT_RECORD_ID ;
42
42
private int recordCount ;
43
43
44
44
public ObjectToLiteral () {
45
- setLiteralName (DEFAULT_LITERAL_NAME );
46
- setRecordId (DEFAULT_RECORD_ID );
47
- recordCount = 0 ;
48
45
}
49
46
50
47
public void setLiteralName (final String literalName ) {
Original file line number Diff line number Diff line change @@ -38,21 +38,23 @@ public final class RecordPathFilter extends DefaultStreamPipe<StreamReceiver> {
38
38
39
39
private final EntityPathTracker entityPathTracker = new EntityPathTracker ();
40
40
41
- private String path ;
42
- private String recordIdFormat ;
41
+ private String path = ROOT_PATH ;
42
+ private String recordIdFormat = DEFAULT_RECORD_ID_FORMAT ;
43
43
private String recordIdentifier ;
44
44
private boolean inMatch ;
45
45
private boolean recordStarted ;
46
46
private int recordCount ;
47
47
48
48
public RecordPathFilter () {
49
- this (ROOT_PATH );
50
49
}
51
50
51
+ /**
52
+ * Constructs a RecordPathFilter with a given path.
53
+ *
54
+ * @param path the name of the path
55
+ */
52
56
public RecordPathFilter (final String path ) {
53
- resetRecord ();
54
57
setPath (path );
55
- setRecordIdFormat (DEFAULT_RECORD_ID_FORMAT );
56
58
}
57
59
58
60
public void setEntitySeparator (final String entitySeparator ) {
You can’t perform that action at this time.
0 commit comments