public class XmpPdfAExtensionSchema extends Object
Describes the XMP extension schema which is provided by PDF/A-1.
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_EXTENSION_NAMESPACE_PREFIX |
static String |
DEFAULT_EXTENSION_NAMESPACE_URI |
static String |
DEFAULT_FIELD_NAMESPACE_PREFIX |
static String |
DEFAULT_FIELD_NAMESPACE_URI |
static String |
DEFAULT_PROPERTY_NAMESPACE_PREFIX |
static String |
DEFAULT_PROPERTY_NAMESPACE_URI |
static String |
DEFAULT_SCHEMA_NAMESPACE_PREFIX |
static String |
DEFAULT_SCHEMA_NAMESPACE_URI |
static String |
DEFAULT_VALUE_NAMESPACE_URI |
static String |
DEFAULT_VALUE_TYPE_NAMESPACE_PREFIX |
static String |
RDF_NAMESPACE_URI |
static String |
RDF_PREFIX |
Constructor and Description |
---|
XmpPdfAExtensionSchema(XmpPdfAExtensionSchemaDescription description)
Initializes new object.
|
Modifier and Type | Method and Description |
---|---|
void |
add(XmpPdfAExtensionObject obj)
Adds new object into schema.
|
boolean |
contains(XmpPdfAExtensionObject obj)
Determines whether obj exists in schema.
|
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.
|
static com.aspose.ms.System.Xml.XmlElement |
createDescriptionXml(com.aspose.ms.System.Xml.XmlDocument xmlDocument)
Creates the description xml element for the all schemas.
|
static com.aspose.ms.System.Collections.Hashtable |
createSchemasElement(com.aspose.ms.System.Xml.XmlNode rootNode)
Creates the list of schemas elements from xml tree.
|
XmpPdfAExtensionSchemaDescription |
getDescription()
Gets the schema description.
|
com.aspose.ms.System.Collections.ArrayList |
getObjects()
Gets the list of objects (properties, value types).
|
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.
|
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.
|
static void |
initializeSchemaValue(com.aspose.ms.System.Xml.XmlNode node,
XmpPdfAExtensionSchema schema)
Initializes the value of property.
|
static boolean |
isPdfAExtensionPrefix(String localName)
Determines whether prefix value is a part of pdf-a extension.
|
void |
remove(XmpPdfAExtensionObject obj)
Removes the object from schema.
|
public static final String DEFAULT_EXTENSION_NAMESPACE_PREFIX
public static final String DEFAULT_EXTENSION_NAMESPACE_URI
public static final String DEFAULT_SCHEMA_NAMESPACE_PREFIX
public static final String DEFAULT_SCHEMA_NAMESPACE_URI
public static final String DEFAULT_PROPERTY_NAMESPACE_PREFIX
public static final String DEFAULT_PROPERTY_NAMESPACE_URI
public static final String DEFAULT_VALUE_TYPE_NAMESPACE_PREFIX
public static final String DEFAULT_VALUE_NAMESPACE_URI
public static final String DEFAULT_FIELD_NAMESPACE_PREFIX
public static final String DEFAULT_FIELD_NAMESPACE_URI
public static final String RDF_PREFIX
public static final String RDF_NAMESPACE_URI
public XmpPdfAExtensionSchema(XmpPdfAExtensionSchemaDescription description)
Initializes new object.
description
- The schema description.public XmpPdfAExtensionSchemaDescription getDescription()
Gets the schema description.
public com.aspose.ms.System.Collections.ArrayList getObjects()
Gets the list of objects (properties, value types).
public void add(XmpPdfAExtensionObject obj)
Adds new object into schema.
obj
- The new object.public boolean contains(XmpPdfAExtensionObject obj)
Determines whether obj exists in schema.
obj
- The obj to find.public void remove(XmpPdfAExtensionObject obj)
Removes the object from schema.
obj
- The object to remove.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.
xmlDocument
- The source xml document.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.
xmlDocument
- The source xml document.rootElement
- The root node of properties values list.public static boolean isPdfAExtensionPrefix(String localName)
Determines whether prefix value is a part of pdf-a extension.
localName
- The prefix value to validate.public static com.aspose.ms.System.Collections.Hashtable createSchemasElement(com.aspose.ms.System.Xml.XmlNode rootNode)
Creates the list of schemas elements from xml tree.
rootNode
- The root node for schemas elements.public static void initializeSchemaValue(com.aspose.ms.System.Xml.XmlNode node, XmpPdfAExtensionSchema schema)
Initializes the value of property.
node
- The current node that stores property value.schema
- The schema that contains property definition.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.
xmlDocument
- The source xml document.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.
xmlDocument
- The source xml document.Copyright © 2017 Aspose. All Rights Reserved.