Class SchemaModelFactory


  • public class SchemaModelFactory
    extends java.lang.Object
    • Field Detail

      • supportRuntimeDecorators

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

      • SchemaModelFactory

        public SchemaModelFactory()
    • 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 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.