Author: rwesten
Date: Fri Dec 6 16:16:49 2013
New Revision: 1548578
URL: http://svn.apache.org/r1548578
Log:
STANBOl-1232: The FiledMapperProcessor now allows to parse the
NamespacePrefixService in the constructor
Modified:
stanbol/trunk/entityhub/indexing/core/src/main/java/org/apache/stanbol/entityhub/indexing/core/processor/FiledMapperProcessor.java
Modified:
stanbol/trunk/entityhub/indexing/core/src/main/java/org/apache/stanbol/entityhub/indexing/core/processor/FiledMapperProcessor.java
URL:
http://svn.apache.org/viewvc/stanbol/trunk/entityhub/indexing/core/src/main/java/org/apache/stanbol/entityhub/indexing/core/processor/FiledMapperProcessor.java?rev=1548578&r1=1548577&r2=1548578&view=diff
==============================================================================
---
stanbol/trunk/entityhub/indexing/core/src/main/java/org/apache/stanbol/entityhub/indexing/core/processor/FiledMapperProcessor.java
(original)
+++
stanbol/trunk/entityhub/indexing/core/src/main/java/org/apache/stanbol/entityhub/indexing/core/processor/FiledMapperProcessor.java
Fri Dec 6 16:16:49 2013
@@ -46,23 +46,24 @@ public class FiledMapperProcessor implem
* afterwards!
*/
public FiledMapperProcessor(){
- this(null);
+ this(null,null);
}
/**
* Internally used to initialise the {@link ValueFactory}
* @param vf the value factory or <code>null</code> to use the {@link
InMemoryValueFactory}.
*/
- private FiledMapperProcessor(ValueFactory vf){
+ private FiledMapperProcessor(NamespacePrefixService nps, ValueFactory vf){
setValueFactory(vf);
+ this.nsPrefixService = nps;
}
- public FiledMapperProcessor(FieldMapper mapper, ValueFactory vf){
- this(vf);
+ public FiledMapperProcessor(FieldMapper mapper, NamespacePrefixService
nps, ValueFactory vf){
+ this(nps,vf);
if(mapper == null){
throw new IllegalArgumentException("The parsed FieldMapper MUST
NOT be NULL!");
}
}
- public FiledMapperProcessor(Iterator<String> mappings,ValueFactory vf){
- this(vf);
+ public FiledMapperProcessor(Iterator<String> mappings,
NamespacePrefixService nps, ValueFactory vf){
+ this(nps, vf);
if(mappings == null){
throw new IllegalArgumentException("The parsed field mappings MUST
NOT be NULL!");
}
@@ -71,8 +72,8 @@ public class FiledMapperProcessor implem
throw new IllegalStateException("The parsed field mappings MUST
contain at least a single valid mapping!");
}
}
- public FiledMapperProcessor(InputStream mappings, ValueFactory vf) throws
IOException{
- this(vf);
+ public FiledMapperProcessor(InputStream mappings, NamespacePrefixService
nps, ValueFactory vf) throws IOException{
+ this(nps, vf);
if(mappings == null){
throw new IllegalArgumentException("The parsed field mappings MUST
NOT be NULL!");
}