|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.crosswire.common.xml.FormatType
public final class FormatType
The PrettySerializingContentHandler uses a FormatType to control its output.
for license details.
The copyright to this program is held by it's authors.
,
Serialized FormField Summary | |
---|---|
static FormatType |
ANALYSIS
|
static FormatType |
ANALYSIS_INDENT
|
private boolean |
analytic
|
static FormatType |
AS_IS
|
private boolean |
classic
|
static FormatType |
CLASSIC
|
static FormatType |
CLASSIC_INDENT
|
private boolean |
indented
|
private boolean |
multiline
|
private String |
name
The name of the FormatType |
private static int |
nextObj
|
private int |
obj
|
private static long |
serialVersionUID
Serialization ID |
private static FormatType[] |
VALUES
|
Constructor Summary | |
---|---|
FormatType(String aName,
boolean displayNewlines,
boolean doIndenting,
boolean classicLines)
Simple ctor |
Method Summary | |
---|---|
static FormatType |
fromInteger(int i)
Lookup method to convert from an integer |
static FormatType |
fromString(String name)
Lookup method to convert from a String |
boolean |
isAnalytic()
Whether added whitespace is inside tags. |
boolean |
isClassic()
Whether added whitespace is between tags. |
boolean |
isIndented()
Whether indents are introduced into the document. |
boolean |
isMultiline()
Whether newlines are introduced into the document. |
(package private) Object |
readResolve()
|
int |
toInteger()
Get an integer representation for this FormatType |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final FormatType AS_IS
public static final FormatType ANALYSIS
public static final FormatType CLASSIC
public static final FormatType ANALYSIS_INDENT
public static final FormatType CLASSIC_INDENT
private String name
private boolean indented
private boolean multiline
private boolean analytic
private boolean classic
private static int nextObj
private final int obj
private static final FormatType[] VALUES
private static final long serialVersionUID
Constructor Detail |
---|
public FormatType(String aName, boolean displayNewlines, boolean doIndenting, boolean classicLines)
Method Detail |
---|
public boolean isMultiline()
public boolean isIndented()
public boolean isAnalytic()
public boolean isClassic()
public int toInteger()
public static FormatType fromString(String name)
public static FormatType fromInteger(int i)
public String toString()
toString
in class Object
Object readResolve()
|
Copyright ยจ 2003-2006 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |