public class NameValueList extends Object
Constructor and Description |
---|
NameValueList()
Default constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addItem(NameValue nameVal)
Add a name/value pair to the list
|
NameValueList |
findAllItems(String name)
Find all items with the specified name and return as a new list
|
NameValue |
findItem(String name)
Find an item in the list
|
NameValue |
findItemCaseless(String name)
Find an item in the list using a caseless search
|
NameValue |
getItemAt(int idx)
Return the specified item
|
int |
numberOfItems()
Return the count of items in the list
|
void |
removeAllItems()
Remote all items from the list
|
String |
toString()
Return the name/value list as a string
|
public final void addItem(NameValue nameVal)
nameVal
- NameValuepublic final int numberOfItems()
public final NameValue getItemAt(int idx)
idx
- intpublic final NameValue findItem(String name)
name
- Stringpublic final NameValueList findAllItems(String name)
name
- Stringpublic final NameValue findItemCaseless(String name)
name
- Stringpublic final void removeAllItems()
Copyright © 2005–2018 Alfresco Software. All rights reserved.