Package com.adobe.xmp.schema.model
Class SchemaModelFactory
- java.lang.Object
-
- com.adobe.xmp.schema.model.SchemaModelFactory
-
public class SchemaModelFactory extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static boolean
supportRuntimeDecorators
this is a global setting
-
Constructor Summary
Constructors Constructor Description SchemaModelFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PropertyDescription
createProperty(java.lang.String localName, PropertyType type)
Creates a new XMP property.static PropertyDescription
createProperty(java.lang.String namespaceURI, java.lang.String localName, PropertyType type)
Creates a new XMP property.static SchemaDescription
createSchema(java.lang.String namespaceURI)
Creates a new XMP schema.static TypeRegistry
createTypeRegistry()
Creates a type registry.
-
-
-
Method Detail
-
createSchema
public static SchemaDescription createSchema(java.lang.String namespaceURI)
Creates a new XMP schema.- Parameters:
namespaceURI
- the namespace of the schema- Returns:
- Returns an instance of SchemaDescription.
-
createProperty
public static PropertyDescription createProperty(java.lang.String localName, PropertyType type)
Creates a new XMP property. Convenience method for properties that inherit its' parent namespace.- Parameters:
localName
- name of the property (within the namespace)type
- the property type, it can be simple, array or struct- Returns:
- Returns an instance of PropertyDescription.
-
createProperty
public static PropertyDescription createProperty(java.lang.String namespaceURI, java.lang.String localName, PropertyType type)
Creates a new XMP property. Each property has a name and a type. Properties can be added to a schema or to a struct.- Parameters:
namespaceURI
- the namespace of the propertylocalName
- name of the property (within the namespace)type
- the property type, it can be simple, array or struct- Returns:
- Returns an instance of PropertyDescription.
-
createTypeRegistry
public static TypeRegistry createTypeRegistry()
Creates a type registry. It assigns names to XMP types and makes them re-usable. The "named" types are also needed to reference predefined types in our fragment libraries. The registry is not necessarily needed to create a schema.- Returns:
- Returns an instance of TypeRegistry.
-
-