|
IBM WebSphere Application ServerTM Release 8 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface OperationSelectionRecordList
This interface represents a list of operation selection records. Specific methods are provided for
getting an iterator to iterate through the list and to add and remove elements from the list.
In order to change an existing OperationSelectionRecord
in the list, use
an iterator obtained using the iterator
method to get the object to be changed
and then simply use set methods to change the object.
Field Summary | |
---|---|
static java.lang.String |
COPYRIGHT
|
Method Summary | |
---|---|
void |
addOperationSelectionRecord(OperationSelectionRecord newSelectionRecord)
Add the specified operation selection record to the list. |
OperationSelectionRecord |
get(int index)
Get the OperationSelectionRecord at the specified index in the list. |
boolean |
isEmpty()
Determine whether or not this list is empty. |
java.util.Iterator<OperationSelectionRecord> |
iterator()
Get an iterator over this list. |
OperationSelectionRecord |
newOperationSelectionRecord()
Create a new OperationSelectionRecord object that is associated with the
operation containing this operation selection record list. |
OperationSelectionRecord |
newOperationSelectionRecord(java.util.Date startDate,
java.util.Date endDate,
BusinessRule businessRuleTarget)
Create a new OperationSelectionRecord object that is associated with the
operation containing this operation selection record list. |
boolean |
removeOperationSelectionRecord(OperationSelectionRecord selectionRecord)
Remove the specified operation selection record from the list. |
int |
size()
Get the number of operation selection records in this list. |
Methods inherited from interface com.ibm.wbiserver.brules.mgmt.BusinessRuleValidateable |
---|
validate |
Methods inherited from interface com.ibm.wbiserver.brules.mgmt.BusinessRuleChangeDetector |
---|
hasChanges |
Field Detail |
---|
static final java.lang.String COPYRIGHT
Method Detail |
---|
java.util.Iterator<OperationSelectionRecord> iterator()
remove
method of the
Iterator
interface. If that method is called, an
UnsupportedOperationException
is thrown.
In order to add or remove elements from the list, the addOperationSelectionRecord
or removeOperationSelectionRecord
methods should be used. These two methods
synchronize on this OperationSelectionRecordList
object. If the client code
is multi-threaded, then the client should synchronize on the
OperationSelectionRecordList
object while using the iterator.
iterator
in interface java.lang.Iterable<OperationSelectionRecord>
OperationSelectionRecord get(int index)
OperationSelectionRecord
at the specified index in the list. The
index is 0-based so the first element in the list has index 0.
index
- The index of the OperationSelectionRecord
to return.
OperationSelectionRecord
at the specified index.
java.lang.IndexOutOfBoundsException
- if the index is out of range (index < 0 ||
index >= size()).void addOperationSelectionRecord(OperationSelectionRecord newSelectionRecord) throws ValidationException
Note that this method does not check to see if the date range in the new selection
record overlaps with any date ranges in the existing selection records. This is because
it is assumed that, in general, many changes are being made to the list of selection
records and any overlapping ranges could just be temporary and will go away as other
changes are made. Overlapping ranges are detected when the validate
method is called on the OperationSelectionRecordList
or when the changes
are finally published.
This method synchronizes on the object on which it is called. Clients using an iterator to iterate over the list should also synchronize on this object to ensure thread safety.
newSelectionRecord
- The OperationSelectionRecord
object to be added to
the list. Must not be null.
java.lang.IllegalArgumentException
- if the specified parameter is null.
ValidationException
- if one of the following validation errors is detected:
ChangesNotAllowedException
- if changes to this object are temporarily
disallowed while other changes are being published.boolean removeOperationSelectionRecord(OperationSelectionRecord selectionRecord)
This method synchronizes on the object on which it is called. Clients using an iterator to iterate over the list should also synchronize on this object to ensure thread-safety.
selectionRecord
- The OperationSelectionRecord
to be removed. Must not
be null.
OperationSelectionRecordList
contained the specified
OperationSelectionRecord
. Otherwise false.
java.lang.IllegalArgumentException
- if the passed in parameter is null.
ChangesNotAllowedException
- if changes to this object are temporarily
disallowed while other changes are being published.OperationSelectionRecord newOperationSelectionRecord()
OperationSelectionRecord
object that is associated with the
operation containing this operation selection record list. This method can be used
when you want to add a new date/time range to an existing operation. This method creates
an empty operation selection record. The set methods should then be used to set the
start date, end date, and business rule target. Alternatively, you can use the
newOperationSelectionRecord(Date,Date,BusinessRule)
method to pass all the required data on one method call.
ChangesNotAllowedException
- if changes to this object are temporarily
disallowed while other changes are being published.OperationSelectionRecord newOperationSelectionRecord(java.util.Date startDate, java.util.Date endDate, BusinessRule businessRuleTarget) throws ValidationException
OperationSelectionRecord
object that is associated with the
operation containing this operation selection record list. This method can be used
when you want to add a new date/time range to an existing operation.
startDate
- The start date for the operation selection record.endDate
- The end date for the operation selection record.businessRuleTarget
- The business rule target for the operation selection record.
java.lang.IllegalArgumentException
- if the businessRuleTarget
parameter is null.
ValidationException
- if any of the following is true:
ChangesNotAllowedException
- if changes to this object are temporarily
disallowed while other changes are being published.int size()
boolean isEmpty()
|
IBM WebSphere Application ServerTM Release 8 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |