Package eu.planets_project.pp.plato.services.characterisation.jhove.tree

Examples of eu.planets_project.pp.plato.services.characterisation.jhove.tree.JHoveTreeNode.addChild()


        // if not a bytestream, display also the properties
        if (prop.getFormat().compareTo("bytestream") != 0) {
            // Add Module to the tree
            JHoveTreeNode tmpMaterialTreeNode = new JHoveTreeNode("Module",
                    "node");
            tmpMaterialTreeNode.addChild(new JHoveTreeNode("Name: "
                    + prop.getModule().getName(), "leaf"));
            tmpMaterialTreeNode.addChild(new JHoveTreeNode("Release: "
                    + prop.getModule().getRelease(), "leaf"));
            tmpMaterialTreeNode.addChild(new JHoveTreeNode("Date: "
                    + prop.getModule().getDate(), "leaf"));
View Full Code Here


            // Add Module to the tree
            JHoveTreeNode tmpMaterialTreeNode = new JHoveTreeNode("Module",
                    "node");
            tmpMaterialTreeNode.addChild(new JHoveTreeNode("Name: "
                    + prop.getModule().getName(), "leaf"));
            tmpMaterialTreeNode.addChild(new JHoveTreeNode("Release: "
                    + prop.getModule().getRelease(), "leaf"));
            tmpMaterialTreeNode.addChild(new JHoveTreeNode("Date: "
                    + prop.getModule().getDate(), "leaf"));
            mTree.getRoot().addChild(tmpMaterialTreeNode);
View Full Code Here

                    "node");
            tmpMaterialTreeNode.addChild(new JHoveTreeNode("Name: "
                    + prop.getModule().getName(), "leaf"));
            tmpMaterialTreeNode.addChild(new JHoveTreeNode("Release: "
                    + prop.getModule().getRelease(), "leaf"));
            tmpMaterialTreeNode.addChild(new JHoveTreeNode("Date: "
                    + prop.getModule().getDate(), "leaf"));
            mTree.getRoot().addChild(tmpMaterialTreeNode);

            // Add Profiles
            tmpMaterialTreeNode = new JHoveTreeNode("Profiles", "node");
View Full Code Here

            // Add Profiles
            tmpMaterialTreeNode = new JHoveTreeNode("Profiles", "node");
            Vector<String> profiles = prop.getProfiles();
            if (profiles != null) {
                for (String profile : profiles) {
                    tmpMaterialTreeNode.addChild(new JHoveTreeNode(profile,
                            "leaf"));
                }
            }

            mTree.getRoot().addChild(tmpMaterialTreeNode);
View Full Code Here

            JHoveTreeNode tmpProp = new JHoveTreeNode("Properties", "node");

            // Add Properties
            for (Property property : prop.getProperties()) {
                tmpProp.addChild(getPropertyTreeNode(property));
            }
            mTree.getRoot().addChild(tmpProp);

        }
        log.debug("JHoveTree created from Samplerecord " + sampleName);
View Full Code Here

        JHoveTreeNode tmp = new JHoveTreeNode(property.getName(), "node");
        // can use the type for setting the different node
        for (Object tmpObject : property.getValues()) {
            if (((Property) tmpObject).getType().compareTo("Property") == 0) {
                tmp.addChild(getPropertyTreeNode((Property) tmpObject));
            } else {
                if (((Property) tmpObject).getName().compareTo("XMP") == 0)
                    tmp.addChild(getJHoveTreeNodeFromXML(((Property) tmpObject)
                            .getValues().toString(), "XMP Charachteristics"));
                else
View Full Code Here

        for (Object tmpObject : property.getValues()) {
            if (((Property) tmpObject).getType().compareTo("Property") == 0) {
                tmp.addChild(getPropertyTreeNode((Property) tmpObject));
            } else {
                if (((Property) tmpObject).getName().compareTo("XMP") == 0)
                    tmp.addChild(getJHoveTreeNodeFromXML(((Property) tmpObject)
                            .getValues().toString(), "XMP Charachteristics"));
                else
                    tmp
                            .addChild(new JHoveTreeNode(tmpObject.toString(),
                                    "leaf"));
View Full Code Here

            } else {
                if (((Property) tmpObject).getName().compareTo("XMP") == 0)
                    tmp.addChild(getJHoveTreeNodeFromXML(((Property) tmpObject)
                            .getValues().toString(), "XMP Charachteristics"));
                else
                    tmp
                            .addChild(new JHoveTreeNode(tmpObject.toString(),
                                    "leaf"));
            }
        }
        return tmp;
View Full Code Here

        JHoveTreeNode tmpNode;
        if (node.hasChildNodes()) {
            tmpNode = new JHoveTreeNode(node.getNodeName(), "node");
            NodeList nodelist = node.getChildNodes();
            for (int i = 0; i < node.getChildNodes().getLength(); i++) {
                tmpNode
                        .addChild(getJHoveTreeNodeFromXPathNode(nodelist
                                .item(i)));
            }
        } else {
            String tmpNodeContext = node.getNodeValue();
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.