use of org.apache.xmpbox.schema.XMPSchema in project pdfbox by apache.
the class XMPMetadata method getSchema.
/**
* Get the XMPSchema for the specified namespace.
*
* Return the schema corresponding to this nsURI<br>
* BE CAREFUL: typically, Metadata should contain one schema for each type.
* This method returns the first schema encountered
* corresponding to this NSURI.<br>
* Return null if unknown
*
* @param nsURI The namespace URI corresponding to the schema wanted
* @return The matching XMP schema representation
*/
public XMPSchema getSchema(String nsURI) {
Iterator<XMPSchema> it = schemas.iterator();
XMPSchema tmp;
while (it.hasNext()) {
tmp = it.next();
if (tmp.getNamespace().equals(nsURI)) {
return tmp;
}
}
return null;
}
Aggregations