Package com.biglybt.core.xml.util
Class XMLElement
java.lang.Object
com.biglybt.core.xml.util.XMLElement
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Comparator
<String> protected boolean
private static final Comparator
<XMLElement> protected Collection
<XMLElement> protected final String
protected String
This is what the XMLElement holds. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addAttribute
(String key, boolean value) void
addAttribute
(String key, int value) void
addAttribute
(String key, String value) void
void
addContent
(String s) Should be called setContent really - the code in the XML/HTTP plugin invokes this method under this name.void
clear()
getAttribute
(String key) getTag()
makeContent
(String tag_name) makeContent
(String tag_name, boolean auto_order) void
printTo
(PrintWriter pw) void
printTo
(PrintWriter pw, boolean spaced_out) void
printTo
(PrintWriter pw, int indent) void
printTo
(PrintWriter pw, int indent, boolean spaced_out) private String
void
setAutoOrdering
(boolean mode) toString()
-
Field Details
-
text_content
This is what the XMLElement holds. It is either: a) A single string (text_content); or b) A collection of XMLElements. Both are null at construction time - only one can be set. -
contents
-
attributes
-
tag_name
-
auto_order
protected boolean auto_order -
ATTRIBUTE_COMPARATOR
-
CONTENT_COMPARATOR
-
-
Constructor Details
-
XMLElement
-
XMLElement
-
-
Method Details
-
getTag
-
getAttribute
-
addAttribute
-
addAttribute
-
addAttribute
-
addContent
Should be called setContent really - the code in the XML/HTTP plugin invokes this method under this name. -
addContent
-
printTo
-
printTo
-
printTo
-
printTo
-
quote
-
makeContent
-
makeContent
-
clear
public void clear() -
setAutoOrdering
public void setAutoOrdering(boolean mode) -
toString
-