com.aspose.pdf

Interfaces

Classes

Enums

Exceptions

com.aspose.pdf

Class XmpPdfAExtensionSchema



  • public class XmpPdfAExtensionSchema
    extends Object

    Describes the XMP extension schema which is provided by PDF/A-1.

    • Field Detail

      • DEFAULT_EXTENSION_NAMESPACE_PREFIX

        public static final String DEFAULT_EXTENSION_NAMESPACE_PREFIX

        Default extension namespace prefix.

        See Also:
        Constant Field Values
      • DEFAULT_EXTENSION_NAMESPACE_URI

        public static final String DEFAULT_EXTENSION_NAMESPACE_URI

        Default extension namespace uri.

        See Also:
        Constant Field Values
      • DEFAULT_SCHEMA_NAMESPACE_PREFIX

        public static final String DEFAULT_SCHEMA_NAMESPACE_PREFIX

        Default schema namespace prefix.

        See Also:
        Constant Field Values
      • DEFAULT_SCHEMA_NAMESPACE_URI

        public static final String DEFAULT_SCHEMA_NAMESPACE_URI

        Default schema namespace uri.

        See Also:
        Constant Field Values
      • DEFAULT_PROPERTY_NAMESPACE_PREFIX

        public static final String DEFAULT_PROPERTY_NAMESPACE_PREFIX

        Default property namespace prefix.

        See Also:
        Constant Field Values
      • DEFAULT_PROPERTY_NAMESPACE_URI

        public static final String DEFAULT_PROPERTY_NAMESPACE_URI

        Default property namespace uri.

        See Also:
        Constant Field Values
      • DEFAULT_VALUE_TYPE_NAMESPACE_PREFIX

        public static final String DEFAULT_VALUE_TYPE_NAMESPACE_PREFIX

        Default valie type namespace prefix.

        See Also:
        Constant Field Values
      • DEFAULT_VALUE_NAMESPACE_URI

        public static final String DEFAULT_VALUE_NAMESPACE_URI

        Default value namespace uri.

        See Also:
        Constant Field Values
      • DEFAULT_FIELD_NAMESPACE_PREFIX

        public static final String DEFAULT_FIELD_NAMESPACE_PREFIX

        Default field namespace prefix.

        See Also:
        Constant Field Values
      • DEFAULT_FIELD_NAMESPACE_URI

        public static final String DEFAULT_FIELD_NAMESPACE_URI

        Default extension namespace uri.

        See Also:
        Constant Field Values
    • Constructor Detail

      • XmpPdfAExtensionSchema

        public XmpPdfAExtensionSchema(XmpPdfAExtensionSchemaDescription description)

        Initializes new object.

        Parameters:
        description - The schema description.
    • Method Detail

      • getObjects1

        public List getObjects1()

        Gets the list of objects (properties, value types).

        Returns:
        ArrayList
      • add

        public void add(XmpPdfAExtensionObject obj)

        Adds new object into schema.

        Parameters:
        obj - The new object.
      • contains

        public boolean contains(XmpPdfAExtensionObject obj)

        Determines whether obj exists in schema.

        Parameters:
        obj - The obj to find.
        Returns:
        True - object exists in schema; otherwise, false.
      • remove

        public void remove(XmpPdfAExtensionObject obj)

        Removes the object from schema.

        Parameters:
        obj - The object to remove.
      • getSchemaXml

        public com.aspose.ms.System.Xml.XmlElement getSchemaXml(com.aspose.ms.System.Xml.XmlDocument xmlDocument)

        Returns the xml element (tag - li) that represents schema in xml tree.

        Parameters:
        xmlDocument - The source xml document.
        Returns:
        The xml element.
      • getValuesXml

        public void getValuesXml(com.aspose.ms.System.Xml.XmlDocument xmlDocument,
                                 com.aspose.ms.System.Xml.XmlElement rootElement)

        Gets the values of properties as xml tree representation.

        Parameters:
        xmlDocument - The source xml document.
        rootElement - The root node of properties values list.
      • isPdfAExtensionPrefix

        public static boolean isPdfAExtensionPrefix(String localName)

        Determines whether prefix value is a part of pdf-a extension.

        Parameters:
        localName - The prefix value to validate.
        Returns:
        True - prefix is a part of pdf-a extension; otherwise, false.
      • createSchemasElement

        public static com.aspose.pdf.engine.collections.HashDictionary<String,XmpPdfAExtensionSchema> createSchemasElement(com.aspose.ms.System.Xml.XmlNode rootNode)

        Creates the list of schemas elements from xml tree.

        Parameters:
        rootNode - The root node for schemas elements.
        Returns:
        The dictionary of schemas elements in format (key, value): schema_prefix, schema value.
      • initializeSchemaValue

        public static void initializeSchemaValue(com.aspose.ms.System.Xml.XmlNode node,
                                                 XmpPdfAExtensionSchema schema)

        Initializes the value of property.

        Parameters:
        node - The current node that stores property value.
        schema - The schema that contains property definition.
      • createDescriptionValueXml

        public static com.aspose.ms.System.Xml.XmlElement createDescriptionValueXml(com.aspose.ms.System.Xml.XmlDocument xmlDocument)

        Creates the description xml element for the block of properties values.

        Parameters:
        xmlDocument - The source xml document.
        Returns:
        The description xml element.
      • createDescriptionXml

        public static com.aspose.ms.System.Xml.XmlElement createDescriptionXml(com.aspose.ms.System.Xml.XmlDocument xmlDocument)

        Creates the description xml element for the all schemas.

        Parameters:
        xmlDocument - The source xml document.
        Returns:
        The description xml element.