APISonar


org.gephi.io.importer.api.Report.log

> org > gephi > io > importer > api > Report > log
org APIs gephi APIs io APIs importer APIs api APIs Report APIs log APIs

Example 1
private Report report;

    private void close() {
        //Close connection
        if (connection != null) {
            try {
                connection.close();
                report.log("Database connection terminated");
            } catch (Exception e) { /* ignore close errors */ }
        }
    }
Example 2
private Report report;

    public void setTimestamp(String timestamp) {
        try {
            double t = timeFormat.equals(TimeFormat.DOUBLE) ? Double.parseDouble(timestamp) : AttributeUtils.parseDateTime(timestamp);
            this.timestamp = t;
        } catch (Exception e) {
            report.logIssue(new Issue(NbBundle.getMessage(ImportContainerImpl.class, "ImportContainerException_Timestamp_Parse_Error", timestamp), Level.SEVERE));
            return;
        }
        report.log(NbBundle.getMessage(ImportContainerImpl.class, "ImportContainerLog.GraphTimestamp", timestamp));
    }
Example 3
private Report report;

    public void addNode(NodeDraft nodeDraft) {
        if (nodeDraft == null) {
            throw new NullPointerException();
        }
        NodeDraftImpl nodeDraftImpl = (NodeDraftImpl) nodeDraft;

        if (nodeMap.containsKey(nodeDraftImpl.getId())) {
            String message = NbBundle.getMessage(ImportContainerImpl.class, "ImportContainerException_nodeExist", nodeDraftImpl.getId());
            report.logIssue(new Issue(message, Level.WARNING));
            report.log("Duplicated node id='" + nodeDraftImpl.getId() + "' label='" + nodeDraftImpl.getLabel() + "' is ignored");
            return;
        }

        nodeMap.put(nodeDraftImpl.getId(), nodeDraftImpl);
    }
Example 4
private Report report;

    public void setEdgeDefault(EdgeDirectionDefault edgeDefault) {
        if (this.edgeDefault != edgeDefault) {
            this.edgeDefault = edgeDefault;
            report.log(NbBundle.getMessage(ImportContainerImpl.class, "ImportContainerException_Set_EdgeDefault", edgeDefault.toString()));
        }
    }
Example 5
private Report report;

    public void setElementIdType(ElementIdType type) {
        if (this.elementIdType != type) {
            this.elementIdType = type;
            report.log(NbBundle.getMessage(ImportContainerImpl.class, "ImportContainerLog.ElementIdType", elementIdType.toString()));
        }
    }