Modifier and Type | Class and Description |
---|---|
static class |
ModelScriptHistory.ModelScriptHistoryInfo |
Constructor and Description |
---|
ModelScriptHistory(java.io.File file) |
Modifier and Type | Method and Description |
---|---|
ModelScriptInfo |
getMostRecent(ModelScriptInfo.InfoType... types)
Returns information for the most recently loaded model or script matching
the specified types, or
null if there is none |
java.util.ArrayList<ModelScriptInfo> |
getRecent(int max,
ModelScriptInfo.InfoType... types)
Returns information for the
max most recently loaded
models or scripts matching the specified types. |
boolean |
isWritable()
Returns
true if this component should in fact be written to
secondary storage. |
boolean |
load() |
boolean |
loadOrCreate() |
boolean |
save() |
void |
scan(ReaderTokenizer rtok,
java.lang.Object ref)
Scans this element from a ReaderTokenizer.
|
ModelScriptHistory.ModelScriptHistoryInfo |
update(ModelScriptInfo mi,
java.util.Date dateTime) |
void |
write(java.io.PrintWriter pw,
NumberFormat fmt,
java.lang.Object ref)
Writes a text description of this element to a PrintWriter.
|
public ModelScriptHistory.ModelScriptHistoryInfo update(ModelScriptInfo mi, java.util.Date dateTime)
public java.util.ArrayList<ModelScriptInfo> getRecent(int max, ModelScriptInfo.InfoType... types)
max
most recently loaded
models or scripts matching the specified types.public ModelScriptInfo getMostRecent(ModelScriptInfo.InfoType... types)
null
if there is nonepublic void scan(ReaderTokenizer rtok, java.lang.Object ref) throws java.io.IOException
Scannable
write
.public boolean load()
public boolean loadOrCreate()
public boolean save()
public void write(java.io.PrintWriter pw, NumberFormat fmt, java.lang.Object ref)
Scannable
scan
and complete
enough to allow full reconstruction of the element.public boolean isWritable()
Scannable
true
if this component should in fact be written to
secondary storage. This gives subclasses control over whether or
not they are actually written out.isWritable
in interface Scannable
true
if this component should be written to
secondary storage.