public class XMPSchemaFactory extends Object
Constructor and Description |
---|
XMPSchemaFactory(String namespace,
Class<? extends XMPSchema> schemaClass,
PropertiesDescription propDef)
Factory Constructor for basic known schemas
|
Modifier and Type | Method and Description |
---|---|
XMPSchema |
createXMPSchema(XMPMetadata metadata,
String prefix)
Create a schema that corresponding to this factory and add it to metadata
|
String |
getNamespace()
Get namespace URI treated by this factory
|
PropertiesDescription |
getPropertyDefinition() |
PropertyType |
getPropertyType(String name)
Get type declared for the name property given
|
public XMPSchemaFactory(String namespace, Class<? extends XMPSchema> schemaClass, PropertiesDescription propDef)
namespace
- namespace URI to treatschemaClass
- Class representation associated to this URIpropDef
- Properties Types list associatedpublic String getNamespace()
public PropertyType getPropertyType(String name)
name
- The property namepublic XMPSchema createXMPSchema(XMPMetadata metadata, String prefix) throws XmpSchemaException
metadata
- Metadata to attach the Schema createdprefix
- The namespace prefix (optional)XmpSchemaException
- When Instancing specified Object Schema failedpublic PropertiesDescription getPropertyDefinition()
Copyright © 2002–2017 The Apache Software Foundation. All rights reserved.