public class PdfAllowedTagRelations extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
ACTUAL_CONTENT |
protected Map<String,Collection<String>> |
allowedParentChildRelations |
static String |
NUMBERED_HEADER |
| Constructor and Description |
|---|
PdfAllowedTagRelations()
Creates a new instance of
PdfAllowedTagRelations. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isContentAllowedInRole(String parentRole)
Checks if the given parent role allows content.
|
boolean |
isRelationAllowed(String parentRole,
String childRole)
Checks if the given parent-child relation is allowed.
|
String |
normalizeRole(String role)
Normalizes the role.
|
public static final String NUMBERED_HEADER
public static final String ACTUAL_CONTENT
protected final Map<String,Collection<String>> allowedParentChildRelations
public PdfAllowedTagRelations()
PdfAllowedTagRelations.public boolean isRelationAllowed(String parentRole, String childRole)
parentRole - The parent role.childRole - The child role.true if the relation is allowed, false otherwise.public boolean isContentAllowedInRole(String parentRole)
parentRole - The parent role.true if the parent role allows content, false otherwise.Copyright © 1998–2025 Apryse Group NV. All rights reserved.