|
47 | 47 | import org.apache.xmpbox.schema.XMPSchema; |
48 | 48 | import org.apache.xmpbox.schema.XMPSchemaFactory; |
49 | 49 | import org.apache.xmpbox.schema.XMPPageTextSchema; |
50 | | -import org.apache.xmpbox.schema.XmpSchemaException; |
51 | 50 |
|
52 | 51 | public final class TypeMapping |
53 | 52 | { |
@@ -221,34 +220,6 @@ public PropertiesDescription getStructuredPropMapping(Types type) |
221 | 220 | return structuredMappings.get(type); |
222 | 221 | } |
223 | 222 |
|
224 | | - /** |
225 | | - * Return the specialized schema class representation if it's known (create and add it to metadata). In other cases, |
226 | | - * return null |
227 | | - * |
228 | | - * @param metadata |
229 | | - * Metadata to link the new schema |
230 | | - * @param namespace |
231 | | - * The namespace URI |
232 | | - * @param prefix The namespace prefix |
233 | | - * @return Schema representation |
234 | | - * @throws XmpSchemaException |
235 | | - * When Instancing specified Object Schema failed |
236 | | - */ |
237 | | - public XMPSchema getAssociatedSchemaObject(XMPMetadata metadata, String namespace, String prefix) |
238 | | - throws XmpSchemaException |
239 | | - { |
240 | | - if (schemaMap.containsKey(namespace)) |
241 | | - { |
242 | | - XMPSchemaFactory factory = schemaMap.get(namespace); |
243 | | - return factory.createXMPSchema(metadata, prefix); |
244 | | - } |
245 | | - else |
246 | | - { |
247 | | - XMPSchemaFactory factory = getSchemaFactory(namespace); |
248 | | - return factory != null ? factory.createXMPSchema(metadata, prefix) : null; |
249 | | - } |
250 | | - } |
251 | | - |
252 | 223 | public XMPSchemaFactory getSchemaFactory(String namespace) |
253 | 224 | { |
254 | 225 | return schemaMap.get(namespace); |
|
0 commit comments