public class XMLAttributeList
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
XMLAttributeList.NameValuePair |
Constructor and Description |
---|
XMLAttributeList()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public XMLAttributeList addAttribute(@Nonnull java.lang.String name, @Nonnull java.lang.String value)
name
- the attribute namevalue
- the attribute valuepublic XMLAttributeList addOptionalAttribute(@Nonnull java.lang.String name, @CheckForNull java.lang.String value)
name
- the attribute namevalue
- the attribute valuepublic 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 attributeFindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.