Package org.jboss.dashboard.commons.xml

Examples of org.jboss.dashboard.commons.xml.XMLNode.addAttribute()


    }

    public Object visitPanel(Panel panel) throws Exception {
        XMLNode node = new XMLNode(PANEL, currentNode);
        node.addAttribute(PANEL_ATTR_ID, panel.getPanelId().toString());
        node.addAttribute(PANEL_ATTR_INSTANCE_ID, panel.getInstance().getInstanceId().toString());
        node.addAttribute(PANEL_ATTR_REGION_ID, panel.getLayoutRegionId());
        node.addAttribute(PANEL_ATTR_POSITION, String.valueOf(panel.getPosition()));
        currentNode.addChild(node);
        currentNode = node;
        return node;
View Full Code Here


    public Object visitPanel(Panel panel) throws Exception {
        XMLNode node = new XMLNode(PANEL, currentNode);
        node.addAttribute(PANEL_ATTR_ID, panel.getPanelId().toString());
        node.addAttribute(PANEL_ATTR_INSTANCE_ID, panel.getInstance().getInstanceId().toString());
        node.addAttribute(PANEL_ATTR_REGION_ID, panel.getLayoutRegionId());
        node.addAttribute(PANEL_ATTR_POSITION, String.valueOf(panel.getPosition()));
        currentNode.addChild(node);
        currentNode = node;
        return node;
    }
View Full Code Here

    public Object visitPanel(Panel panel) throws Exception {
        XMLNode node = new XMLNode(PANEL, currentNode);
        node.addAttribute(PANEL_ATTR_ID, panel.getPanelId().toString());
        node.addAttribute(PANEL_ATTR_INSTANCE_ID, panel.getInstance().getInstanceId().toString());
        node.addAttribute(PANEL_ATTR_REGION_ID, panel.getLayoutRegionId());
        node.addAttribute(PANEL_ATTR_POSITION, String.valueOf(panel.getPosition()));
        currentNode.addChild(node);
        currentNode = node;
        return node;
    }
View Full Code Here

        return node;
    }

    public Object visitGraphicElement(GraphicElement resource) throws Exception {
        XMLNode node = new XMLNode(RESOURCE, currentNode);
        node.addAttribute(RESOURCE_ATTR_ID, resource.getId());
        node.addAttribute(RESOURCE_ATTR_CATEGORY, resource.getClass().getName());
        XMLNode rawContentNode = new XMLNode(RAWCONTENT, node);
        rawContentNode.setContent(resource.getZipFile());
        node.addChild(rawContentNode);
        currentNode.addChild(node);
View Full Code Here

    }

    public Object visitGraphicElement(GraphicElement resource) throws Exception {
        XMLNode node = new XMLNode(RESOURCE, currentNode);
        node.addAttribute(RESOURCE_ATTR_ID, resource.getId());
        node.addAttribute(RESOURCE_ATTR_CATEGORY, resource.getClass().getName());
        XMLNode rawContentNode = new XMLNode(RAWCONTENT, node);
        rawContentNode.setContent(resource.getZipFile());
        node.addChild(rawContentNode);
        currentNode.addChild(node);
        currentNode = node;
View Full Code Here

        return node;
    }

    public Object visitPanelParameter(PanelParameter param) throws Exception {
            XMLNode node = new XMLNode(PARAMETER, currentNode);
            node.addAttribute(PARAMETER_ATTR_NAME, param.getIdParameter());
            node.addAttribute(PARAMETER_ATTR_VALUE, StringUtils.defaultString(param.getValue()));
            node.addAttribute(PARAMETER_ATTR_LANG, param.getLanguage());
            currentNode.addChild(node);
            currentNode = node;
            return node;
View Full Code Here

    }

    public Object visitPanelParameter(PanelParameter param) throws Exception {
            XMLNode node = new XMLNode(PARAMETER, currentNode);
            node.addAttribute(PARAMETER_ATTR_NAME, param.getIdParameter());
            node.addAttribute(PARAMETER_ATTR_VALUE, StringUtils.defaultString(param.getValue()));
            node.addAttribute(PARAMETER_ATTR_LANG, param.getLanguage());
            currentNode.addChild(node);
            currentNode = node;
            return node;
    }
View Full Code Here

    public Object visitPanelParameter(PanelParameter param) throws Exception {
            XMLNode node = new XMLNode(PARAMETER, currentNode);
            node.addAttribute(PARAMETER_ATTR_NAME, param.getIdParameter());
            node.addAttribute(PARAMETER_ATTR_VALUE, StringUtils.defaultString(param.getValue()));
            node.addAttribute(PARAMETER_ATTR_LANG, param.getLanguage());
            currentNode.addChild(node);
            currentNode = node;
            return node;
    }
View Full Code Here

            return node;
    }

    public Object visitWorkspaceParameter(WorkspaceParameter param) throws Exception {
        XMLNode node = new XMLNode(PARAMETER, currentNode);
        node.addAttribute(PARAMETER_ATTR_NAME, param.getParameterId());
        node.addAttribute(PARAMETER_ATTR_VALUE, param.getValue());
        node.addAttribute(PARAMETER_ATTR_LANG, param.getLanguage());
        currentNode.addChild(node);
        currentNode = node;
        return node;
View Full Code Here

    }

    public Object visitWorkspaceParameter(WorkspaceParameter param) throws Exception {
        XMLNode node = new XMLNode(PARAMETER, currentNode);
        node.addAttribute(PARAMETER_ATTR_NAME, param.getParameterId());
        node.addAttribute(PARAMETER_ATTR_VALUE, param.getValue());
        node.addAttribute(PARAMETER_ATTR_LANG, param.getLanguage());
        currentNode.addChild(node);
        currentNode = node;
        return node;
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.