Package org.apache.padaf.xmpbox.type

Examples of org.apache.padaf.xmpbox.type.ValueTypeDescription


   * @param description
   *            Description of the Value Type
   */
  public void addValueTypeDescription(String type, String nsURI,
      String prefix, String description) {
    vTypes.add(new ValueTypeDescription(type, nsURI, prefix, description));
  }
View Full Code Here


   * @param fields
   *            List of FieldDescription
   */
  public void addValueTypeDescription(String type, String nsURI,
      String prefix, String description, List<FieldDescription> fields) {
    vTypes.add(new ValueTypeDescription(type, nsURI, prefix, description,
        fields));
  }
View Full Code Here

    propRetrieve.loadListFromXML(is);

    List<ValueTypeDescription> vtList = propRetrieve
        .getValueTypesDescriptionList();
    Assert.assertEquals(1, vtList.size());
    ValueTypeDescription vt = vtList.get(0);
    Assert.assertEquals(type, vt.getType());
    Assert.assertEquals(uri, vt.getNamespaceURI());
    Assert.assertEquals(prefix, vt.getPrefix());
    Assert.assertEquals(descProp, vt.getDescription());
    List<FieldDescription> fieldsFound = vt.getFields();
    Assert.assertNotNull(fieldsFound);

    for (int i = 0; i < fieldsFound.size(); i++) {
      Assert
          .assertTrue(fieldNames.contains(fieldsFound.get(i)
View Full Code Here

TOP

Related Classes of org.apache.padaf.xmpbox.type.ValueTypeDescription

Copyright © 2018 www.massapicom. 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.