File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
metafacture-xml/src/main/java/org/metafacture/xml Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2013, 2014 Deutsche Nationalbibliothek
2
+ * Copyright 2013, 2014, 2021 Deutsche Nationalbibliothek et al
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 the "License";
5
5
* you may not use this file except in compliance with the License.
@@ -48,7 +48,8 @@ public final class GenericXmlHandler extends DefaultXmlPipe<StreamReceiver> {
48
48
private boolean inRecord ;
49
49
private StringBuilder valueBuffer = new StringBuilder ();
50
50
51
- private boolean emitNamespace = false ;
51
+ public static final boolean EMIT_NAMESPACE = false ;
52
+ private boolean emitNamespace = EMIT_NAMESPACE ;
52
53
53
54
public GenericXmlHandler () {
54
55
super ();
@@ -93,8 +94,11 @@ public String getRecordTagName() {
93
94
}
94
95
95
96
/**
96
- * On entity level namespaces can be emitted, e.g.: "foo:bar". The default is to
97
- * ignore the namespace so that only "bar" is emitted.
97
+ * Triggers namespace awareness. If set to "true" input data like "foo:bar"
98
+ * will be passed through as "foo:bar". For backward compatibility the default
99
+ * is set to "false", thus only "bar" is emitted.
100
+ * <p>
101
+ * <strong>Default value: {@value EMIT_NAMESPACE}</strong>
98
102
*
99
103
* @param emitNamespace set to "true" if namespace should be emitted. Defaults
100
104
* to "false".
You can’t perform that action at this time.
0 commit comments