Revision 57157
Added by Enrico Ottonello over 4 years ago
IndexSchemaFactory.java | ||
---|---|---|
1 | 1 |
package eu.dnetlib.index.utils; |
2 | 2 |
|
3 | 3 |
import java.io.IOException; |
4 |
import javax.xml.transform.*; |
|
5 | 4 |
|
6 |
import eu.dnetlib.rmi.provision.IndexServiceException; |
|
5 |
import javax.xml.transform.Transformer; |
|
6 |
import javax.xml.transform.TransformerConfigurationException; |
|
7 |
import javax.xml.transform.TransformerException; |
|
8 |
import javax.xml.transform.TransformerFactory; |
|
9 |
import javax.xml.transform.TransformerFactoryConfigurationError; |
|
10 |
|
|
7 | 11 |
import org.apache.commons.logging.Log; |
8 | 12 |
import org.apache.commons.logging.LogFactory; |
9 | 13 |
import org.dom4j.Document; |
... | ... | |
14 | 18 |
import org.springframework.beans.factory.annotation.Required; |
15 | 19 |
import org.springframework.core.io.Resource; |
16 | 20 |
|
21 |
import eu.dnetlib.rmi.provision.IndexServiceException; |
|
22 |
|
|
23 |
|
|
17 | 24 |
public class IndexSchemaFactory { |
18 | 25 |
|
19 | 26 |
private static final Log log = LogFactory.getLog(IndexSchemaFactory.class); // NOPMD by marko on 11/24/08 5:02 PM |
... | ... | |
36 | 43 |
} |
37 | 44 |
|
38 | 45 |
/** |
46 |
* @param fields |
|
47 |
* input document |
|
39 | 48 |
* @return the application of the schemaXslt transformation to the docIn document |
40 | 49 |
* @throws IndexServiceException |
41 | 50 |
*/ |
... | ... | |
57 | 66 |
} |
58 | 67 |
} |
59 | 68 |
|
60 |
public Resource getSchemaTemplate() { |
|
61 |
return schemaTemplate; |
|
62 |
} |
|
63 |
|
|
64 | 69 |
@Required |
65 | 70 |
public void setSchemaTemplate(final Resource schemaTemplate) { |
66 | 71 |
this.schemaTemplate = schemaTemplate; |
67 | 72 |
} |
68 | 73 |
|
69 |
public String getTextFieldType() {
|
|
70 |
return textFieldType;
|
|
74 |
public Resource getSchemaTemplate() {
|
|
75 |
return schemaTemplate;
|
|
71 | 76 |
} |
72 | 77 |
|
73 | 78 |
@Required |
... | ... | |
75 | 80 |
this.textFieldType = textFieldType; |
76 | 81 |
} |
77 | 82 |
|
83 |
public String getTextFieldType() { |
|
84 |
return textFieldType; |
|
85 |
} |
|
86 |
|
|
78 | 87 |
} |
Also available in: Unified diff
solr 772 integration