Search in sources :

Example 1 with AWorkspaceNodeCreator

use of org.freeplane.plugin.workspace.model.AWorkspaceNodeCreator in project freeplane by freeplane.

the class LinkCreator method getNode.

/**
 *********************************************************************************
 * REQUIRED METHODS FOR INTERFACES
 *********************************************************************************
 */
public AWorkspaceTreeNode getNode(XMLElement data) {
    String type = data.getAttribute("type", null);
    if (type == null || !creatorTable.containsKey(type)) {
        return null;
    }
    AWorkspaceNodeCreator creator = creatorTable.get(type);
    return creator.getNode(data);
}
Also used : AWorkspaceNodeCreator(org.freeplane.plugin.workspace.model.AWorkspaceNodeCreator)

Example 2 with AWorkspaceNodeCreator

use of org.freeplane.plugin.workspace.model.AWorkspaceNodeCreator in project freeplane by freeplane.

the class FolderCreator method endElement.

public void endElement(final Object parent, final String tag, final Object userObject, final XMLElement lastBuiltElement) {
    String type = lastBuiltElement.getAttribute("type", null);
    if (type == null || !creatorTable.containsKey(type)) {
        return;
    }
    AWorkspaceNodeCreator creator = creatorTable.get(type);
    creator.endElement(parent, tag, userObject, lastBuiltElement);
}
Also used : AWorkspaceNodeCreator(org.freeplane.plugin.workspace.model.AWorkspaceNodeCreator)

Example 3 with AWorkspaceNodeCreator

use of org.freeplane.plugin.workspace.model.AWorkspaceNodeCreator in project freeplane by freeplane.

the class ActionCreator method getNode.

/**
 *********************************************************************************
 * REQUIRED METHODS FOR INTERFACES
 *********************************************************************************
 */
public AWorkspaceTreeNode getNode(XMLElement data) {
    String type = data.getAttribute("type", null);
    if (type == null || !creatorTable.containsKey(type)) {
        return null;
    }
    AWorkspaceNodeCreator creator = creatorTable.get(type);
    AWorkspaceTreeNode node = creator.getNode(data);
    return node;
}
Also used : AWorkspaceTreeNode(org.freeplane.plugin.workspace.model.AWorkspaceTreeNode) AWorkspaceNodeCreator(org.freeplane.plugin.workspace.model.AWorkspaceNodeCreator)

Example 4 with AWorkspaceNodeCreator

use of org.freeplane.plugin.workspace.model.AWorkspaceNodeCreator in project freeplane by freeplane.

the class ActionCreator method endElement.

public void endElement(final Object parent, final String tag, final Object userObject, final XMLElement lastBuiltElement) {
    String type = lastBuiltElement.getAttribute("type", null);
    if (type == null || !creatorTable.containsKey(type)) {
        return;
    }
    AWorkspaceNodeCreator creator = creatorTable.get(type);
    creator.endElement(parent, tag, userObject, lastBuiltElement);
}
Also used : AWorkspaceNodeCreator(org.freeplane.plugin.workspace.model.AWorkspaceNodeCreator)

Example 5 with AWorkspaceNodeCreator

use of org.freeplane.plugin.workspace.model.AWorkspaceNodeCreator in project freeplane by freeplane.

the class FolderCreator method getNode.

/**
 *********************************************************************************
 * REQUIRED METHODS FOR INTERFACES
 *********************************************************************************
 */
public AWorkspaceTreeNode getNode(XMLElement data) {
    String type = data.getAttribute("type", null);
    if (type == null || !creatorTable.containsKey(type)) {
        return null;
    }
    AWorkspaceNodeCreator creator = creatorTable.get(type);
    AWorkspaceTreeNode node = creator.getNode(data);
    return node;
}
Also used : AWorkspaceTreeNode(org.freeplane.plugin.workspace.model.AWorkspaceTreeNode) AWorkspaceNodeCreator(org.freeplane.plugin.workspace.model.AWorkspaceNodeCreator)

Aggregations

AWorkspaceNodeCreator (org.freeplane.plugin.workspace.model.AWorkspaceNodeCreator)6 AWorkspaceTreeNode (org.freeplane.plugin.workspace.model.AWorkspaceTreeNode)2