public class XMLAttributeList extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
XMLAttributeList.NameValuePair |
| Constructor and Description |
|---|
XMLAttributeList()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
XMLAttributeList |
addAttribute(String name,
String value)
Add a single attribute name and value.
|
XMLAttributeList |
addOptionalAttribute(String name,
String value)
Add a single attribute name and value.
|
static String |
getQuotedAttributeValue(String rawValue)
Return a properly quoted form for an attribute value.
|
Iterator<XMLAttributeList.NameValuePair> |
iterator()
Return an Iterator over NameValuePairs.
|
String |
toString()
Return the attribute list as a String which can be directly output as
part of an XML tag.
|
public XMLAttributeList addAttribute(@Nonnull String name, @Nonnull String value)
name - the attribute namevalue - the attribute valuepublic XMLAttributeList addOptionalAttribute(@Nonnull String name, @CheckForNull String value)
name - the attribute namevalue - the attribute valuepublic String toString()
public Iterator<XMLAttributeList.NameValuePair> iterator()
Copyright © 2003–2015. All rights reserved.