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)
@Deprecated public PropertiesDescription getDefinedDescriptionByNamespace(String namespace)
public PropertiesDescription getDefinedDescriptionByNamespace(String namespace, String pdfaFieldName)
namespace - pdfaFieldName - public AbstractStructuredType instanciateStructuredType(Types type, String propertyName) throws BadFieldValueException
BadFieldValueExceptionpublic 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)
@Deprecated 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)
@Deprecated public PropertyType getSpecifiedPropertyType(QName qName) throws BadFieldValueException
BadFieldValueExceptionpublic PropertyType getSpecifiedPropertyType(QName qName, String parentTypeName) throws BadFieldValueException
qName - the property Qualified NameparentTypeName - the type name of the parent, or null if not known. This is intended to
help when the field name is in several types, e.g. "Values" in exif.BadFieldValueException - if the name of a type 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–2026 The Apache Software Foundation. All rights reserved.