Class VeraPDFExtensionSchemaDefinition

java.lang.Object
org.verapdf.xmp.impl.VeraPDFExtensionSchemaDefinition

public class VeraPDFExtensionSchemaDefinition extends Object
  • Constructor Details

    • VeraPDFExtensionSchemaDefinition

      public VeraPDFExtensionSchemaDefinition(VeraPDFXMPNode xmpNode)
      VeraPDF extension schema.
      Parameters:
      xmpNode - a metadata node
  • Method Details

    • getExtensionSchemaProperties

      public List<VeraPDFExtensionSchemaProperty> getExtensionSchemaProperties()
      Gets schema properties.
      Returns:
      schema properties
    • getPropertiesNode

      public VeraPDFXMPNode getPropertiesNode()
      Gets property of xmp node.
      Returns:
      xmp node property value
    • addExtensionSchemaProperty

      public void addExtensionSchemaProperty(VeraPDFExtensionSchemaProperty propertyDefinitionXMPNode) throws XMPException
      Adds extension schema property.
      Parameters:
      propertyDefinitionXMPNode - a property of xmp node
      Throws:
      XMPException - exceptions from the metadata processing
    • getNamespaceURI

      public String getNamespaceURI()
      Gets namespaces URI of xmp node.
      Returns:
      xmp node namespace value
    • getPrefix

      public String getPrefix()
      Gets prefix of xmp node.
      Returns:
      xmp node prefix value
    • getXmpNode

      public XMPNode getXmpNode()
      Gets xmp node.
      Returns:
      original xmp node from metadata
    • createExtensionSchemaDefinitionNode

      public static VeraPDFExtensionSchemaDefinition createExtensionSchemaDefinitionNode(String schema, String namespaceURI, String prefix) throws XMPException
      Creates schema definition node.
      Parameters:
      schema - a xmp schema definition
      namespaceURI - a namespace URI of the node
      prefix - a prefix of the node
      Returns:
      xmp extension schema
      Throws:
      XMPException - exceptions from the metadata processing