Revision c693e3b1
Added by Patrick Plitzner about 5 years ago
cdmlib-io/src/main/java/eu/etaxonomy/cdm/io/sdd/out/SDDDocumentBuilder.java | ||
---|---|---|
1272 | 1272 |
} |
1273 | 1273 |
} |
1274 | 1274 |
|
1275 |
public void buildBranches(FeatureNode parent, ElementImpl element, |
|
1275 |
public void buildBranches(FeatureNode<Feature> parent, ElementImpl element,
|
|
1276 | 1276 |
boolean isRoot) { |
1277 |
List<FeatureNode> children = parent.getChildNodes(); |
|
1277 |
List<FeatureNode<Feature>> children = parent.getChildNodes();
|
|
1278 | 1278 |
if (!parent.isLeaf()) { |
1279 | 1279 |
ElementImpl elCharNode = new ElementImpl(document, NODE); |
1280 | 1280 |
charnodeCount = buildReference(parent, featuretrees, ID, |
... | ... | |
1288 | 1288 |
} |
1289 | 1289 |
ElementImpl elDescriptiveConcept = new ElementImpl(document, |
1290 | 1290 |
DESCRIPTIVE_CONCEPT); |
1291 |
Feature fref = parent.getFeature();
|
|
1291 |
Feature fref = parent.getTerm();
|
|
1292 | 1292 |
descriptiveConceptCount = buildReference(fref, descriptiveConcepts, |
1293 | 1293 |
REF, elDescriptiveConcept, "dc", descriptiveConceptCount); |
1294 | 1294 |
elCharNode.appendChild(elDescriptiveConcept); |
1295 | 1295 |
element.appendChild(elCharNode); |
1296 |
for (Iterator<FeatureNode> ifn = children.iterator(); ifn.hasNext();) { |
|
1296 |
for (Iterator<FeatureNode<Feature>> ifn = children.iterator(); ifn.hasNext();) {
|
|
1297 | 1297 |
FeatureNode fn = ifn.next(); |
1298 | 1298 |
buildBranches(fn, element, false); |
1299 | 1299 |
} |
... | ... | |
1306 | 1306 |
charnodeCount = buildReference(parent, featuretrees, ID, |
1307 | 1307 |
elCharNode, "cn", charnodeCount); |
1308 | 1308 |
ElementImpl elCharacter = new ElementImpl(document, CHARACTER); |
1309 |
Feature fref = parent.getFeature();
|
|
1309 |
Feature fref = parent.getTerm();
|
|
1310 | 1310 |
boolean dependencies = false; |
1311 | 1311 |
ElementImpl elDependecyRules = new ElementImpl(document, |
1312 | 1312 |
"DependecyRules"); |
Also available in: Unified diff
ref #6794 Add generics to FeatureNode and FeatureTree