public final class TypeMapping extends Object
Constructor and Description |
---|
TypeMapping(XMPMetadata metadata) |
public TypeMapping(XMPMetadata metadata)
public void addToDefinedStructuredTypes(String typeName, String ns, PropertiesDescription pm)
public PropertiesDescription getDefinedDescriptionByNamespace(String namespace)
public AbstractStructuredType instanciateStructuredType(Types type, String propertyName) throws BadFieldValueException
BadFieldValueException
public AbstractStructuredType instanciateDefinedType(String propertyName, String namespace)
public AbstractSimpleProperty instanciateSimpleProperty(String nsuri, String prefix, String name, Object value, Types type)
public AbstractSimpleProperty instanciateSimpleField(Class<?> clz, String nsuri, String prefix, String propertyName, Object value)
public boolean isStructuredTypeNamespace(String namespace)
namespace
- The namespace URI to checkpublic boolean isDefinedTypeNamespace(String namespace)
public boolean isDefinedType(String name)
public PropertiesDescription getStructuredPropMapping(Types type)
public XMPSchema getAssociatedSchemaObject(XMPMetadata metadata, String namespace, String prefix) throws XmpSchemaException
metadata
- Metadata to link the new schemanamespace
- The namespace URIprefix
- The namespace prefixXmpSchemaException
- When Instancing specified Object Schema failedpublic XMPSchemaFactory getSchemaFactory(String namespace)
public boolean isDefinedSchema(String namespace)
namespace
- The namespace URI checkedpublic boolean isDefinedNamespace(String namespace)
public PropertyType getSpecifiedPropertyType(QName name) throws BadFieldValueException
name
- the property Qualified NameBadFieldValueException
- if the name was not found.public PropertiesDescription initializePropMapping(Class<?> classSchem)
public BooleanType createBoolean(String namespaceURI, String prefix, String propertyName, boolean value)
public DateType createDate(String namespaceURI, String prefix, String propertyName, Calendar value)
public IntegerType createInteger(String namespaceURI, String prefix, String propertyName, int value)
public RealType createReal(String namespaceURI, String prefix, String propertyName, float value)
public TextType createText(String namespaceURI, String prefix, String propertyName, String value)
public ProperNameType createProperName(String namespaceURI, String prefix, String propertyName, String value)
public URIType createURI(String namespaceURI, String prefix, String propertyName, String value)
public URLType createURL(String namespaceURI, String prefix, String propertyName, String value)
public RenditionClassType createRenditionClass(String namespaceURI, String prefix, String propertyName, String value)
public PartType createPart(String namespaceURI, String prefix, String propertyName, String value)
public MIMEType createMIMEType(String namespaceURI, String prefix, String propertyName, String value)
public LocaleType createLocale(String namespaceURI, String prefix, String propertyName, String value)
public GUIDType createGUID(String namespaceURI, String prefix, String propertyName, String value)
public ChoiceType createChoice(String namespaceURI, String prefix, String propertyName, String value)
public AgentNameType createAgentName(String namespaceURI, String prefix, String propertyName, String value)
public XPathType createXPath(String namespaceURI, String prefix, String propertyName, String value)
public ArrayProperty createArrayProperty(String namespace, String prefix, String propertyName, Cardinality type)
public static PropertyType createPropertyType(Types type, Cardinality card)
Copyright © 2002–2018 The Apache Software Foundation. All rights reserved.