T
- concrete entity typepublic abstract class ProjectEntityContainer<T extends ProjectEntityWithUniqueID> extends ListWithCallbacks<T>
Modifier and Type | Field and Description |
---|---|
protected ProjectFile |
m_projectFile |
modCount
Constructor and Description |
---|
ProjectEntityContainer(ProjectFile projectFile)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
added(T element)
Called to notify subclasses of item addition.
|
protected int |
firstUniqueID()
Returns the value of the first Unique ID to use when renumbering Unique IDs.
|
void |
fixUniqueIdClashes()
Provide new Unique ID values for entity instances
which were found to be duplicated.
|
T |
getByUniqueID(Integer id)
Retrieve an entity by its Unique ID.
|
Integer |
getNextUniqueID()
Deprecated.
use ProjectFile.getUniqueIdObjectSequence(T.class).getNext()
|
protected void |
removed(T element)
Called to notify subclasses of item removal.
|
void |
renumberUniqueIDs()
Deprecated.
no longer required as the MSPDI and MPX writers handle this dynamically without changing the original schedule
|
void |
updateUniqueID(T element,
Integer oldUniqueID,
Integer newUniqueID)
Updates an entry in the unique ID map when a unique ID is changed.
|
void |
updateUniqueIdCounter()
Deprecated.
no longer required
|
void |
validateUniqueIDsForMicrosoftProject()
Deprecated.
no longer required as the MSPDI and MPX writers handle this dynamically without changing the original schedule
|
add, add, clear, get, remove, replaced, set, size
addAll, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, removeRange, subList
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
addAll, contains, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArray
parallelStream, removeIf, stream
protected final ProjectFile m_projectFile
public ProjectEntityContainer(ProjectFile projectFile)
projectFile
- parent projectprotected int firstUniqueID()
@Deprecated public void renumberUniqueIDs()
@Deprecated public void validateUniqueIDsForMicrosoftProject()
public T getByUniqueID(Integer id)
id
- entity Unique IDprotected void added(T element)
ListWithCallbacks
added
in class ListWithCallbacks<T extends ProjectEntityWithUniqueID>
element
- added itemprotected void removed(T element)
removed
in class ListWithCallbacks<T extends ProjectEntityWithUniqueID>
element
- removed itempublic void updateUniqueID(T element, Integer oldUniqueID, Integer newUniqueID)
element
- entity whose unique ID is changingoldUniqueID
- old unique ID valuenewUniqueID
- new unique ID value@Deprecated public Integer getNextUniqueID()
@Deprecated public void updateUniqueIdCounter()
public void fixUniqueIdClashes()
Copyright © 2000–2024 Packwood Software. All rights reserved.