public class ItemCollection extends Object
Modifier and Type | Class and Description |
---|---|
class |
ItemCollection.ItemComparator |
Constructor and Description |
---|
ItemCollection() |
ItemCollection(ArrayList al) |
Modifier and Type | Method and Description |
---|---|
void |
add(ItemI item) |
void |
addAll(List list) |
void |
addItem(ItemI item) |
void |
clear() |
boolean |
contains(ItemI item,
boolean checkExtensions) |
boolean |
containsByPK(ItemI item,
boolean checkExtensions) |
boolean |
containsByUnique(ItemI item,
boolean checkExtensions) |
void |
extendAll(boolean allowMultiples) |
void |
finalizeLoading() |
ItemI |
find(ItemI item,
boolean checkExtensions) |
ItemI |
findByPK(ItemI item,
boolean checkExtensions) |
ItemI |
findByUnique(ItemI item,
boolean checkExtensions) |
ItemI |
first() |
ItemI |
get(int i) |
ItemI |
getFirst() |
XFTItem |
getItem(String xmlPath,
Object value) |
Iterator |
getItemIterator() |
Iterator |
getItemIterator(String xmlPath) |
ArrayList<ItemI> |
getItems() |
ArrayList<ItemI> |
getItems(String sortBy)
Sorts items by the field specified (via XML stype dot-syntax).
|
ItemCollection |
getItems(String xmlPath,
Object value)
Return ItemCollection of items where this value is found at the specified xml location
|
ArrayList |
getItems(String sortBy,
String sortOrder) |
ArrayList |
items() |
Iterator |
iterator() |
void |
merge(ItemCollection _new) |
String |
output() |
String |
output(String templateName) |
boolean |
removeItem(ItemI i) |
void |
secureAllForRead(UserI user) |
int |
size() |
String |
toString() |
public ItemCollection()
public ItemCollection(ArrayList al)
public ArrayList items()
public Iterator getItemIterator()
public void addItem(ItemI item)
public void add(ItemI item)
public void addAll(List list)
public ItemI get(int i)
public void clear()
public ItemI getFirst()
public ItemI first()
public Iterator iterator()
public void extendAll(boolean allowMultiples) throws XFTInitException, ElementNotFoundException, Exception
public void secureAllForRead(UserI user) throws XFTInitException, ElementNotFoundException, IllegalAccessException, MetaDataException, Exception
public ArrayList getItems(String sortBy, String sortOrder) throws FieldNotFoundException, ClassCastException
public ArrayList<ItemI> getItems(String sortBy) throws FieldNotFoundException, ClassCastException
sortBy
- FieldNotFoundException
ClassCastException
public int size()
public Iterator getItemIterator(String xmlPath) throws FieldNotFoundException, ClassCastException
xmlPath
- FieldNotFoundException
ClassCastException
public ItemCollection getItems(String xmlPath, Object value)
xmlPath
- value
- public void finalizeLoading()
public boolean containsByPK(ItemI item, boolean checkExtensions)
public boolean containsByUnique(ItemI item, boolean checkExtensions)
public boolean contains(ItemI item, boolean checkExtensions)
public String output()
public boolean removeItem(ItemI i)
public void merge(ItemCollection _new)
Copyright © 2015 Neuroinformatics Research Group. All rights reserved.