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 ofIdentifiable
s 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 boolean
isRS
-
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 int
getNumericIndex()
IfisNumericIndex
is true, this is the index that was given.List
getRsIndexList()
IfisRS()
is true and an index list was specified, this will be non-null.String
getRSName()
boolean
hasRSIndexList()
boolean
isGivenID()
If the id was explicitly set on the command line as an argument.boolean
isLocalID()
If this was found to be set locally with thecall.
boolean
isNumericIndex()
If this was given as the numeric indexboolean
isRS()
boolean
isSingleton()
Is does this list have a single element?void
setGivenID(boolean givenID)
void
setLocalID(boolean localID)
void
setNumericIndex(boolean numericIndex)
void
setNumericIndex(int numericIndex)
void
setRS(boolean RS)
void
setRsIndexList(List rsIndexList)
void
setRSName(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()
IfisNumericIndex
is 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)
-
-