com.groupdocs.metadata

Interfaces

Classes

Exceptions

com.groupdocs.metadata

Class XmpRdfRoot

  • All Implemented Interfaces:
    com.aspose.ms.System.IEquatable<XmpElementBase>, IXmlValue


    public final class XmpRdfRoot
    extends XmpElementBase
    implements IXmlValue

    Represents rdf:RDF element. A single XMP packet shall be serialized using a single rdf:RDF XML element. The rdf:RDF element content shall consist of only zero or more rdf:Description elements.

    • Constructor Detail

      • XmpRdfRoot

        public XmpRdfRoot()

        Initializes a new instance of the XmpRdfRoot class.

    • Method Detail

      • registerNamespaceUri

        public final void registerNamespaceUri(String prefix,
                                String namespaceUri)

        Adds namespace uri by prefix. Prefix may start without xmlns.

        Parameters:
        prefix - Xml prefix.
        namespaceUri - Namespace uri.


        namespaceUri is unique, it's impossible to have namespaces with the same uri's.

        Throws:
        ArgumentNullException - Prefix is not provided.
      • getNamespaceUri

        public final String getNamespaceUri(String prefix)

        Gets namespace uri by specific prefix. Prefix may start without xmlns.

        Parameters:
        prefix - The prefix.
        Returns:
        appropriate namespace uri.
        Throws:
        ArgumentNullException - Prefix is not provided.
      • getPrefix

        public final String getPrefix(String namespaceUri)

        Gets prefix by specific namespace uri.

        Parameters:
        namespaceUri - Namespace uri.
        Returns:
        appropriate prefix.
      • getXmlValue

        public final String getXmlValue()

        Converts XMP value to the xml representation.

        Specified by:
        getXmlValue in interface IXmlValue
        Returns:
        Returns string representation of XMP value.