public class Util extends Object
| Constructor and Description |
|---|
Util() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getRDFBaseUri(String pkgBaseUri,
String internalPath)
Get the RDF base uri of the given internalPath.
|
static boolean |
isSubPathOf(String subPath,
String superPath)
To test whether the subPath is a sut path of superPath
|
static boolean |
qNameEquals(QName at,
QName name)
Test whether two QNames are equal to each other.
|
static String |
toExternalForm(URI u)
To fix the 3 slashes bug for File URI: For example: file:/C:/work/test.txt ->
file:///C:/work/test.txt
|
public static boolean qNameEquals(QName at, QName name)
at - , the QName of an Attributename - , the QName to be comparedpublic static String getRDFBaseUri(String pkgBaseUri, String internalPath)
pkgBaseUri - , the base uri of the packageinternalPath - , the internalPath relative to the root documentpublic static boolean isSubPathOf(String subPath, String superPath)
subPath - , an internal path in the ODF packagesuperPath - , an internal path in the ODF packageCopyright © 2008–2018 Apache Software Foundation; Copyright © 2018–2020 The Document Foundation. All rights reserved.