Package com.norconex.commons.lang.xml
Enum Class XmlFormatter.Builder.AttributeWrap
java.lang.Object
java.lang.Enum<XmlFormatter.Builder.AttributeWrap>
com.norconex.commons.lang.xml.XmlFormatter.Builder.AttributeWrap
- All Implemented Interfaces:
Serializable,Comparable<XmlFormatter.Builder.AttributeWrap>,Constable
- Enclosing class:
XmlFormatter.Builder
public static enum XmlFormatter.Builder.AttributeWrap
extends Enum<XmlFormatter.Builder.AttributeWrap>
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionWrap ALL attributes (one per line).Wrap attributes only whenXmlFormatter.Builder.maxLineLength(int)is reached (respectingXmlFormatter.Builder.minTextLength(int)), keeping as many attributes as possible on each line.Wrap attributes only whenXmlFormatter.Builder.maxLineLength(int)is reached, but putting them all on their own line.Never wrap attributes (ignoringXmlFormatter.Builder.maxLineLength(int)). -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static XmlFormatter.Builder.AttributeWrap[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ALL
Wrap ALL attributes (one per line). -
NONE
Never wrap attributes (ignoringXmlFormatter.Builder.maxLineLength(int)). -
AT_MAX
Wrap attributes only whenXmlFormatter.Builder.maxLineLength(int)is reached (respectingXmlFormatter.Builder.minTextLength(int)), keeping as many attributes as possible on each line. -
AT_MAX_ALL
Wrap attributes only whenXmlFormatter.Builder.maxLineLength(int)is reached, but putting them all on their own line.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-