public class SequenceList extends ArrayList<SequenceStep> implements DTDConstants
DOMSequence.TaskElements at
calls to its next method. The Step as the top-level element
of the sequence is only used to construct the list in the correct sequence. A
dom sequence is a specialized list in the way that it only allows special
elements. Concrete, if you add a sequencer step with one of the list's
add method, the object added must be a collection of
DOMSequence.TaskElements. The list's addAll method work only if the
collection added is a dom sequence. In this case, the awkward checking of the
individual elements, as done with the add methods, is not necessarry as a
domsequence is believed to be constructed of the correct types.
Although removal and addition of sequencing steps is also possible after the list has been constructed and although this may happen in different threads it is impossible that addition and removal of elements happen at the same time, therfore no synchronization is necessary.
Grammer of the xml-file:
At the time of this writing, the DTD can be found at XMLSequencer.
Triggers that should be set to
the appropriate value as this task is ready to execute.DOMTarget.XMLSequencer,
Serialized Form| Modifier and Type | Class and Description |
|---|---|
static class |
SequenceList.Read
We try to read in the sequence file given on the command line and
construct a sequence list out of it.
|
| Modifier and Type | Field and Description |
|---|---|
private String |
id
Used to identify the type of this sequence.
|
modCountABORT, ABOVE, ABSTRACT, ABSTRACTPROPOSAL, ADDRESS, BELOW, BLOCK, BROADCAST, BROADCASTWITH, BV, CHAINING, CHANGE, CLASS, COMMAND, COMMANDID, COMMANDINIT, COMMANDLAST, COMMANDPARAMETER, COMMANDREF, COMMENT, COMPLETE, CONDITION, CONSTANT, CONSTANTNAME, CONSTANTVALUE, CONSTRAINT, CONSTRAINTOVERDUE, CONSTRAINTRELAX, DATA, DAUGHTER, DEC, DELAY, DELAYMAX, DELAYTIME, DISABLED, DOCPATH, DURATION, ELAPSED, EMAIL, ENABLED, EPOCH, EQUINOX, EXCEPTION, EXCEPTIONDAUGHTER, EXCEPTIONFOR, EXCEPTIONSUCCESSOR, EXCEPTIONTHIS, FALSE, FIELDOFVIEW, FILE, FITSHEADER, FITSHEADERID, FORMATCLASS, FORMATPATTERN, FROM, GAIN, HISTORY, HISTORYCOMPLETE, HISTORYDB, HISTORYMAX, HISTORYREAD, IGNORE, IMAGETYPE, INIT, INSTITUTION, INSTRUMENT, INTERN, KEY, MAX, MERIT, MIN, NOTIFY, OBJECT, OBJECTID, OBJECTNAME, OBSERVSTART, PICK, PICKMERIT, PICKSUCCESS, PMDEC, PMRA, POSITION, RA, RATE, REC, REQUIRES, RETRY, RETRYMAX, SELECT, SENDING, SEQUENCE, SEQUENCETYPE, SET, SETNAME, SETUP, SETUPID, STEP, STEPCOUNTER, STEPWHILE, SUCCESSOR, TARGET, TARGETACCESS, TARGETDB, TARGETNAME, TARGETNAMEPROPOSAL, TARGETREAD, TARGETSUBMITTED, TARGETTYPE, TASK, TASKDONE, TASKID, TEAM, TIMESLOT, TITLE, TO, TRUE, USER, V, VARIABLE| Modifier | Constructor and Description |
|---|---|
private |
SequenceList()
Hidden constructor.
|
protected |
SequenceList(Document doc)
Constructs a new dom sequence with the specified target dom.
|
|
SequenceList(File doc)
Constructs a new dom sequence with the specified xml-file.
|
|
SequenceList(URL doc)
Constructs a new dom sequence with the specified xml-file.
|
| Modifier and Type | Method and Description |
|---|---|
static SequenceList |
emptyList()
Returns an empty list.
|
String |
getSequenceID()
Returns the sequence id of this sequence dom.
|
private void |
parseDom(Document xml)
Parses the document.
|
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, forEach, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSizeequals, hashCodecontainsAll, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitcontainsAll, equals, hashCodeparallelStream, streamprivate String id
public SequenceList(File doc) throws ParseException
#parse.ParseExceptionpublic SequenceList(URL doc) throws ParseException
#parse.ParseExceptionprotected SequenceList(Document doc) throws ParseException
#parse.ParseExceptionprivate SequenceList()
public static SequenceList emptyList()
public String getSequenceID()
private void parseDom(Document xml) throws ParseException
DTDConstants.STEP Element is considered an entry in
the list. The sequence given in the xml-file is retained. All the
DTDConstants.TASKs comprising one step are stored as a SequenceTask
collection as one entry in the list.
Note that this parse is independent of the DocumentBuilder.parse(File) method that parses an xml-file int a dom-document.
ParseException