Package org.apache.padaf.xmpbox.schema

Examples of org.apache.padaf.xmpbox.schema.SchemaDescription.addProperty()


    Assert.assertEquals(schemDesc, desc.getSchema());
    Assert.assertEquals(schemURI, desc.getNameSpaceURI());
    Assert.assertEquals(schemPrefix, desc.getPrefix());

    String descExpected = "nom de la personne concernée";
    desc.addProperty("nom", "Text", "external",
        "nom de la personne concernee");
    desc.addProperty("nom", "Text", "external", descExpected);
    Assert.assertEquals(1, desc.getProperties().size());
    Assert.assertEquals(descExpected, desc.getProperties().get(0)
        .getDescriptionValue());
View Full Code Here


    Assert.assertEquals(schemPrefix, desc.getPrefix());

    String descExpected = "nom de la personne concernée";
    desc.addProperty("nom", "Text", "external",
        "nom de la personne concernee");
    desc.addProperty("nom", "Text", "external", descExpected);
    Assert.assertEquals(1, desc.getProperties().size());
    Assert.assertEquals(descExpected, desc.getProperties().get(0)
        .getDescriptionValue());
    desc.addProperty("prénom", "Text", "external",
        "prénom de la personne concernée");
View Full Code Here

        "nom de la personne concernee");
    desc.addProperty("nom", "Text", "external", descExpected);
    Assert.assertEquals(1, desc.getProperties().size());
    Assert.assertEquals(descExpected, desc.getProperties().get(0)
        .getDescriptionValue());
    desc.addProperty("prénom", "Text", "external",
        "prénom de la personne concernée");

    List<PDFAPropertyDescription> list = desc.getProperties();
    Assert.assertEquals("nom", list.get(0).getNameValue());
    Assert.assertEquals("prénom", list.get(1).getNameValue());
View Full Code Here

    // Check if no problem when create 2 description and display result
    SchemaDescription desc2 = schem.createSchemaDescription();
    desc2.setSchemaValue("2eme schema de test");
    desc2.setNameSpaceURIValue("http://test.apache.com/xap/test/");
    desc2.setPrefixValue("tst");
    desc2.addProperty("TestText", "OwnType", "external",
        "just a text property");
    schem.addSchemaDescription(desc2);
    // Check value type
    String valType = "OwnType";
    String nsType = "http://test.apache.com/xap/test/";
View Full Code Here

              propDesc = propExtDefAnnot.propertyDescription();
            }
            if ((propDesc == null) || propDesc.equals("")) {
              propDesc = "Not documented description";
            }
            desc.addProperty(propName,
                propTypeAnnot.propertyType(), propExtDefAnnot
                    .propertyCategory(), propDesc);
          } catch (BadFieldValueException e) {
            throw propertyDescriptionError(classSchem.getName(),
                propName, "Wrong value for property Category",
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.