public class IDTable<T extends DictionaryComponent> extends DictionaryObject implements java.util.List<T>
| Constructor and Description |
|---|
IDTable(DictionaryObject parent) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(int index,
T element)
Inserts the specified element at the specified position in this list
(optional operation).
|
boolean |
add(T o)
Appends the specified element to the end of this list (optional
operation).
|
boolean |
addAll(java.util.Collection<? extends T> c)
Appends all of the elements in the specified collection to the end of
this list, in the order that they are returned by the specified
collection's iterator (optional operation).
|
boolean |
addAll(int index,
java.util.Collection<? extends T> c)
Inserts all of the elements in the specified collection into this
list at the specified position (optional operation).
|
void |
clear()
Removes all of the elements from this list (optional operation).
|
boolean |
contains(java.lang.Object o)
Returns true if this list contains the specified element.
|
boolean |
containsAll(java.util.Collection<?> c)
Returns true if this list contains all of the elements of the
specified collection.
|
T |
get(int index)
Returns the element at the specified position in this list.
|
java.util.List<DOID> |
getAEReferences()
Get DOIDs referenced by this Object and descendants.
|
java.util.List<DOID> |
getAllReferences()
Get all DOIDs referenced by this Object and descendants.
|
T |
getByAlias(java.lang.String alias)
Get a DictionaryComponent from this table by its alias.
|
T |
getByID(DOID id)
Get a DictionaryComponent from this table by its ID.
|
T |
getByName(java.lang.String name)
Get a DictionaryComponent from this table by its name.
|
java.util.List<DOID> |
getReferences()
Get all DOIDs referenced by this Component and IDTable properties, but does not
include contained dictionary components.
|
int |
indexOf(java.lang.Object o)
Returns the index of the first occurrence of the specified element
in this list, or -1 if this list does not contain the element.
|
boolean |
isEmpty()
Returns true if this list contains no elements.
|
java.util.Iterator<T> |
iterator()
Returns an iterator over the elements in this list in proper sequence.
|
int |
lastIndexOf(java.lang.Object o)
Returns the index of the last occurrence of the specified element
in this list, or -1 if this list does not contain the element.
|
java.util.ListIterator<T> |
listIterator()
Not Supported
|
java.util.ListIterator<T> |
listIterator(int index)
Not Supported
|
T |
remove(int index)
Removes the element at the specified position in this list (optional
operation).
|
boolean |
remove(java.lang.Object o)
Removes the first occurrence of the specified element from this list,
if it is present (optional operation).
|
boolean |
removeAll(java.util.Collection<?> c)
Removes from this list all of its elements that are contained in the
specified collection (optional operation).
|
T |
removeByAlias(java.lang.String alias)
Remove the DictionaryComponent with the given alias from the table
|
T |
removeByID(DOID id)
Remove the DictionaryComponent with the given id from the table
|
T |
removeByName(java.lang.String name)
Remove the DictionaryComponent with the given name from the table
|
int |
removeNulls()
TODO - Ganesh
Commented out as this requires further changes in DimensionNode
Bump change count when the ID Table is modified to invalidate caches
|
boolean |
retainAll(java.util.Collection<?> c)
Retains only the elements in this list that are contained in the
specified collection (optional operation).
|
T |
set(int index,
T element)
Replaces the element at the specified position in this list with the
specified element (optional operation).
|
int |
size()
Returns the number of elements in this list.
|
java.util.List<T> |
subList(int fromIndex,
int toIndex)
Not Supported
|
java.lang.Object[] |
toArray()
Returns an array containing all of the elements in this list in proper
sequence (from first to last element).
|
<U> U[] |
toArray(U[] a)
Returns an array containing all of the elements in this list in
proper sequence (from first to last element); the runtime type of
the returned array is that of the specified array.
|
void |
validate(java.util.List<SDKException> errors,
java.util.List<SDKWarning> warnings)
Validate the entire dictionary object and its decendants.
|
void |
validate(java.util.List<SDKException> errors,
java.util.List<SDKWarning> warnings,
int modelChangeLowerBound,
int ruleChangeLowerBound)
Validate does nothing
|
equals, exists, getCombinedDataModel, getContainedIDs, getContainedIDs, getDataModel, getDictionary, getID, getObjectPath, getObjectType, getParentByClass, getParentComponent, getParentComponentTable, getParentObject, getRuleSet, getState, getWarnings, hashCode, isModified, validatepublic IDTable(DictionaryObject parent)
public T getByName(java.lang.String name)
name - name of componentpublic T getByID(DOID id)
id - ID of componentpublic T getByAlias(java.lang.String alias)
alias - alias of componentpublic T removeByID(DOID id) throws DeleteException
id - the id returned by DictionaryComponent.getId()DeleteExceptionpublic T removeByName(java.lang.String name) throws DeleteException
name - the name returned by DictionaryComponent.getName()DeleteExceptionpublic T removeByAlias(java.lang.String alias) throws DeleteException
alias - the alias returned by DictionaryComponent.getAlias()DeleteExceptionpublic void validate(java.util.List<SDKException> errors, java.util.List<SDKWarning> warnings, int modelChangeLowerBound, int ruleChangeLowerBound)
validate in class DictionaryObjecterrors - validation errorswarnings - validation warningsmodelChangeLowerBound - smallest ModelComponent.CreationUpdateNumber modified in thix tx.ruleChangeLowerBound - smallest RuleComponent.CreationUpdateNumber modified in thix tx.
Rulesets and rules with UpdateNumber >= modelChangeLowerBound will be revalidated.
a value of 0 will force revalidation of all rulesets. A value of Integer.MAX_VALUE
will skip validation of all rulesets.public void validate(java.util.List<SDKException> errors, java.util.List<SDKWarning> warnings)
DictionaryObjectvalidate in class DictionaryObjecterrors - a List of error exceptions to append to.warnings - a List of warning exceptions to append to.DictionaryObject.validate(List,List,int,int)public int size()
java.util.Listsize in interface java.util.Collection<T extends DictionaryComponent>size in interface java.util.List<T extends DictionaryComponent>public boolean isEmpty()
java.util.ListisEmpty in interface java.util.Collection<T extends DictionaryComponent>isEmpty in interface java.util.List<T extends DictionaryComponent>public boolean contains(java.lang.Object o)
java.util.Listcontains in interface java.util.Collection<T extends DictionaryComponent>contains in interface java.util.List<T extends DictionaryComponent>o - element whose presence in this list is to be testedpublic java.util.Iterator<T> iterator()
java.util.Listiterator in interface java.lang.Iterable<T extends DictionaryComponent>iterator in interface java.util.Collection<T extends DictionaryComponent>iterator in interface java.util.List<T extends DictionaryComponent>public java.lang.Object[] toArray()
java.util.ListThe returned array will be "safe" in that no references to it are maintained by this list. (In other words, this method must allocate a new array even if this list is backed by an array). The caller is thus free to modify the returned array.
This method acts as bridge between array-based and collection-based APIs.
toArray in interface java.util.Collection<T extends DictionaryComponent>toArray in interface java.util.List<T extends DictionaryComponent>Arrays.asList(Object[])public <U> U[] toArray(U[] a)
java.util.ListIf the list fits in the specified array with room to spare (i.e., the array has more elements than the list), the element in the array immediately following the end of the list is set to null. (This is useful in determining the length of the list only if the caller knows that the list does not contain any null elements.)
Like the List.toArray() method, this method acts as bridge between
array-based and collection-based APIs. Further, this method allows
precise control over the runtime type of the output array, and may,
under certain circumstances, be used to save allocation costs.
Suppose x is a list known to contain only strings. The following code can be used to dump the list into a newly allocated array of String:
String[] y = x.toArray(new String[0]);
Note that toArray(new Object[0]) is identical in function to
toArray().toArray in interface java.util.Collection<T extends DictionaryComponent>toArray in interface java.util.List<T extends DictionaryComponent>a - the array into which the elements of this list are to
be stored, if it is big enough; otherwise, a new array of the
same runtime type is allocated for this purpose.public boolean add(T o)
java.util.ListLists that support this operation may place limitations on what elements may be added to this list. In particular, some lists will refuse to add null elements, and others will impose restrictions on the type of elements that may be added. List classes should clearly specify in their documentation any restrictions on what elements may be added.
add in interface java.util.Collection<T extends DictionaryComponent>add in interface java.util.List<T extends DictionaryComponent>o - element to be appended to this listCollection.add(E))public boolean remove(java.lang.Object o)
java.util.Listremove in interface java.util.Collection<T extends DictionaryComponent>remove in interface java.util.List<T extends DictionaryComponent>o - element to be removed from this list, if presentpublic boolean containsAll(java.util.Collection<?> c)
java.util.ListcontainsAll in interface java.util.Collection<T extends DictionaryComponent>containsAll in interface java.util.List<T extends DictionaryComponent>c - collection to be checked for containment in this listList.contains(Object)public boolean addAll(java.util.Collection<? extends T> c)
java.util.ListaddAll in interface java.util.Collection<T extends DictionaryComponent>addAll in interface java.util.List<T extends DictionaryComponent>c - collection containing elements to be added to this listList.add(Object)public boolean addAll(int index,
java.util.Collection<? extends T> c)
java.util.ListaddAll in interface java.util.List<T extends DictionaryComponent>index - index at which to insert the first element from the
specified collectionc - collection containing elements to be added to this listpublic boolean removeAll(java.util.Collection<?> c)
java.util.ListremoveAll in interface java.util.Collection<T extends DictionaryComponent>removeAll in interface java.util.List<T extends DictionaryComponent>c - collection containing elements to be removed from this listList.remove(Object),
List.contains(Object)public boolean retainAll(java.util.Collection<?> c)
java.util.ListretainAll in interface java.util.Collection<T extends DictionaryComponent>retainAll in interface java.util.List<T extends DictionaryComponent>c - collection containing elements to be retained in this listList.remove(Object),
List.contains(Object)public void clear()
java.util.Listclear in interface java.util.Collection<T extends DictionaryComponent>clear in interface java.util.List<T extends DictionaryComponent>public T get(int index)
java.util.Listget in interface java.util.List<T extends DictionaryComponent>index - index of the element to returnpublic T set(int index, T element)
java.util.Listset in interface java.util.List<T extends DictionaryComponent>index - index of the element to replaceelement - element to be stored at the specified positionpublic void add(int index,
T element)
java.util.Listadd in interface java.util.List<T extends DictionaryComponent>index - index at which the specified element is to be insertedelement - element to be insertedpublic T remove(int index)
java.util.Listremove in interface java.util.List<T extends DictionaryComponent>index - the index of the element to be removedpublic int indexOf(java.lang.Object o)
java.util.ListindexOf in interface java.util.List<T extends DictionaryComponent>o - element to search forpublic int lastIndexOf(java.lang.Object o)
java.util.ListlastIndexOf in interface java.util.List<T extends DictionaryComponent>o - element to search forpublic java.util.ListIterator<T> listIterator()
listIterator in interface java.util.List<T extends DictionaryComponent>java.lang.UnsupportedOperationExceptionpublic java.util.ListIterator<T> listIterator(int index)
listIterator in interface java.util.List<T extends DictionaryComponent>index - index of the first element to be returned from the
list iterator (by a call to next)java.lang.UnsupportedOperationExceptionpublic java.util.List<T> subList(int fromIndex, int toIndex)
subList in interface java.util.List<T extends DictionaryComponent>fromIndex - low endpoint (inclusive) of the subListtoIndex - high endpoint (exclusive) of the subListjava.lang.UnsupportedOperationExceptionpublic java.util.List<DOID> getReferences()
DictionaryObjectgetReferences in class DictionaryObjectpublic java.util.List<DOID> getAEReferences()
DictionaryObjectgetAEReferences in class DictionaryObjectpublic java.util.List<DOID> getAllReferences()
DictionaryObjectgetAllReferences in class DictionaryObjectpublic int removeNulls()