protected static class AutoItRs.DefaultRecognizable extends PersistableDefault implements AutoItRs.Recognizable
AutoItRs.Recognizable.Constants.AutoItConstants.PREFIX_PROPERTY_FOR_RS
will be used for generating recognition string, please avoid adding new fields of
name starting with Constants.AutoItConstants.PREFIX_PROPERTY_FOR_RS to this class
when refactoring this class.| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
engineRS
The recognition string in Native Mode, recognized directly by underlying automation tool.
|
protected java.util.Map<java.lang.String,java.lang.String> |
fieldNameToRsKeyMap
a cache holding the Map of (fieldName, rsKey)
|
protected java.lang.String |
rawRS
The recognition string provided by user.
|
enabled, FAILED_RETRIEVE_VALUE, fieldNameToPersistKeyMap, parent, persistKeyToFieldValueMap, tabulation, threshold, thresholdEnabled, UNKNOWN_VALUECONTAINER_ELEMENTDATA_BIGGER_THAN_THRESHOLD| Constructor and Description |
|---|
DefaultRecognizable(java.lang.String rawRS) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
afterParse()
Do some thing after parsing the raw recognition string.
|
protected void |
beforeParse()
Do some thing before parsing the raw recognition string.
For example, remove some prefix/suffix or remove leading/ending spaces etc. |
java.lang.String |
getEngineRS()
This Recognition String is engine specific.
|
protected java.util.Set<java.lang.String> |
getNonRecognizableFields() |
java.util.Map<java.lang.String,java.lang.String> |
getPersitableFields()
This default implementation get all the declared fields
Class.getDeclaredFields()
of this class and its super-classes (NOT super than the class AutoItRs.DefaultRecognizable ),
then put the pair ('fieldName', 'fieldName') into the Persistable Map. |
java.lang.String |
getRawRS()
This raw Recognition String is provided by user, it can be in SAFS format,
engine format, or any other format which will be parsed into engine RS.
|
protected java.util.Map<java.lang.String,java.lang.String> |
getRecognizableFieldToRsKeyMap() |
protected java.lang.String |
getTopMostClassname() |
void |
parseRawRS()
This method should parse the raw RS
|
protected void |
parsing()
Parse the raw recognition string so that the engine RS will be produced.
|
void |
setEngineRS(java.lang.String engineRS) |
void |
setRawRS(java.lang.String rawRS) |
equals, getContents, getContents, getField, getFlatKey, getParent, getTabulation, getTagName, getThreshold, ignoreFieldForPersist, isEnabled, isIgnoredContentCache, isThresholdEnabled, setEnabled, setField, setIgnoredContentCache, setParent, setTabulation, setThreshold, setThresholdEnabled, toStringprotected java.lang.String rawRS
protected java.lang.String engineRS
protected java.util.Map<java.lang.String,java.lang.String> fieldNameToRsKeyMap
public java.lang.String getRawRS()
AutoItRs.RecognizablegetRawRS in interface AutoItRs.Recognizablepublic void setRawRS(java.lang.String rawRS)
public java.lang.String getEngineRS()
AutoItRs.RecognizablegetEngineRS in interface AutoItRs.Recognizablepublic void setEngineRS(java.lang.String engineRS)
public void parseRawRS()
AutoItRs.RecognizableparseRawRS in interface AutoItRs.Recognizableprotected void beforeParse()
protected void parsing()
protected void afterParse()
public java.util.Map<java.lang.String,java.lang.String> getPersitableFields()
Class.getDeclaredFields()
of this class and its super-classes (NOT super than the class AutoItRs.DefaultRecognizable ),
then put the pair ('fieldName', 'fieldName') into the Persistable Map.getPersitableFields in interface PersistablegetPersitableFields in class PersistableDefaultPersistableDefault.ignoreFieldForPersist(Field)protected java.lang.String getTopMostClassname()
getPersitableFields(),
getNonRecognizableFields()protected java.util.Set<java.lang.String> getNonRecognizableFields()
protected java.util.Map<java.lang.String,java.lang.String> getRecognizableFieldToRsKeyMap()
Copyright © SAS Institute. All Rights Reserved.