Revision cc0fa0be
Added by Patrick Plitzner over 5 years ago
cdmlib-io/src/main/java/eu/etaxonomy/cdm/io/descriptive/word/out/WordExport.java | ||
---|---|---|
19 | 19 |
|
20 | 20 |
import eu.etaxonomy.cdm.io.common.CdmExportBase; |
21 | 21 |
import eu.etaxonomy.cdm.io.common.mapping.out.IExportTransformer; |
22 |
import eu.etaxonomy.cdm.model.description.Feature;
|
|
22 |
import eu.etaxonomy.cdm.model.common.DefinedTermBase;
|
|
23 | 23 |
import eu.etaxonomy.cdm.model.description.FeatureNode; |
24 | 24 |
import eu.etaxonomy.cdm.model.description.FeatureTree; |
25 | 25 |
|
... | ... | |
114 | 114 |
String styleId = "Heading"+indent; |
115 | 115 |
|
116 | 116 |
for (FeatureNode childNode : node.getChildNodes()) { |
117 |
Feature feature = childNode.getFeature();
|
|
118 |
mainDocumentPart.addStyledParagraphOfText(styleId, feature.getLabel());
|
|
119 |
if(feature.getDescription()!=null){
|
|
120 |
mainDocumentPart.addParagraphOfText("Description: "+feature.getDescription());
|
|
117 |
DefinedTermBase term = childNode.getTerm();
|
|
118 |
mainDocumentPart.addStyledParagraphOfText(styleId, term.getLabel());
|
|
119 |
if(term.getDescription()!=null){
|
|
120 |
mainDocumentPart.addParagraphOfText("Description: "+term.getDescription());
|
|
121 | 121 |
} |
122 |
if(feature.getUri()!=null){
|
|
123 |
mainDocumentPart.addParagraphOfText("URI: "+feature.getUri().toString());
|
|
122 |
if(term.getUri()!=null){
|
|
123 |
mainDocumentPart.addParagraphOfText("URI: "+term.getUri().toString());
|
|
124 | 124 |
} |
125 | 125 |
addChildNode(childNode, mainDocumentPart, indent+1); |
126 | 126 |
} |
Also available in: Unified diff
ref #8153 Adapt cdmlib to model changes