Class FoundIdentifiables
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<E>
-
- java.util.ArrayList<Identifiable>
-
- edu.uiuc.ncsa.security.storage.cli.FoundIdentifiables
-
- All Implemented Interfaces:
Serializable,Cloneable,Iterable<Identifiable>,Collection<Identifiable>,List<Identifiable>,RandomAccess
public class FoundIdentifiables extends ArrayList<Identifiable>
The list of fidentifier found from theStoreCommands.findItem(InputLine, boolean)method. It contains the list ofIdentifiables as well as forensic information about where it came from (so better error and informational messages can be written).- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanisRS-
Fields inherited from class java.util.AbstractList
modCount
-
-
Constructor Summary
Constructors Constructor Description FoundIdentifiables(boolean isRS)FoundIdentifiables(boolean isRS, int initialCapacity)FoundIdentifiables(boolean isRS, Collection<? extends Identifiable> c)FoundIdentifiables(List<Identifiable> allEntries)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetNumericIndex()IfisNumericIndexis true, this is the index that was given.ListgetRsIndexList()IfisRS()is true and an index list was specified, this will be non-null.StringgetRSName()booleanhasRSIndexList()booleanisGivenID()If the id was explicitly set on the command line as an argument.booleanisLocalID()If this was found to be set locally with thecall.booleanisNumericIndex()If this was given as the numeric indexbooleanisRS()booleanisSingleton()Is does this list have a single element?voidsetGivenID(boolean givenID)voidsetLocalID(boolean localID)voidsetNumericIndex(boolean numericIndex)voidsetNumericIndex(int numericIndex)voidsetRS(boolean RS)voidsetRsIndexList(List rsIndexList)voidsetRSName(String rsName)-
Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, equals, forEach, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
-
Methods inherited from class java.util.AbstractCollection
containsAll, toString
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, stream, toArray
-
Methods inherited from interface java.util.List
containsAll
-
-
-
-
Constructor Detail
-
FoundIdentifiables
public FoundIdentifiables(boolean isRS, int initialCapacity)
-
FoundIdentifiables
public FoundIdentifiables(boolean isRS)
-
FoundIdentifiables
public FoundIdentifiables(List<Identifiable> allEntries)
-
FoundIdentifiables
public FoundIdentifiables(boolean isRS, Collection<? extends Identifiable> c)
-
-
Method Detail
-
isSingleton
public boolean isSingleton()
Is does this list have a single element?- Returns:
-
isRS
public boolean isRS()
-
setRS
public void setRS(boolean RS)
-
isLocalID
public boolean isLocalID()
If this was found to be set locally with thecall.- Returns:
-
setLocalID
public void setLocalID(boolean localID)
-
isNumericIndex
public boolean isNumericIndex()
If this was given as the numeric index- Returns:
-
setNumericIndex
public void setNumericIndex(boolean numericIndex)
-
getNumericIndex
public int getNumericIndex()
IfisNumericIndexis true, this is the index that was given.- Returns:
-
setNumericIndex
public void setNumericIndex(int numericIndex)
-
getRSName
public String getRSName()
- Returns:
-
setRSName
public void setRSName(String rsName)
-
hasRSIndexList
public boolean hasRSIndexList()
-
getRsIndexList
public List getRsIndexList()
IfisRS()is true and an index list was specified, this will be non-null.- Returns:
-
setRsIndexList
public void setRsIndexList(List rsIndexList)
-
isGivenID
public boolean isGivenID()
If the id was explicitly set on the command line as an argument. The id itself will be in the identifier and in such cases there is exactly one.- Returns:
-
setGivenID
public void setGivenID(boolean givenID)
-
-