Revision 54390
Added by Sandro La Bruzzo over 5 years ago
DMFResolverParser.java | ||
---|---|---|
75 | 75 |
|
76 | 76 |
|
77 | 77 |
final List<Node> relations = |
78 |
VtdUtilityParser.getTextValuesWithAttributes(ap, vn, "//*[local-name()='resource']//*[local-name()='relatedIdentifier']", Arrays.asList("relatedIdentifierType", "relationType", "inverseRelationType")); |
|
78 |
VtdUtilityParser.getTextValuesWithAttributes(ap, vn, "//*[local-name()='resource']//*[local-name()='relatedIdentifier']", Arrays.asList("relatedIdentifierType", "relationType", "inverseRelationType", "entityType"));
|
|
79 | 79 |
|
80 | 80 |
if (relations != null && relations.size() > 0) { |
81 | 81 |
final List<ObjectRelation> relationsResult = new ArrayList<>(); |
... | ... | |
83 | 83 |
final String relationType = relationMap.getAttributes().get("relationType"); |
84 | 84 |
final String inverseRelationType = relationMap.getAttributes().get("inverseRelationType"); |
85 | 85 |
final String relatedIdentifierType = relationMap.getAttributes().get("relatedIdentifierType"); |
86 |
final String relatedEntityType = relationMap.getAttributes().get("entityType"); |
|
86 | 87 |
final String relatedPid = relationMap.getTextValue(); |
87 | 88 |
final DLIObjectRelation currentRelation = new DLIObjectRelation(); |
89 |
currentRelation.setTargetType(ObjectType.valueOf(relatedEntityType)); |
|
88 | 90 |
currentRelation.setTargetPID(new PID(relatedPid, relatedIdentifierType)); |
89 | 91 |
currentRelation.setRelationSemantics(relationType); |
90 | 92 |
currentRelation.setInverseRelation(inverseRelationType); |
Also available in: Unified diff
updated resolver and Trying to allow mdstore plugin to print progress information on UI