|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.util.AbstractCollection
java.util.AbstractList
java.util.AbstractSequentialList
java.util.LinkedList
edu.ucsb.cs.jicos.services.external.ExternalDataList
public class ExternalDataList
| Field Summary |
|---|
| Fields inherited from class java.util.AbstractList |
|---|
modCount |
| Constructor Summary | |
|---|---|
ExternalDataList()
Creates a new empty List. |
|
ExternalDataList(java.util.Collection collection)
Creates a new List and populates it with the contents of
collection. |
|
| Method Summary | |
|---|---|
boolean |
add(java.lang.String key,
java.lang.String value)
Add an individual value to the list. |
boolean |
addKeyValuePairs(java.lang.String[][] keyValuePair)
Helper method - add an array of key value pairs. |
java.lang.String[] |
getArray(java.lang.String xpathQuery)
Get an array of values in the form of org.w3c.dom.Element[]. |
java.lang.String |
getValue(java.lang.String keyName)
Get an individual value from the list. |
ExternalData |
removeWrapper()
Get the data out of the (optional) wrapper. |
| Methods inherited from class java.util.LinkedList |
|---|
add, add, addAll, addAll, addFirst, addLast, clear, clone, contains, element, get, getFirst, getLast, indexOf, lastIndexOf, listIterator, offer, peek, poll, remove, remove, remove, removeFirst, removeLast, set, size, toArray, toArray |
| Methods inherited from class java.util.AbstractSequentialList |
|---|
iterator |
| Methods inherited from class java.util.AbstractList |
|---|
equals, hashCode, listIterator, removeRange, subList |
| Methods inherited from class java.util.AbstractCollection |
|---|
containsAll, isEmpty, removeAll, retainAll, toString |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.List |
|---|
containsAll, equals, hashCode, isEmpty, iterator, listIterator, removeAll, retainAll, subList |
| Constructor Detail |
|---|
public ExternalDataList()
public ExternalDataList(java.util.Collection collection)
collection.
collection - An existing collection to add to the list.| Method Detail |
|---|
public java.lang.String[] getArray(java.lang.String xpathQuery)
(//) is not allowed.child::para[position()= n is
not allowed.(.../*/...)
.../child::para and .../para are
equivalent.
getArray in interface ExternalDataxpathQuery - An XPath query.
public java.lang.String getValue(java.lang.String keyName)
(.../*/...)child:: are removed.attrib:: are replaced with @.
getValue in interface ExternalDatakeyName - A (fake) XPath query.
public ExternalData removeWrapper()
removeWrapper in interface ExternalData
public boolean add(java.lang.String key,
java.lang.String value)
key - The key of this pair.value - An String associated with this key.public boolean addKeyValuePairs(java.lang.String[][] keyValuePair)
keyValuePair - An array of key/value pairs.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||