Package com.norconex.commons.lang.xml
Enum 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>
- Enclosing class:
- XMLFormatter.Builder
public static enum XMLFormatter.Builder.AttributeWrap extends Enum<XMLFormatter.Builder.AttributeWrap>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ALLWrap ALL attributes (one per line).AT_MAXWrap attributes only whenXMLFormatter.Builder.maxLineLength(int)is reached (respectingXMLFormatter.Builder.minTextLength(int)), keeping as many attributes as possible on each line.AT_MAX_ALLWrap attributes only whenXMLFormatter.Builder.maxLineLength(int)is reached, but putting them all on their own line.NONENever wrap attributes (ignoringXMLFormatter.Builder.maxLineLength(int)).
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static XMLFormatter.Builder.AttributeWrapvalueOf(String name)Returns the enum constant of this type with the specified name.static XMLFormatter.Builder.AttributeWrap[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ALL
public static final XMLFormatter.Builder.AttributeWrap ALL
Wrap ALL attributes (one per line).
-
NONE
public static final XMLFormatter.Builder.AttributeWrap NONE
Never wrap attributes (ignoringXMLFormatter.Builder.maxLineLength(int)).
-
AT_MAX
public static final XMLFormatter.Builder.AttributeWrap 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
public static final XMLFormatter.Builder.AttributeWrap AT_MAX_ALL
Wrap attributes only whenXMLFormatter.Builder.maxLineLength(int)is reached, but putting them all on their own line.
-
-
Method Detail
-
values
public static XMLFormatter.Builder.AttributeWrap[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (XMLFormatter.Builder.AttributeWrap c : XMLFormatter.Builder.AttributeWrap.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static XMLFormatter.Builder.AttributeWrap valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-
-