public class PdfUAValidationContext extends Object
| Constructor and Description |
|---|
PdfUAValidationContext(PdfDocument pdfDocument)
Creates a new instance of
PdfUAValidationContext. |
| Modifier and Type | Method and Description |
|---|---|
PdfStructElem |
getElementIfRoleMatches(PdfName role,
IStructureNode structureNode)
Checks if a
IStructureNode resolved role's is equal to the provided role. |
String |
resolveToStandardRole(IStructureNode node)
Resolves the node's role to a standard role.
|
String |
resolveToStandardRole(String role)
Resolves the role to a standard role
|
public PdfUAValidationContext(PdfDocument pdfDocument)
PdfUAValidationContext.pdfDocument - The pdfDocument where the validation is happening.public String resolveToStandardRole(IStructureNode node)
node - The node you want to resolve the standard role for.public String resolveToStandardRole(String role)
role - The role you want to resolve the standard role for.public PdfStructElem getElementIfRoleMatches(PdfName role, IStructureNode structureNode)
IStructureNode resolved role's is equal to the provided role.
Note: This method will not check recursive mapping. So either the node's role is the provided role, or the standard role is the provided role. So we do not take into account the roles in between the mappings.
role - The role we want to check against.structureNode - The structure node we want to check.PdfStructElem if the role matches.Copyright © 1998–2024 Apryse Group NV. All rights reserved.