Revision 44949
Added by Sandro La Bruzzo over 7 years ago
AbstractDNetXsltFunctions.java | ||
---|---|---|
73 | 73 |
final Type targetType, |
74 | 74 |
final Qualifier relType, |
75 | 75 |
final boolean isChild) { |
76 |
return DNGFRel.newBuilder().setSource(sourceId).setTarget(targetId).setRelType(relType) |
|
76 |
return DNGFRel.newBuilder().setSource(sourceId).setTarget(targetId) |
|
77 |
.setSourceType(sourceType) |
|
78 |
.setTargetType(targetType).setRelType(relType) |
|
77 | 79 |
.setChild(isChild); |
78 | 80 |
} |
79 | 81 |
|
... | ... | |
484 | 486 |
} |
485 | 487 |
|
486 | 488 |
public static String oafSimpleId(final String entityType, final String id) { |
487 |
return (Type.valueOf(entityType).getNumber() + "|" + id).replaceAll("\\s|\\n", ""); |
|
489 |
String returnValue = (Type.valueOf(entityType).getNumber() + "|" + id).replaceAll("\\s|\\n", ""); |
|
490 |
return returnValue; |
|
488 | 491 |
} |
489 | 492 |
|
490 | 493 |
public static String oafSplitId(final String entityType, final String fullId) { |
Also available in: Unified diff
fixed test