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 booleanprivate static final Comparator<XMLElement> protected Collection<XMLElement> protected final Stringprotected StringThis is what the XMLElement holds. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAttribute(String key, boolean value) voidaddAttribute(String key, int value) voidaddAttribute(String key, String value) voidvoidaddContent(String s) Should be called setContent really - the code in the XML/HTTP plugin invokes this method under this name.voidclear()getAttribute(String key) getTag()makeContent(String tag_name) makeContent(String tag_name, boolean auto_order) voidprintTo(PrintWriter pw) voidprintTo(PrintWriter pw, boolean spaced_out) voidprintTo(PrintWriter pw, int indent) voidprintTo(PrintWriter pw, int indent, boolean spaced_out) private StringvoidsetAutoOrdering(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
-