public class RegularExpression extends SimpleManipulator
SimpleDataSource.NameEditorData
DataSource.Writable
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
cvsRev |
UPDATE_DISPLAYED_VALUE, VALUE_INPUT
customTimer, EXPORT_READ_ONLY, EXPORT_READ_WRITE, NO_EXPORT, requiresSyncWrite, sharedTimer, syncWriteTimeout, timebase
autoSuspend, AUTOSUSPEND_DEFAULT, AUTOSUSPEND_NEVER, AUTOSUSPEND_NO_LISTENERS, AUTOSUSPEND_NO_LISTENERS_AND_NO_SOURCES, colorHi, colorHiHi, colorLo, colorLoLo, colorNormal, connectors, consoleLogger, currentColor, currentValue, debugLevel, DEFAULT_AUTOSUSPEND, dontConnect, gwtLog, hardSuspended, popupLogger, PRIMARYOUTPORTNAME, sendColors, stopped, suspended, timedPopupLogger, traceLogger, valueHi, valueHiHi, valueLo, valueLoLo
Constructor and Description |
---|
RegularExpression() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
addEscapes(java.lang.String str)
Add escape characters from the string.
|
java.lang.String |
evaluate(java.lang.String theString)
Check the string against the RE and return as much of the string as matches.
|
java.lang.String |
getEndExpression()
Returns the expected end of the response.
|
java.lang.String |
getMainExpression()
Returns the expected response.
|
java.lang.String |
getStartExpression()
Returns the expected start of the response.
|
org.apache.regexp.RE |
makeMatching()
Makes a regular expression matching the entire response using the instance
values.
|
org.apache.regexp.RE |
makeMatching(java.lang.String start,
java.lang.String response,
java.lang.String end)
Makes a regular expression matching the entire response.
|
void |
setEndExpression(java.lang.String endExpression)
Sets the expected end of the response.
|
void |
setMainExpression(java.lang.String substringExpression)
Sets the expected response.
|
void |
setStartExpression(java.lang.String startExpression)
Sets the expected start of the response.
|
void |
setValueObject(ValueObjectInterface newValue)
Sets the value of this object as a ValueObject.
|
static java.lang.String |
stripEscapes(java.lang.String str)
Removes escape characters from the string.
|
getDefaultQualityForLocation
getInPortNames, getStaticLocationFor, setBooleanValue, setBoolValue, setByteValue, setDoubleValue, setFloatValue, setIntValue, setLongValue, setShortValue, setStringValue, toString, valueChanged, valueInput
addConnector, addConnector, addDataSource, addPropertyChangeListener, addValueChangedListener, addVetoableChangeListener, authenticatedClientRequest, clientRequest, clientResponse, destroy, determineSuspendedStatus, getClassLicenseManager, getContainer, getCustomTimer, getDataSource, getDataSources, getDisplayName, getExportCriteria, getExposeComponentConnections, getName, getOutPortNames, getPullFromServers, getPushData, getPushName, getPushToServers, getServerListData, getTimebase, getTrace, isActive, isScreenLocal, refreshCurrentValue, removeConnector, removeDataSource, removePropertyChangeListener, removeValueChangedListener, removeVetoableChangeListener, requestSyncWrite, setAutoSuspend, setClassLicenseManager, setContainer, setCustomTimer, setDataSourceName, setExportCriteria, setExposeComponentConnections, setName, setPullFromServers, setPushData, setPushName, setPushToServers, setScreenLocal, setServerListData, setTimebase, setTrace, start, stop, tick, VIBEvent
addVIBEventListener, checkScript, executeInScriptInternal, executeScript, executeScriptInternal, executeScriptInternal, getAutoSuspend, getBooleanValue, getBoolValue, getColorHi, getColorHiHi, getColorLo, getColorLoLo, getColorNormal, getConnectors, getConsoleLogger, getCurrentColor, getDataSourceName, getDoubleValue, getFloatValue, getGWTLogger, getIncomingValueObject, getInScript, getIntValue, getLongValue, getParent, getPopupLogger, getScript, getScriptEngine, getSendColors, getSources, getStringValue, getSyncWriteTimeout, getTimedPopupLogger, getTraceLogger, getValueHi, getValueHiHi, getValueLo, getValueLoLo, getValueObject, init, isHardSuspended, isRunning, isSendOnlyChangedValuesDefault, isSuspended, logException, logGWT, logGWT, logMessage, logTrace, n2sortConnectors, performScriptSubstitutions, popupMessage, post, removeConnector, removeVIBEventListener, replaceConnectors, scriptExtensionSubstition, setColorHi, setColorHiHi, setColorLo, setColorLoLo, setColorNormal, setConsoleLogger, setGWTLogger, setHardSuspended, setInScript, setParent, setPopupLogger, setScript, setSendColors, setSendOnlyChangedValuesDefault, setSyncWriteTimeout, setTimedPopupLogger, setTraceLogger, setValueHi, setValueHiHi, setValueLo, setValueLoLo, updateColor, updateListeners, updateListeners, updateListeners, whoAmI
public static final java.lang.String cvsRev
public static java.lang.String addEscapes(java.lang.String str)
str
- the string to add escapes topublic java.lang.String evaluate(java.lang.String theString)
public java.lang.String getEndExpression()
public java.lang.String getMainExpression()
public java.lang.String getStartExpression()
public org.apache.regexp.RE makeMatching()
public org.apache.regexp.RE makeMatching(java.lang.String start, java.lang.String response, java.lang.String end)
start
- the start of the responseresponse
- the responseend
- the end of the responsepublic void setEndExpression(java.lang.String endExpression) throws java.text.ParseException
responseEnd
- the expected start of the responsejava.text.ParseException
public void setMainExpression(java.lang.String substringExpression) throws java.text.ParseException
response
- the expected start of the responsejava.text.ParseException
public void setStartExpression(java.lang.String startExpression) throws java.text.ParseException
responseStart
- the expected start of the responsejava.text.ParseException
public void setValueObject(ValueObjectInterface newValue) throws VIBUpdateFailedException
SimpleDataSource
setValueObject
in class SimpleDataSource
newValue
- the new ValueObject value for the serverVIBUpdateFailedException
ValueObject
public static java.lang.String stripEscapes(java.lang.String str) throws java.text.ParseException
str
- the string to stripjava.text.ParseException
Copyright © 1999-2025 ErgoTech Systems, Inc. All Rights Reserved.