|
|||||||||
| 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
|
private static class |
XMLAttributeList.StringBufferQuoteMetaCharacters
|
| Field Summary | |
|---|---|
private static MetaCharacterMap |
attrMetaCharacterMap
|
private java.util.List<XMLAttributeList.NameValuePair> |
nameValuePairList
|
| Constructor Summary | |
|---|---|
XMLAttributeList()
Constructor. |
|
| Method Summary | |
|---|---|
XMLAttributeList |
addAttribute(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 |
| Field Detail |
|---|
private static final MetaCharacterMap attrMetaCharacterMap
private java.util.List<XMLAttributeList.NameValuePair> nameValuePairList
| Constructor Detail |
|---|
public XMLAttributeList()
| Method Detail |
|---|
public XMLAttributeList addAttribute(java.lang.String name,
java.lang.String value)
name - the attribute namevalue - the attribute value
public java.lang.String toString()
toString in class java.lang.Objectpublic java.util.Iterator<XMLAttributeList.NameValuePair> iterator()
public static java.lang.String getQuotedAttributeValue(java.lang.String rawValue)
rawValue - the raw value of the attribute
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||