XmpRdfRoot

Inheritance: java.lang.Object, com.aspose.imaging.xmp.XmpElementBase

All Implemented Interfaces: com.aspose.imaging.xmp.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.

Constructors

ConstructorDescription
XmpRdfRoot()Initializes a new instance of the XmpRdfRoot class.

Methods

MethodDescription
registerNamespaceUri(String prefix, String namespaceUri)Adds namespace uri by prefix.
getNamespaceUri(String prefix)Gets namespace URI by specific prefix.
getXmlValue()Converts xmp value to the xml representation.

XmpRdfRoot()

public XmpRdfRoot()

Initializes a new instance of the XmpRdfRoot class.

registerNamespaceUri(String prefix, String namespaceUri)

public void registerNamespaceUri(String prefix, String namespaceUri)

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

Parameters:

ParameterTypeDescription
prefixjava.lang.StringThe prefix.
namespaceUrijava.lang.StringPackage schema uri.

getNamespaceUri(String prefix)

public String getNamespaceUri(String prefix)

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

Parameters:

ParameterTypeDescription
prefixjava.lang.StringThe prefix.

Returns: java.lang.String - Returns a package schema URI.

getXmlValue()

public String getXmlValue()

Converts xmp value to the xml representation.

Returns: java.lang.String - Returns XMP value converted to XML string.