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