|
IBM Rational Performance Tester SDK | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IDCStringLocator
Field Summary | |
---|---|
static CBActionElement |
action
the element currently being looked at. |
static int |
beginOffset
offset of where the string of interest starts at |
static String |
dataString
the entire data string that contains the string of interest |
static int |
length
length of the string of interest |
static String |
propertyType
property type that will identify which part of the action the dataString is |
static String |
regex
regular expression used to find string of interest, mostly used for references. |
Method Summary | |
---|---|
void |
checkValid()
checks to make sure data in string locator is valid before creating a element in the behavior model |
void |
findRegex()
must have propertyType, offset and len set and this will find a regular expression that will locate the dataString. |
CBActionElement |
getAction()
|
int |
getBeginOffset()
|
String |
getDataString()
|
boolean |
getEncoding()
|
String |
getHandler()
|
boolean |
getIsUI()
|
int |
getLength()
|
int |
getOcc()
|
Pattern |
getPat()
|
String |
getPropertyType()
|
String |
getPropString()
This will take the propertyType and get it's corresponding string from the action |
String |
getRegex()
|
void |
setAction(CBActionElement action)
|
void |
setBeginOffset(int i)
|
void |
setDataString(String string)
|
void |
setEncoding()
This will ask the protocol whether or not the encoding flag should be set for this StringLocator |
void |
setEncoding(boolean encode)
|
void |
setHandler(String uniqueID)
|
void |
setIsUI(boolean isUI)
|
void |
setLength(int i)
This sets the length of the string being pointed at |
void |
setOcc(int occ)
|
void |
setPropertyType(String buffer)
|
void |
setRegex(String buffer)
|
boolean |
toDisplay()
converts strings and offsets and lengths from model form to UI form |
void |
toModel()
converts strings and offsets and lengths from UI form to model form. |
Field Detail |
---|
static final int beginOffset
static final int length
static final String dataString
static final String regex
static final String propertyType
static final CBActionElement action
Method Detail |
---|
int getBeginOffset()
Pattern getPat()
String getDataString()
int getLength()
String getRegex()
void setBeginOffset(int i)
i
- the begin offset of the substring of interest within the dataStringvoid setDataString(String string)
string
- the dataString where reg expressions and offsets are appliedvoid setLength(int i)
i
- the length of the substring of interestvoid findRegex()
CBActionElement getAction()
String getPropertyType()
void setAction(CBActionElement action)
action
- void setRegex(String buffer)
buffer
- - the regular expression to be setvoid setPropertyType(String buffer)
buffer
- - the property type is string used to identify which piece of the
action is being looked at.void checkValid() throws com.ibm.rational.test.lt.datacorrelation.testgen.DCException
com.ibm.rational.test.lt.datacorrelation.testgen.DCException
String getPropString()
void setEncoding(boolean encode)
encode
- - whether to encode a substitution candidate or not. default is falsevoid setEncoding()
boolean getEncoding()
void setOcc(int occ)
occ
- - the number of times to execute a regex before getting to the string
you're looking forint getOcc()
boolean getIsUI()
void setIsUI(boolean isUI)
isUI
- - true if UI DCStringLocator with UI offsetsvoid toModel()
boolean toDisplay()
String getHandler()
void setHandler(String uniqueID)
uniqueID
- - the uniqueID of the plugin that wants to handle this string locator
|
IBM Rational Performance Tester SDK | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |