/** * Check if a non basic value type used is describes in the schema which inlude a property with a * such type * * @param desc The schema description associated to the schema which declare a property with * specific value type * @param definedValueType The value type name to find in value types descriptions * @return The description of this specific value type * @throws XmpUnknownValueTypeException If no declaration found */ private PDFAValueTypeDescription findValueTypeDescription( SchemaDescription desc, String definedValueType) throws XmpUnknownValueTypeException { List<PDFAValueTypeDescription> values = desc.getValueTypes(); for (PDFAValueTypeDescription val : values) { if (definedValueType.equals(val.getTypeNameValue())) { return val; } } throw new XmpUnknownValueTypeException( "ValueType '" + definedValueType + "' is unknown. no declaration found in this schema"); }