|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.sandev.basics.structs.TestScriptStruct
org.sandev.basics.sandmessages.TestScript
public class TestScript
AUTOGENERATED FILE, DO NOT EDIT DIRECTLY.
source: org.sandev.basics.structs.TestScriptStruct
generator: org.sandev.generator.MessageClassGenerator
time: Jul 31, 2008 4:34:15 PM
| Field Summary |
|---|
| Fields inherited from class org.sandev.basics.structs.TestScriptStruct |
|---|
comment, configFile, createdData, initialData, testSteps |
| Constructor Summary | |
|---|---|
TestScript()
Default constructor calls init. |
|
| Method Summary | |
|---|---|
void |
addCreatedData(SandPersistMessage element)
Appends a value to createdData |
void |
addCreatedData(SandPersistMessage[] elements)
Appends an array of values to createdData |
void |
addInitialData(SandPersistMessage element)
Appends a value to initialData |
void |
addInitialData(SandPersistMessage[] elements)
Appends an array of values to initialData |
void |
addTestSteps(TestStep element)
Appends a value to testSteps |
void |
addTestSteps(TestStep[] elements)
Appends an array of values to testSteps |
void |
clearCreatedData()
Clears all values from createdData |
void |
clearInitialData()
Clears all values from initialData |
void |
clearTestSteps()
Clears all values from testSteps |
SandInstanceMessage |
cloneMessage()
Calls cloneTestScript |
TestScript |
cloneTestScript()
Make a deep copy of this TestScript. |
SandInstanceMessage |
convertToSuperstructClass()
Return a new instance of the message associated with the superstruct of this instance. |
void |
copyDataFrom(TestScript other,
boolean deepcopy)
Copy all the data from the specified instance. |
void |
copyFieldValue(java.lang.String fieldName,
SandInstanceMessage other)
Copy the specified field from the given instance. |
boolean |
createdDataContains(SandPersistMessage val)
Returns true if createdData contains the specified value. |
int |
createdDataIndexOf(SandPersistMessage val)
Return the index of the specified value in createdData, or -1 if not found. |
java.lang.String |
debugDump(java.lang.String prefix)
Dump this instance into a debug printable string. |
void |
defaultField(java.lang.String fieldname)
Set the specified field to its default value. |
boolean |
fieldHasFlag(java.lang.String fieldname,
int fieldflag)
Return true if the named field declares the indicated flag, false otherwise. |
boolean |
fieldsValid()
Validate the fields as specified in the SandInstanceMessage interface |
SandAttrVal[] |
fieldValidate(SandAttrVal[] checkFields)
Validate the fields as specified in the SandInstanceMessage interface |
SandCollectionMessage |
find(SandQueryMessage sqm)
Return a matching collection of all directly contained instances matching the given query. |
java.lang.Object |
generalAccessor(java.lang.String fieldspec)
General field accessor method. |
SandAttrVal |
generalDereference(java.lang.String fieldspec)
General reference field accessor method. |
void |
generalModifier(int action,
java.lang.String field,
int index,
java.lang.Object val)
General mutator method. |
java.lang.String[] |
getAllFields()
Return an array of all fields for this class. |
int |
getBaseMemoryUse()
Return the base memory use for this object. |
SandCollectionMessage |
getCollectionMessage()
Returns null |
java.lang.String |
getComment()
Accessor for comment |
static java.lang.String |
getCommentDefaultValue()
Default value for comment. |
java.lang.String |
getCommentFieldPrintValue()
Return the print name of the comment field. |
static boolean |
getCommentFlag(int fieldflag)
Field flag accessor. |
static java.lang.String |
getCommentInvalidValue()
Invalid value for comment. |
static int |
getCommentLengthMax()
Maximum comment length is 4096 characters |
static int |
getCommentLengthNorm()
Normal comment length is 255 characters |
java.lang.String |
getCommentMetatype()
Return the metatype text for this field, or "" if no metatype was declared. |
java.lang.String |
getCommentPrintValue()
Retrieve the current value of this field as a print String. |
java.lang.String |
getCommentRange()
Return the range specification for this field |
java.lang.String |
getCommentValidityCheck()
Return the empty string if the value of this field is valid according to the base SAND declarations. |
java.lang.String |
getConfigFile()
Accessor for configFile |
static java.lang.String |
getConfigFileDefaultValue()
Default value for configFile. |
java.lang.String |
getConfigFileFieldPrintValue()
Return the print name of the configFile field. |
static boolean |
getConfigFileFlag(int fieldflag)
Field flag accessor. |
static java.lang.String |
getConfigFileInvalidValue()
Invalid value for configFile. |
static int |
getConfigFileLengthMax()
Maximum configFile length is 128 characters |
static int |
getConfigFileLengthNorm()
Normal configFile length is 40 characters |
java.lang.String |
getConfigFileMetatype()
Return the metatype text for this field, or "" if no metatype was declared. |
java.lang.String |
getConfigFilePrintValue()
Retrieve the current value of this field as a print String. |
java.lang.String |
getConfigFileRange()
Return the range specification for this field |
java.lang.String |
getConfigFileValidityCheck()
Return the empty string if the value of this field is valid according to the base SAND declarations. |
java.lang.String[] |
getContainedMessageFields()
Return an array of all contained message fields. |
SandPersistMessage[] |
getCreatedData()
Accessor for createdData. |
SandPersistMessage |
getCreatedData(int index)
Returns the element at the specified index. |
static SandPersistMessage[] |
getCreatedDataDefaultValue()
Default value for createdData. |
static SandPersistMessage |
getCreatedDataElementInvalidValue()
Invalid value for createdDataelement. |
java.lang.String |
getCreatedDataFieldPrintValue()
Return the print name of the createdData field. |
static boolean |
getCreatedDataFlag(int fieldflag)
Field flag accessor. |
static SandPersistMessage[] |
getCreatedDataInvalidValue()
Invalid value for createdData. |
java.lang.String |
getCreatedDataMetatype()
Return the metatype text for this field, or "" if no metatype was declared. |
java.lang.String |
getCreatedDataPrintValue()
Retrieve the current value of this field as a print String. |
java.lang.String |
getCreatedDataRange()
Return the range specification for this field |
java.lang.String |
getCreatedDataValidityCheck()
Return the empty string if the value of this field is valid according to the base SAND declarations. |
java.lang.String[] |
getDisplayFields()
Return an array of the summary field names for this class. |
java.lang.String[] |
getDisplayFieldsPrint()
Return an array of the summary field print names for this class. |
java.lang.String |
getDisplayID()
Return the displayID for this message instance |
java.lang.String[] |
getDisplayValues()
Return the values for the summary fields. |
java.lang.String[] |
getDisplayValues(IDLookup lookup,
AuthUser user,
java.lang.String defaultVal)
Return the values for the summary fields, including dereference expressions. |
SandPersistMessage[] |
getInitialData()
Accessor for initialData. |
SandPersistMessage |
getInitialData(int index)
Returns the element at the specified index. |
static SandPersistMessage[] |
getInitialDataDefaultValue()
Default value for initialData. |
static SandPersistMessage |
getInitialDataElementInvalidValue()
Invalid value for initialDataelement. |
java.lang.String |
getInitialDataFieldPrintValue()
Return the print name of the initialData field. |
static boolean |
getInitialDataFlag(int fieldflag)
Field flag accessor. |
static SandPersistMessage[] |
getInitialDataInvalidValue()
Invalid value for initialData. |
java.lang.String |
getInitialDataMetatype()
Return the metatype text for this field, or "" if no metatype was declared. |
java.lang.String |
getInitialDataPrintValue()
Retrieve the current value of this field as a print String. |
java.lang.String |
getInitialDataRange()
Return the range specification for this field |
java.lang.String |
getInitialDataValidityCheck()
Return the empty string if the value of this field is valid according to the base SAND declarations. |
SandPersistMessage |
getInstance(java.lang.String classname,
long id)
If this instance directly contains the specified instance, then find it and return it. |
SandInstanceMessage |
getInstance(java.lang.String classname,
java.lang.String fieldname,
java.lang.String value)
If this instance directly contains the specified instance, then find it and return it. |
java.lang.String |
getLayoutXML()
Return the fieldlayout XML or null if not defined. |
java.lang.String |
getPrintname()
Return the printname of the class |
java.lang.String |
getPrintnameForField(java.lang.String fieldname)
Given a fieldname, return its declared printname if declared. |
SandQueryMessage |
getQueryMessage()
Returns null |
java.lang.String |
getShortName()
Returns the unqualified name of this message. |
SandStructMessage |
getStructMessage()
Returns a new TestScript instance |
TestStep[] |
getTestSteps()
Accessor for testSteps. |
TestStep |
getTestSteps(int index)
Returns the element at the specified index. |
static TestStep[] |
getTestStepsDefaultValue()
Default value for testSteps. |
static TestStep |
getTestStepsElementInvalidValue()
Invalid value for testStepselement. |
java.lang.String |
getTestStepsFieldPrintValue()
Return the print name of the testSteps field. |
static boolean |
getTestStepsFlag(int fieldflag)
Field flag accessor. |
static TestStep[] |
getTestStepsInvalidValue()
Invalid value for testSteps. |
java.lang.String |
getTestStepsMetatype()
Return the metatype text for this field, or "" if no metatype was declared. |
java.lang.String |
getTestStepsPrintValue()
Retrieve the current value of this field as a print String. |
java.lang.String |
getTestStepsRange()
Return the range specification for this field |
java.lang.String |
getTestStepsValidityCheck()
Return the empty string if the value of this field is valid according to the base SAND declarations. |
SandUpdateMessage |
getUpdateMessage()
Returns a new TestScriptUpdate instance |
java.lang.String |
getValueForFieldName(java.lang.String fieldname,
IDLookup lookup,
AuthUser user,
java.lang.String defaultVal)
Returns the print representation of the value of the specified field, or the given default value if innaccessible. |
void |
init()
Initialize all fields to their default values |
boolean |
initialDataContains(SandPersistMessage val)
Returns true if initialData contains the specified value. |
int |
initialDataIndexOf(SandPersistMessage val)
Return the index of the specified value in initialData, or -1 if not found. |
void |
insertCreatedData(int index,
SandPersistMessage value)
Insert the specified element at the specified index. |
void |
insertInitialData(int index,
SandPersistMessage value)
Insert the specified element at the specified index. |
void |
insertTestSteps(int index,
TestStep value)
Insert the specified element at the specified index. |
boolean |
isEquivalent(SandMessage sm)
Declared field equivalence check as specified by the SandMessage interface. |
java.lang.String[] |
referenceValidate(java.lang.String[] locations,
java.lang.String prefix,
IDLookup idlookup,
NameLookup namelookup,
AuthUser au)
Validate the references as specified in the Resolvable interface. |
SandPersistMessage |
removeCreatedData(int index)
Remove the element at the specified index and return it. |
boolean |
removeCreatedDataValue(SandPersistMessage value)
Removes the given element from createdData. |
SandPersistMessage |
removeInitialData(int index)
Remove the element at the specified index and return it. |
boolean |
removeInitialDataValue(SandPersistMessage value)
Removes the given element from initialData. |
TestStep |
removeTestSteps(int index)
Remove the element at the specified index and return it. |
boolean |
removeTestStepsValue(TestStep value)
Removes the given element from testSteps. |
void |
setComment(java.lang.Object comment)
Generic mutator for comment |
void |
setComment(java.lang.String comment)
Mutator for comment |
void |
setConfigFile(java.lang.Object configFile)
Generic mutator for configFile |
void |
setConfigFile(java.lang.String configFile)
Mutator for configFile |
void |
setCreatedData(int index,
SandPersistMessage value)
Set the value at the index specified. |
void |
setCreatedData(java.lang.Object[] createdData)
Generic mutator for createdData |
void |
setCreatedData(SandPersistMessage[] createdData)
Mutator for createdData |
void |
setInitialData(int index,
SandPersistMessage value)
Set the value at the index specified. |
void |
setInitialData(java.lang.Object[] initialData)
Generic mutator for initialData |
void |
setInitialData(SandPersistMessage[] initialData)
Mutator for initialData |
void |
setTestSteps(int index,
TestStep value)
Set the value at the index specified. |
void |
setTestSteps(java.lang.Object[] testSteps)
Generic mutator for testSteps |
void |
setTestSteps(TestStep[] testSteps)
Mutator for testSteps |
TestScript |
shallowCopy()
Make a shallow copy of this TestScript. |
int |
sizeofCreatedData()
Returns the size of createdData. |
int |
sizeofInitialData()
Returns the size of initialData. |
int |
sizeofTestSteps()
Returns the size of testSteps. |
boolean |
testStepsContains(TestStep val)
Returns true if testSteps contains the specified value. |
int |
testStepsIndexOf(TestStep val)
Return the index of the specified value in testSteps, or -1 if not found. |
java.lang.String |
toString()
Return a string representation of this object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TestScript()
| Method Detail |
|---|
public java.lang.String getPrintname()
getPrintname in interface SandStructMessage
public boolean fieldHasFlag(java.lang.String fieldname,
int fieldflag)
fieldHasFlag in interface SandInstanceMessagepublic java.lang.String getComment()
public void setComment(java.lang.String comment)
public void setComment(java.lang.Object comment)
public static boolean getCommentFlag(int fieldflag)
public static int getCommentLengthNorm()
public static int getCommentLengthMax()
public static java.lang.String getCommentDefaultValue()
public static java.lang.String getCommentInvalidValue()
public java.lang.String getCommentPrintValue()
Used for debug output, and as an initial value for transformation and formatting.
public java.lang.String getCommentFieldPrintValue()
public java.lang.String getCommentRange()
public java.lang.String getCommentValidityCheck()
public java.lang.String getCommentMetatype()
public java.lang.String getConfigFile()
public void setConfigFile(java.lang.String configFile)
public void setConfigFile(java.lang.Object configFile)
public static boolean getConfigFileFlag(int fieldflag)
public static int getConfigFileLengthNorm()
public static int getConfigFileLengthMax()
public static java.lang.String getConfigFileDefaultValue()
public static java.lang.String getConfigFileInvalidValue()
public java.lang.String getConfigFilePrintValue()
Used for debug output, and as an initial value for transformation and formatting.
public java.lang.String getConfigFileFieldPrintValue()
public java.lang.String getConfigFileRange()
public java.lang.String getConfigFileValidityCheck()
public java.lang.String getConfigFileMetatype()
public SandPersistMessage[] getInitialData()
setInitialData.
public void setInitialData(SandPersistMessage[] initialData)
public void setInitialData(java.lang.Object[] initialData)
public void addInitialData(SandPersistMessage element)
public void addInitialData(SandPersistMessage[] elements)
public SandPersistMessage getInitialData(int index)
public void setInitialData(int index,
SandPersistMessage value)
public void insertInitialData(int index,
SandPersistMessage value)
public SandPersistMessage removeInitialData(int index)
public boolean removeInitialDataValue(SandPersistMessage value)
public void clearInitialData()
public boolean initialDataContains(SandPersistMessage val)
public int initialDataIndexOf(SandPersistMessage val)
public int sizeofInitialData()
public static boolean getInitialDataFlag(int fieldflag)
public static SandPersistMessage[] getInitialDataDefaultValue()
public static SandPersistMessage getInitialDataElementInvalidValue()
public static SandPersistMessage[] getInitialDataInvalidValue()
public java.lang.String getInitialDataPrintValue()
Used for debug output, and as an initial value for transformation and formatting.
public java.lang.String getInitialDataFieldPrintValue()
public java.lang.String getInitialDataRange()
public java.lang.String getInitialDataValidityCheck()
public java.lang.String getInitialDataMetatype()
public TestStep[] getTestSteps()
setTestSteps.
public void setTestSteps(TestStep[] testSteps)
public void setTestSteps(java.lang.Object[] testSteps)
public void addTestSteps(TestStep element)
public void addTestSteps(TestStep[] elements)
public TestStep getTestSteps(int index)
public void setTestSteps(int index,
TestStep value)
public void insertTestSteps(int index,
TestStep value)
public TestStep removeTestSteps(int index)
public boolean removeTestStepsValue(TestStep value)
public void clearTestSteps()
public boolean testStepsContains(TestStep val)
public int testStepsIndexOf(TestStep val)
public int sizeofTestSteps()
public static boolean getTestStepsFlag(int fieldflag)
public static TestStep[] getTestStepsDefaultValue()
public static TestStep getTestStepsElementInvalidValue()
public static TestStep[] getTestStepsInvalidValue()
public java.lang.String getTestStepsPrintValue()
Used for debug output, and as an initial value for transformation and formatting.
public java.lang.String getTestStepsFieldPrintValue()
public java.lang.String getTestStepsRange()
public java.lang.String getTestStepsValidityCheck()
public java.lang.String getTestStepsMetatype()
public SandPersistMessage[] getCreatedData()
setCreatedData.
public void setCreatedData(SandPersistMessage[] createdData)
public void setCreatedData(java.lang.Object[] createdData)
public void addCreatedData(SandPersistMessage element)
public void addCreatedData(SandPersistMessage[] elements)
public SandPersistMessage getCreatedData(int index)
public void setCreatedData(int index,
SandPersistMessage value)
public void insertCreatedData(int index,
SandPersistMessage value)
public SandPersistMessage removeCreatedData(int index)
public boolean removeCreatedDataValue(SandPersistMessage value)
public void clearCreatedData()
public boolean createdDataContains(SandPersistMessage val)
public int createdDataIndexOf(SandPersistMessage val)
public int sizeofCreatedData()
public static boolean getCreatedDataFlag(int fieldflag)
public static SandPersistMessage[] getCreatedDataDefaultValue()
public static SandPersistMessage getCreatedDataElementInvalidValue()
public static SandPersistMessage[] getCreatedDataInvalidValue()
public java.lang.String getCreatedDataPrintValue()
Used for debug output, and as an initial value for transformation and formatting.
public java.lang.String getCreatedDataFieldPrintValue()
public java.lang.String getCreatedDataRange()
public java.lang.String getCreatedDataValidityCheck()
public java.lang.String getCreatedDataMetatype()
public void init()
public java.lang.String getShortName()
getShortName in interface SandMessagepublic SandQueryMessage getQueryMessage()
getQueryMessage in interface SandMessagepublic SandCollectionMessage getCollectionMessage()
getCollectionMessage in interface SandMessagepublic SandUpdateMessage getUpdateMessage()
getUpdateMessage in interface SandMessagepublic SandStructMessage getStructMessage()
getStructMessage in interface SandMessagepublic boolean isEquivalent(SandMessage sm)
When comparing arrays, it is possible that the array elements may have been set to null as part of authorization filtering or similar unusual circumstances. A null array element is only equivalent to another null array element.
isEquivalent in interface SandMessagepublic int getBaseMemoryUse()
getBaseMemoryUse in interface SandMessage
public void generalModifier(int action,
java.lang.String field,
int index,
java.lang.Object val)
throws SandException
generalModifier in interface SandInstanceMessageSandExceptionpublic SandAttrVal generalDereference(java.lang.String fieldspec)
generalDereference in interface SandInstanceMessagepublic java.lang.Object generalAccessor(java.lang.String fieldspec)
generalAccessor in interface SandInstanceMessagepublic java.lang.String[] getDisplayFields()
getDisplayFields in interface SandInstanceMessagepublic java.lang.String[] getDisplayFieldsPrint()
getDisplayFieldsPrint in interface SandInstanceMessagepublic java.lang.String getLayoutXML()
getLayoutXML in interface SandInstanceMessagepublic java.lang.String[] getDisplayValues()
getDisplayValues in interface SandInstanceMessage
public java.lang.String[] getDisplayValues(IDLookup lookup,
AuthUser user,
java.lang.String defaultVal)
getDisplayValues in interface Resolvable
public java.lang.String getValueForFieldName(java.lang.String fieldname,
IDLookup lookup,
AuthUser user,
java.lang.String defaultVal)
public java.lang.String[] getAllFields()
getAllFields in interface SandInstanceMessagepublic java.lang.String[] getContainedMessageFields()
getContainedMessageFields in interface SandInstanceMessagepublic void defaultField(java.lang.String fieldname)
defaultField in interface SandInstanceMessagepublic java.lang.String getPrintnameForField(java.lang.String fieldname