public class XmlRecordFactory extends Object
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
childDefaults |
protected List<eu.dnetlib.data.mapreduce.util.OafDecoder> |
children |
protected Set<String> |
contextes |
protected ContextMapper |
contextMapper |
protected Map<String,Integer> |
counters |
protected EntityConfigTable |
entityConfigTable |
protected boolean |
entityDefaults |
protected List<String> |
extraInfo |
protected static com.google.common.base.Predicate<String> |
instanceFilter |
protected String |
key |
protected eu.dnetlib.data.mapreduce.util.OafDecoder |
mainEntity |
protected List<eu.dnetlib.data.mapreduce.util.OafDecoder> |
relations |
protected RelClasses |
relClasses |
protected boolean |
relDefaults |
protected String |
schemaLocation |
protected Set<String> |
specialDatasourceTypes |
protected TemplateFactory |
templateFactory |
protected Transformer |
transformer |
| Constructor and Description |
|---|
XmlRecordFactory(EntityConfigTable entityConfigTable,
ContextMapper contextMapper,
RelClasses relClasses,
String schemaLocation,
boolean entityDefaults,
boolean relDefaults,
boolean childDefeaults,
Set<String> otherDatasourceTypesUForUI) |
| Modifier and Type | Method and Description |
|---|---|
void |
addChild(eu.dnetlib.data.proto.TypeProtos.Type type,
eu.dnetlib.data.mapreduce.util.OafDecoder child) |
void |
addRelation(eu.dnetlib.data.proto.TypeProtos.Type type,
eu.dnetlib.data.mapreduce.util.OafDecoder rel) |
String |
build() |
static String |
escapeXml(String value) |
String |
getId() |
eu.dnetlib.data.proto.FieldTypeProtos.Qualifier |
getQualifier(String classid,
String classname,
String schemename) |
RelClasses |
getRelClasses() |
Map<String,Integer> |
getRelCounters() |
boolean |
isValid() |
static String |
removePrefix(String s) |
void |
setMainEntity(eu.dnetlib.data.mapreduce.util.OafDecoder mainEntity) |
String |
toString() |
protected TemplateFactory templateFactory
protected eu.dnetlib.data.mapreduce.util.OafDecoder mainEntity
protected String key
protected List<eu.dnetlib.data.mapreduce.util.OafDecoder> relations
protected List<eu.dnetlib.data.mapreduce.util.OafDecoder> children
protected EntityConfigTable entityConfigTable
protected ContextMapper contextMapper
protected RelClasses relClasses
protected String schemaLocation
protected boolean entityDefaults
protected boolean relDefaults
protected boolean childDefaults
protected Transformer transformer
protected static com.google.common.base.Predicate<String> instanceFilter
public XmlRecordFactory(EntityConfigTable entityConfigTable, ContextMapper contextMapper, RelClasses relClasses, String schemaLocation, boolean entityDefaults, boolean relDefaults, boolean childDefeaults, Set<String> otherDatasourceTypesUForUI) throws TransformerConfigurationException, TransformerFactoryConfigurationError
public RelClasses getRelClasses()
public String getId()
public boolean isValid()
public void setMainEntity(eu.dnetlib.data.mapreduce.util.OafDecoder mainEntity)
public void addRelation(eu.dnetlib.data.proto.TypeProtos.Type type,
eu.dnetlib.data.mapreduce.util.OafDecoder rel)
public void addChild(eu.dnetlib.data.proto.TypeProtos.Type type,
eu.dnetlib.data.mapreduce.util.OafDecoder child)
public String build()
public eu.dnetlib.data.proto.FieldTypeProtos.Qualifier getQualifier(String classid, String classname, String schemename)
Copyright © 2017. All rights reserved.