public enum Utils extends Enum<Utils>
| Enum Constant and Description |
|---|
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
static String |
encodeContent(String content)
Encodes a content String in XML-clean form, converting characters to entities
as necessary and removing control characters disallowed by XML.
|
static String |
encodeValue(String value)
Encodes an attribute value String in XML-clean form, converting quote
characters to entities and removing control characters disallowed by XML.
|
static boolean |
isPropertyEmpty(Property property,
PropertyArity arity)
Checks if a property would produce an empty XML element, and returns true if
it would.
|
static Utils |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Utils[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Utils INSTANCE
public static Utils[] values()
for (Utils c : Utils.values()) System.out.println(c);
public static Utils valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static String encodeContent(String content)
public static String encodeValue(String value)
public static boolean isPropertyEmpty(Property property, PropertyArity arity)
Copyright © 2008–2020 The Open Preservation Foundation. All rights reserved.