Examples of addSequenceValue()


Examples of org.apache.jempbox.xmp.XMPSchema.addSequenceValue()

    {
        XMPMetadata xmp = new XMPMetadata();
        XMPSchema schema = new XMPSchema(xmp, "test", "http://test.com/test");

        schema.addSequenceValue("author", "Tom DeMarco");
        schema.addSequenceValue("author", "Kent Beck");
        {

            List l = schema.getSequenceList("author");

            assertEquals(2, l.size());
View Full Code Here

Examples of org.apache.jempbox.xmp.XMPSchema.addSequenceValue()

            List l = schema.getSequenceList("author");
            assertEquals(1, l.size());
            assertTrue(l.get(0).equals("Kent Beck"));
        }
        { // Duplicates allowed!
            schema.addSequenceValue("author", "Kent Beck");
            List l = schema.getSequenceList("author");
            assertEquals(2, l.size());
            assertTrue(l.get(0).equals("Kent Beck"));
            assertTrue(l.get(1).equals("Kent Beck"));
        }
View Full Code Here

Examples of org.apache.padaf.xmpbox.schema.XMPSchema.addSequenceValue()

    String langAltSchem2 = "fr-fr";

    XMPSchema schem1 = new XMPSchema(parent, "test",
        "http://www.test.org/schem/");
    schem1.addBagValue(bagName, valBagSchem1);
    schem1.addSequenceValue(seqName, valSeqSchem1);
    schem1.setLanguagePropertyValue(altName, langAltSchem1, valAltSchem1);

    XMPSchema schem2 = new XMPSchema(parent, "test",
        "http://www.test.org/schem/");
    schem2.addBagValue(bagName, valBagSchem2);
View Full Code Here

Examples of org.apache.padaf.xmpbox.schema.XMPSchema.addSequenceValue()

    schem1.setLanguagePropertyValue(altName, langAltSchem1, valAltSchem1);

    XMPSchema schem2 = new XMPSchema(parent, "test",
        "http://www.test.org/schem/");
    schem2.addBagValue(bagName, valBagSchem2);
    schem2.addSequenceValue(seqName, valSeqSchem2);
    schem2.setLanguagePropertyValue(altName, langAltSchem2, valAltSchem2);

    schem1.merge(schem2);

    // Check if all values are present
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.