Package com.adobe.xmp.schema.model
Class SchemaModelFactory
java.lang.Object
com.adobe.xmp.schema.model.SchemaModelFactory
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic booleanthis is a global setting -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PropertyDescriptioncreateProperty(String localName, PropertyType type) Creates a new XMP property.static PropertyDescriptioncreateProperty(String namespaceURI, String localName, PropertyType type) Creates a new XMP property.static SchemaDescriptioncreateSchema(String namespaceURI) Creates a new XMP schema.static TypeRegistryCreates a type registry.
-
Field Details
-
supportRuntimeDecorators
public static boolean supportRuntimeDecoratorsthis is a global setting
-
-
Constructor Details
-
SchemaModelFactory
public SchemaModelFactory()
-
-
Method Details
-
createSchema
Creates a new XMP schema.- Parameters:
namespaceURI- the namespace of the schema- Returns:
- Returns an instance of SchemaDescription.
-
createProperty
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(String namespaceURI, 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
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.
-