return;
}
if (!value.isEmpty()) {
//Data attribute value
AttributeColumn column = container.getAttributeModel().getNodeTable().getColumn(fore);
if (column != null) {
if (!startDate.isEmpty() || !endDate.isEmpty()) {
//Dynamic
try {
node.addAttributeValue(column, value, startDate, endDate);
} catch (IllegalArgumentException e) {
report.logIssue(new Issue(NbBundle.getMessage(ImporterGEXF.class, "importerGEXF_error_nodeattribute_timeinterval_parseerror", node), Issue.Level.SEVERE));
} catch (Exception e) {
report.logIssue(new Issue(NbBundle.getMessage(ImporterGEXF.class, "importerGEXF_error_datavalue", fore, node, column.getTitle()), Issue.Level.SEVERE));
}
} else {
if (column.getType().isDynamicType()) {
node.addAttributeValue(column, value);
} else {
try {
Object val = column.getType().parse(value);
node.addAttributeValue(column, val);
} catch (Exception e) {
report.logIssue(new Issue(NbBundle.getMessage(ImporterGEXF.class, "importerGEXF_error_datavalue", fore, node, column.getTitle()), Issue.Level.SEVERE));
}
}
}
}
}