public class PluginUtils extends Object
Modifier and Type | Class and Description |
---|---|
static class |
PluginUtils.DefaultLibraryObjectComparator
Default LibraryObject comparator.
|
static class |
PluginUtils.LibraryObjectComparator
Compares two LibraryObjects based on the String representation of a
specified attribute of the objects.
|
Modifier and Type | Field and Description |
---|---|
static PluginUtils.DefaultLibraryObjectComparator |
DEFAULT_LO_COMPARATOR
Default LibraryObject comparator that can be used with
Arrays.sort() |
static PluginUtils.LibraryObjectComparator |
LO_NAME_COMPARATOR
Name-based LibraryObject comparator that can be used with
Arrays.sort() |
Modifier and Type | Method and Description |
---|---|
static void |
fingerprintLibraryObject(FingerprintContext context,
LibraryObject lo)
Fingerprints a single LibraryObject to the output stream.
|
static String |
replacePattern(LibraryObject fpo,
String attrName,
String attrValue)
Replaces a pattern for the given attribute, only if needed.
|
static String |
toLogString(LibraryObject lo)
Produces a standard string representation of a given LibraryObject,
suitable for logging.
|
public static final PluginUtils.DefaultLibraryObjectComparator DEFAULT_LO_COMPARATOR
Arrays.sort()
public static final PluginUtils.LibraryObjectComparator LO_NAME_COMPARATOR
Arrays.sort()
public static void fingerprintLibraryObject(FingerprintContext context, LibraryObject lo) throws Exception
context
- the contextlo
- the object to dumpException
- if the operation failspublic static String replacePattern(LibraryObject fpo, String attrName, String attrValue) throws IfsException
fpo
- the object being fingerprintedattrName
- the attribute nameattrValue
- the attribute valueIfsException
- if the operation failspublic static String toLogString(LibraryObject lo) throws IfsException
lo
- the LibraryObjectIfsException
- if the operation failsCopyright © 2023. All rights reserved.