Interface SvgMetadata
public interface SvgMetadata
Describes a single custom element to write inside SVG
<metadata> (see SvgMetadataProvider). For namespace-qualified output, supply both getPrefix() and
getNamespaceUri(); the serializer emits xmlns:prefix="..." on that element. If only a prefix is set without a URI, the prefix may be unbound unless declared elsewhere in the
document.- Since:
- 26.4
-
Method Summary
Modifier and TypeMethodDescription@Nonnull StringLocal name of the metadata element (without prefix).@Nullable StringNamespace URI bound togetPrefix()for this element, ornullif noxmlnsshould be written for the prefix on this tag.@Nullable StringXML namespace prefix for the element, ornullfor no prefix (local name only).@Nonnull StringgetValue()Text content of the element (escaped as XML character data).
-
Method Details
-
getPrefix
@Nullable String getPrefix()XML namespace prefix for the element, ornullfor no prefix (local name only).- Returns:
- the prefix, or
null - Since:
- 26.4
-
getLocalName
@Nonnull String getLocalName()Local name of the metadata element (without prefix).- Returns:
- non-null element local name
- Since:
- 26.4
-
getNamespaceUri
@Nullable String getNamespaceUri()Namespace URI bound togetPrefix()for this element, ornullif noxmlnsshould be written for the prefix on this tag.- Returns:
- the namespace URI, or
null - Since:
- 26.4
-
getValue
@Nonnull String getValue()Text content of the element (escaped as XML character data).- Returns:
- non-null text body
- Since:
- 26.4
-