|
FindBugs™ 1.3.9 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.umd.cs.findbugs.xml.XMLAttributeList
public class XMLAttributeList
Helper class to format attributes in an XML tag.
Nested Class Summary | |
---|---|
static class |
XMLAttributeList.NameValuePair
|
Constructor Summary | |
---|---|
XMLAttributeList()
Constructor. |
Method Summary | |
---|---|
XMLAttributeList |
addAttribute(java.lang.String name,
java.lang.String value)
Add a single attribute name and value. |
XMLAttributeList |
addOptionalAttribute(java.lang.String name,
java.lang.String value)
Add a single attribute name and value. |
static java.lang.String |
getQuotedAttributeValue(java.lang.String rawValue)
Return a properly quoted form for an attribute value. |
java.util.Iterator<XMLAttributeList.NameValuePair> |
iterator()
Return an Iterator over NameValuePairs. |
java.lang.String |
toString()
Return the attribute list as a String which can be directly output as part of an XML tag. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public XMLAttributeList()
Method Detail |
---|
public XMLAttributeList addAttribute(@NonNull java.lang.String name, @NonNull java.lang.String value)
name
- the attribute namevalue
- the attribute value
public XMLAttributeList addOptionalAttribute(@NonNull java.lang.String name, @CheckForNull java.lang.String value)
name
- the attribute namevalue
- the attribute value
public java.lang.String toString()
toString
in class java.lang.Object
public java.util.Iterator<XMLAttributeList.NameValuePair> iterator()
public static java.lang.String getQuotedAttributeValue(@NonNull java.lang.String rawValue)
rawValue
- the raw value of the attribute
|
FindBugs™ 1.3.9 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |