public final class StandardNamespaces extends Object
See ISO 32000-2 14.8.6, "Standard structure namespaces"
Modifier and Type | Field and Description |
---|---|
static String |
PDF_1_7
Specifies the name of the standard structure namespace for PDF 1.7
|
static String |
PDF_2_0
Specifies the name of the standard structure namespace for PDF 2.0
|
Constructor and Description |
---|
StandardNamespaces() |
Modifier and Type | Method and Description |
---|---|
static String |
getDefault()
Gets the name of the default standard structure namespace.
|
static boolean |
isHnRole(String role)
Checks if the given role matches the Hn role pattern.
|
static boolean |
isKnownDomainSpecificNamespace(PdfNamespace namespace)
Checks if the given namespace is identified as the one that is common within broad ranges of documents types and doesn't require a role mapping for it's roles.
|
static boolean |
roleBelongsToStandardNamespace(String role, String standardNamespaceName)
Checks if the given role is considered standard in the specified standard namespace.
|
public static final String PDF_1_7
public static final String PDF_2_0
public static String getDefault()
PDF_1_7
.
public static boolean isKnownDomainSpecificNamespace(PdfNamespace namespace)
namespace
- a namespace to be checked, whether it defines a namespace of the known domain specific language.
PdfNamespace
belongs to the domain-specific namespace, false otherwise.
public static boolean roleBelongsToStandardNamespace(String role, String standardNamespaceName)
role
- a role to be checked if it is standard in the given standard structure namespace.
standardNamespaceName
- a String
identifying standard structure namespace against which given role will be checked.
public static boolean isHnRole(String role)
role
- a String
that specifies a role to be checked against Hn role pattern.
Copyright © 1998–2018 iText Group NV. All rights reserved.