Examples of addFormatIdentification()


Examples of uk.gov.nationalarchives.droid.profile.ProfileResourceNode.addFormatIdentification()

        Format id1 = buildFormat(1);
        Format id2 = buildFormat(2);
       
        ProfileResourceNode node = buildProfileResourceNode(1, 1000L);
        node.addFormatIdentification(id1);
        node.addFormatIdentification(id2);

        nodes.add(node);
        itemWriter.setOptions(ExportOptions.ONE_ROW_PER_FILE);
        itemWriter.write(nodes);
       
View Full Code Here

Examples of uk.gov.nationalarchives.droid.profile.ProfileResourceNode.addFormatIdentification()

       
        Format id1 = buildFormat(1);
        Format id2 = buildFormat(2);
       
        ProfileResourceNode node = buildProfileResourceNode(1, 1000L);
        node.addFormatIdentification(id1);
        node.addFormatIdentification(id2);

        nodes.add(node);
        itemWriter.setOptions(ExportOptions.ONE_ROW_PER_FORMAT);
        itemWriter.write(nodes);
View Full Code Here

Examples of uk.gov.nationalarchives.droid.profile.ProfileResourceNode.addFormatIdentification()

        Format id1 = buildFormat(1);
        Format id2 = buildFormat(2);
       
        ProfileResourceNode node = buildProfileResourceNode(1, 1000L);
        node.addFormatIdentification(id1);
        node.addFormatIdentification(id2);

        nodes.add(node);
        itemWriter.setOptions(ExportOptions.ONE_ROW_PER_FORMAT);
        itemWriter.write(nodes);
       
View Full Code Here

Examples of uk.gov.nationalarchives.droid.profile.ProfileResourceNode.addFormatIdentification()

        List<ProfileResourceNode> nodes = new ArrayList<ProfileResourceNode>();
       
        for (int i = 1; i <= 10; i++) {
            ProfileResourceNode node = buildProfileResourceNode(i, (long) i);
            Format id = buildFormat(i);
            node.addFormatIdentification(id);
            nodes.add(node);
        }
       
        itemWriter.write(nodes);
        verify(csvWriter, times(10)).writeNext(any(String[].class));
View Full Code Here

Examples of uk.gov.nationalarchives.droid.profile.ProfileResourceNode.addFormatIdentification()

        node.setExtensionMismatch(results.getExtensionMismatch());
        node.setFinished(new Date());
        ResourceId parentId = results.getCorrelationId();
        setNodeIds(node, parentId);
        if (results.getResults().isEmpty()) {
            node.addFormatIdentification(Format.NULL);
            node.setZeroIdentifications();
        } else {
            for (IdentificationResult result : results.getResults()) {
                node.getMetaData().setIdentificationMethod(result.getMethod());
                //log.debug(String.format("Handling ID puid[%s]; uri[%s]", result.getPuid(), results.getUri()));
View Full Code Here

Examples of uk.gov.nationalarchives.droid.profile.ProfileResourceNode.addFormatIdentification()

        } else {
            for (IdentificationResult result : results.getResults()) {
                node.getMetaData().setIdentificationMethod(result.getMethod());
                //log.debug(String.format("Handling ID puid[%s]; uri[%s]", result.getPuid(), results.getUri()));
                Format format = loadFormat(result.getPuid());
                node.addFormatIdentification(format);
            }
        }
        progressMonitor.stopJob(node);
        batchNode(node);
        return new ResourceId(node.getId(), node.getPrefix());
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.