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
Default extension namespace prefix.
|
static String |
DEFAULT_EXTENSION_NAMESPACE_URI
Default extension namespace uri.
|
static String |
DEFAULT_FIELD_NAMESPACE_PREFIX
Default field namespace prefix.
|
static String |
DEFAULT_FIELD_NAMESPACE_URI
Default extension namespace uri.
|
static String |
DEFAULT_PROPERTY_NAMESPACE_PREFIX
Default property namespace prefix.
|
static String |
DEFAULT_PROPERTY_NAMESPACE_URI
Default property namespace uri.
|
static String |
DEFAULT_SCHEMA_NAMESPACE_PREFIX
Default schema namespace prefix.
|
static String |
DEFAULT_SCHEMA_NAMESPACE_URI
Default schema namespace uri.
|
static String |
DEFAULT_VALUE_NAMESPACE_URI
Default value namespace uri.
|
static String |
DEFAULT_VALUE_TYPE_NAMESPACE_PREFIX
Default valie type namespace prefix.
|
static String |
RDF_NAMESPACE_URI
Default rdf namespace uri.
|
static String |
RDF_PREFIX
Default rdf namespace 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.pdf.engine.collections.HashDictionary<String,XmpPdfAExtensionSchema> |
createSchemasElement(com.aspose.ms.System.Xml.XmlNode rootNode)
Creates the list of schemas elements from xml tree.
|
XmpPdfAExtensionSchemaDescription |
getDescription()
Gets the schema description.
|
List |
getObjects1()
Gets the list of objects (properties, value types).
|
com.aspose.ms.System.Collections.Generic.List<XmpPdfAExtensionObject> |
getObjectsInternal()
Gets the list of objects (properties, value types).
|
XmpPdfAExtensionProperty |
getProperty(String name)
Returns PDF/A property by its name.
|
int |
getPropertyIndex(String name)
Returns index of property with given name.
|
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
Default extension namespace prefix.
public static final String DEFAULT_EXTENSION_NAMESPACE_URI
Default extension namespace uri.
public static final String DEFAULT_SCHEMA_NAMESPACE_PREFIX
Default schema namespace prefix.
public static final String DEFAULT_SCHEMA_NAMESPACE_URI
Default schema namespace uri.
public static final String DEFAULT_PROPERTY_NAMESPACE_PREFIX
Default property namespace prefix.
public static final String DEFAULT_PROPERTY_NAMESPACE_URI
Default property namespace uri.
public static final String DEFAULT_VALUE_TYPE_NAMESPACE_PREFIX
Default valie type namespace prefix.
public static final String DEFAULT_VALUE_NAMESPACE_URI
Default value namespace uri.
public static final String DEFAULT_FIELD_NAMESPACE_PREFIX
Default field namespace prefix.
public static final String DEFAULT_FIELD_NAMESPACE_URI
Default extension namespace uri.
public static final String RDF_PREFIX
Default rdf namespace prefix.
public static final String RDF_NAMESPACE_URI
Default 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.Generic.List<XmpPdfAExtensionObject> getObjectsInternal()
Gets the list of objects (properties, value types).
public List getObjects1()
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 final int getPropertyIndex(String name)
Returns index of property with given name.
name
- Property name.public final XmpPdfAExtensionProperty getProperty(String name)
Returns PDF/A property by its name.
name
- Property name.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.pdf.engine.collections.HashDictionary<String,XmpPdfAExtensionSchema> 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.