public class DomHelper extends Object
| Constructor and Description |
|---|
DomHelper() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addBinary(Element documentElement,
String b64,
Integer index)
Add a binary property value to the V3 Meta/Binaries element
|
static @NotNull String |
ensureElementContent(String elementPath,
Element parentElement,
@NotNull String value) |
static String |
getBinary(Element documentElement,
Integer index) |
static int |
getBinaryCount(Element documentElement) |
static @Nullable String |
getElementContent(String elementPath,
Element parentElement) |
static @NotNull Element |
setElementContent(String elementPath,
Element parentElement,
String value) |
public static XPath xpath
@Nullable public static @Nullable String getElementContent(String elementPath, Element parentElement)
@NotNull public static @NotNull String ensureElementContent(String elementPath, Element parentElement, @NotNull @NotNull String value)
@NotNull public static @NotNull Element setElementContent(String elementPath, Element parentElement, String value)
public static void addBinary(Element documentElement, String b64, Integer index)
documentElement - the document elementb64 - a base64 gzipped encoded representation of the binary contentindex - the index by which it is knownpublic static int getBinaryCount(Element documentElement)
Copyright © 2023. All rights reserved.