Class SchemaModelFactory

java.lang.Object
com.adobe.xmp.schema.model.SchemaModelFactory

public class SchemaModelFactory extends Object
  • Field Details

    • supportRuntimeDecorators

      public static boolean supportRuntimeDecorators
      this is a global setting
  • Constructor Details

    • SchemaModelFactory

      public SchemaModelFactory()
  • Method Details

    • createSchema

      public static SchemaDescription createSchema(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(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(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 property
      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.
    • 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.