public class ScriptPackage extends Record implements java.io.Serializable
Modifier and Type | Method and Description |
---|---|
void |
addScript(ScriptRef script)
Adds the script reference to the package.
|
void |
addScript(java.lang.String scriptName) |
boolean |
equals(java.lang.Object obj) |
ScriptRef |
getScript(ScriptRef script)
Returns the ScriptRef object from the ScriptPackage that matches the
input's name.
|
ScriptRef |
getScript(java.lang.String scriptName)
Returns a ScriptRef object matching the name, if one exists, or null if
one does not.
|
java.util.ArrayList<ScriptRef> |
getScripts() |
boolean |
hasScript(ScriptRef script)
Returns true if package has a script matching the input's name
|
boolean |
hasScript(java.lang.String scriptName) |
java.lang.String |
print()
Returns the contents of the record, or exports them to a log, depending
on the record type.
|
void |
removeScript(ScriptRef script)
Removes a ScriptRef matching the input's name, if one exists.
|
void |
removeScript(java.lang.String scriptName) |
java.lang.String |
toString()
Returns a short summary/title of the record.
|
getRecordLength, getType
public java.util.ArrayList<ScriptRef> getScripts()
public void addScript(java.lang.String scriptName)
scriptName
- Adds an empty script with the given name.public void addScript(ScriptRef script)
script
- public ScriptRef getScript(java.lang.String scriptName)
scriptName
- public ScriptRef getScript(ScriptRef script)
script
- public boolean hasScript(java.lang.String scriptName)
scriptName
- Script name to querypublic boolean hasScript(ScriptRef script)
script
- public void removeScript(java.lang.String scriptName)
scriptName
- Script name to remove, if present.public void removeScript(ScriptRef script)
script
- public java.lang.String print()
Record
public java.lang.String toString()
Record
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object