class |
AbstractConversionToString |
Ancestor for conversion schemes that convert objects into strings.
|
class |
AbstractStringConversion |
Ancestor for string conversion schemes.
|
class |
AbstractValidateString |
Ancestor for string conversions that ensure a string only contains valid
characters according to some rules.
|
class |
AnyToCommandline |
Generates a commandline string from any object.
|
class |
AnyToString |
Turns any object into a String, using its 'toString()' method.
|
class |
ArrayToYamlString |
Converts the object array into a YAML string.
|
class |
BackQuote |
Backquotes, i.e., escapes with a backslash, characters like quotes (single and double), new lines, tabs.
See also:
adams.data.conversion.Quote
adams.data.conversion.UnQuote
adams.data.conversion.UnBackQuote
Valid options are:
|
class |
Base64ToString |
Decodes a base64 string.
|
class |
BaseDateTimeMsecToString |
Turns a BaseDateTimeMsec format string into a String, evaluted using user-supplied start and end dates (ignored if future INF dates).
Example: 2015-12-01 07:13:12.034 +3 MINUTE
(<date>|NOW|-INF|+INF|START|END) [expr (MILLISECOND|SECOND|MINUTE|HOUR|DAY|BUSINESSDAY|WEEK|MONTH|YEAR)]*
expr ::= ( expr )
| - expr
| + expr
| expr + expr
| expr - expr
| expr * expr
| expr / expr
| expr % expr
| expr ^ expr
| abs ( expr )
| sqrt ( expr )
| log ( expr )
| exp ( expr )
| rint ( expr )
| floor ( expr )
| pow[er] ( expr , expr )
| ceil ( expr )
| NUMBER
|
class |
BaseDateTimeToString |
Turns a BaseDateTime format string into a String, evaluted using user-supplied start and end dates (ignored if future INF dates).
Example: 2015-12-01 07:13:12 +3 MINUTE
(<date>|NOW|-INF|+INF|START|END) [expr (SECOND|MINUTE|HOUR|DAY|BUSINESSDAY|WEEK|MONTH|YEAR)]*
expr ::= ( expr )
| - expr
| + expr
| expr + expr
| expr - expr
| expr * expr
| expr / expr
| expr % expr
| expr ^ expr
| abs ( expr )
| sqrt ( expr )
| log ( expr )
| exp ( expr )
| rint ( expr )
| floor ( expr )
| pow[er] ( expr , expr )
| ceil ( expr )
| NUMBER
|
class |
BaseDateToString |
Turns a BaseDate format string into a String, evaluted using user-supplied start and end dates (ignored if future INF dates).
Example: 2015-12-01 +3 DAY
(<date>|NOW|-INF|+INF|START|END) [expr (DAY|BUSINESSDAY|WEEK|MONTH|YEAR)]*
expr ::= ( expr )
| - expr
| + expr
| expr + expr
| expr - expr
| expr * expr
| expr / expr
| expr % expr
| expr ^ expr
| abs ( expr )
| sqrt ( expr )
| log ( expr )
| exp ( expr )
| rint ( expr )
| floor ( expr )
| pow[er] ( expr , expr )
| ceil ( expr )
| NUMBER
|
class |
BaseTimeToString |
Turns a BaseTime format string into a String, evaluted using user-supplied start and end times (ignored if future INF times).
Example: 07:13:12 +3 MINUTE
(<date>|NOW|-INF|+INF|START|END) [expr (SECOND|MINUTE|HOUR)]*
expr ::= ( expr )
| - expr
| + expr
| expr + expr
| expr - expr
| expr * expr
| expr / expr
| expr % expr
| expr ^ expr
| abs ( expr )
| sqrt ( expr )
| log ( expr )
| exp ( expr )
| rint ( expr )
| floor ( expr )
| pow[er] ( expr , expr )
| ceil ( expr )
| NUMBER
|
class |
BreakUpString |
Breaks up a string into multiple lines if wider than the specified number of columns.
|
class |
ByteArrayToBase64 |
Encodes a byte array as base64 string.
|
class |
ByteArrayToString |
Turns a byte array into a String.
|
class |
ByteToHex |
Turns a Byte into a hexadecimal string.
|
class |
ByteToString |
Turns a Byte into a String.
|
class |
CharArrayToString |
Turns a char array into a String.
|
class |
DateTimeTypeToString |
Turns instances of the specified date/time type into a string using the specified format.
|
class |
DOMNodeToString |
Turns a org.w3c.dom.Node DOM object into a String.
|
class |
DOMToString |
Turns a org.w3c.dom.Node or org.w3c.dom.Document DOM object into a String.
In case of org.w3c.dom.Node objects, the owner document is converted to String.
|
class |
DoubleToString |
Turns a Double into a String.
|
class |
EmailToPlainText |
Turns an Email object into a plain text string.
|
class |
FieldToString |
Turns a Field object into a String.
|
class |
FileToString |
Turns a File object into a String.
|
class |
HtmlCharacterEntitiesToString |
Turns HTML character entities like '<' into their character representations like '<'.
|
class |
IntToHex |
Turns an Integer into a hexadecimal string.
|
class |
IntToRoman |
Converts an integer (1-3999) into a roman numeral string (eg 'MCM').
|
class |
IntToString |
Turns an Integer into a String.
Can be optionally formatted using a byte format string.
|
class |
JsonToString |
Turns a JSON object/array into a string.
|
class |
LeftPad |
Left pads a string up to a maximum number of characters.
|
class |
ListToYamlString |
Converts the java.util.List object into a YAML string.
|
class |
LongToString |
Turns a Long into a String.
Can be optionally formatted using a byte format string.
|
class |
LowerCase |
Turns a String into a lowercase String.
|
class |
MapToYamlString |
Converts the java.util.Map object into a YAML string.
|
class |
Mat5ArrayToString |
Converts matrices into a textual representation, otherwise just outputs the dimensions.
|
class |
Mat5CharToString |
class |
NotesToString |
Turns an adams.data.Notes object into a string.
|
class |
Point2DToString |
Turns a java.awt.geom.Point2D into a string of the format 'x y'.
|
class |
PrettyPrintXML |
Turns the XML string into a pretty-printed XML string.
See also:
adams.data.conversion.XMLToDOM
adams.data.conversion.DOMToString
|
class |
PropertiesToString |
Turns a Properties object into a String.
|
class |
QuadrilateralLocationToString |
Turns a quadrilateral object into a string of the format 'A.x A.y B.x B.y C.x C.y D.x D.y'.
|
class |
Quote |
Surrounds a string with quotes (single or double), if necessary due to blanks or other characters (new line, tab) in the string.
However, you can also 'force' the quoting.
See also:
adams.data.conversion.UnQuote
adams.data.conversion.BackQuote
adams.data.conversion.UnBackQuote
|
class |
RectangleToString |
Turns a rectangle into a string of the format 'x y w h' or 'x0 y0 x1 y1'.
|
class |
RemoteCommandToString |
Turns a remote command into a string.
|
class |
ReplaceFileExtension |
Interprets the string as file name and replaces its extension with the provided one.
|
class |
ReportToString |
Generates a string representation from the report using the specified report writer.
|
class |
RightPad |
Right pads a string up to a maximum number of characters.
|
class |
SideBySideDiffToString |
Turns a side-by-side diff object into a string.
|
class |
SimpleAsciiToUnicode |
Turns an ASCII string into a Unicode one, by replacing hexadecimal unicode character representations like '\xf3' with their unicode characters.
For instance, "D'\xe1'cil" becomes "Dácil".
|
class |
SimpleUnicodeToAscii |
Turns a Unicode string into an ASCII one, by replacing the Unicode characters with something like '\xf3' (including the single quotes).
For instance, "Dácil" becomes "D'\xe1'cil".
|
class |
SpreadSheetEscapeColumnName |
Escapes a column name (if necessary) to be used in a column range expression.
|
class |
SpreadSheetInsertCellLocation |
Replaces the specified placeholder with a cell location generated from the user-supplied row and column.
|
class |
SpreadSheetInsertColumnPosition |
Replaces the specified placeholder with a column string (e.g., BG) generated from the user-supplied column.
|
class |
SpreadSheetUnescapeColumnName |
Unescapes a column name (if necessary) that was to be used in a column range expression.
|
class |
StringExpression |
Evaluates a string expression.
Variables are supported as well, e.g.: pow(X,@{exp}) with '@{exp}' being a variable available at execution time.
The following grammar is used for the expressions:
expr_list ::= '=' expr_list expr_part | expr_part ;
expr_part ::= expr ;
expr ::= ( expr )
# data types
| number
| string
| boolean
| date
# constants
| true
| false
| pi
| e
| now()
| today()
# negating numeric value
| -expr
# comparisons
| expr < expr
| expr <= expr
| expr > expr
| expr >= expr
| expr = expr
| expr != expr (or: expr <> expr)
# boolean operations
| ! expr (or: not expr)
| expr & expr (or: expr and expr)
| expr | expr (or: expr or expr)
| if[else] ( expr , expr (if true) , expr (if false) )
| ifmissing ( variable , expr (default value if variable is missing) )
| has ( variable )
| isNaN ( expr )
# arithmetics
| expr + expr
| expr - expr
| expr * expr
| expr / expr
| expr ^ expr (power of)
| expr % expr (modulo)
;
# numeric functions
| abs ( expr )
| sqrt ( expr )
| cbrt ( expr )
| log ( expr )
| log10 ( expr )
| exp ( expr )
| sin ( expr )
| sinh ( expr )
| cos ( expr )
| cosh ( expr )
| tan ( expr )
| tanh ( expr )
| atan ( expr )
| atan2 ( exprY , exprX )
| hypot ( exprX , exprY )
| signum ( expr )
| rint ( expr )
| floor ( expr )
| pow[er] ( expr , expr )
| ceil ( expr )
| min ( expr1 , expr2 )
| max ( expr1 , expr2 )
| year ( expr )
| month ( expr )
| day ( expr )
| hour ( expr )
| minute ( expr )
| second ( expr )
| weekday ( expr )
| weeknum ( expr )
# string functions
| substr ( expr , start [, end] )
| left ( expr , len )
| mid ( expr , start , len )
| right ( expr , len )
| rept ( expr , count )
| concatenate ( expr1 , expr2 [, expr3-5] )
| lower[case] ( expr )
| upper[case] ( expr )
| trim ( expr )
| matches ( expr , regexp )
| trim ( expr )
| len[gth] ( str )
| find ( search , expr [, pos] ) (find 'search' in 'expr', return 1-based position)
| replace ( str , pos , len , newstr )
| substitute ( str , find , replace [, occurrences] )
| str ( expr )
| str ( expr , numdecimals )
| str ( expr , decimalformat )
| ext ( file_str ) (extracts extension from file)
| replaceext ( file_str, ext_str ) (replaces the extension of the file with the new one)
# array functions
| len[gth] ( array )
| get ( array , index )
;
Notes:
- Variables are either all upper case letters (e.g., "ABC") or any character apart from "]" enclosed by "[" and "]" (e.g., "[Hello World]").
- 'start' and 'end' for function 'substr' are indices that start at 1.
- 'index' for function 'get' starts at 1.
- Index 'end' for function 'substr' is excluded (like Java's 'String.substring(int,int)' method)
- Line comments start with '#'
- Semi-colons (';') or commas (',') can be used as separator in the formulas,
e.g., 'pow(2,2)' is equivalent to 'pow(2;2)'
- dates have to be of format 'yyyy-MM-dd' or 'yyyy-MM-dd HH:mm:ss'
- times have to be of format 'HH:mm:ss' or 'yyyy-MM-dd HH:mm:ss'
- the characters in square brackets in function names are optional:
e.g.
|
class |
StringToBase64 |
Encodes a string as base64.
|
class |
StringToHtmlCharacterEntities |
Turns a string into valid HTML, replacing characters like '<', '>' etc with their character entities.
|
class |
StringToString |
Dummy converter, does not perform any conversion.
|
class |
StringToValidFileName |
Turns any string into a valid file name.
|
class |
StringToValidStorageName |
Turns any string into a valid storage name.
|
class |
StringToValidVariableName |
Turns any string into a valid variable name.
|
class |
TextContainerToString |
Obtains the string content of a adams.data.text.TextContainer and forwards that.
|
class |
TextRenderer |
Turns incoming objects into their textual representation, either automatic detection based on their data type or by explicitly specifying a renderer.
See also:
adams.flow.transformer.TextRenderer
|
class |
TimeToString |
Turns a number representing milli-seconds since 1970 (Java date) into a String.
For more information on formatting the date, see:
Javadoc.
|
class |
UnBackQuote |
Reverses backquoting, i.e., removes the escaping with backslash, restoring characters like quotes (single and double), new lines, tabs.
See also:
adams.data.conversion.Quote
adams.data.conversion.UnQuote
adams.data.conversion.BackQuote
Valid options are:
|
class |
UnQuote |
Removes the quotes (single or double) surrounding a string.
|
class |
UpperCase |
Turns a String into an uppercase String.
|
class |
URLDecode |
Decodes the URL encoded string back to a regular string (uses java.net.URLDecoder).
|
class |
URLEncode |
Encodes the string to make it usable within a URL (uses java.net.URLEncoder).
|
class |
URLToString |
Turns a URL object into a String.
|
class |
UseForwardSlashes |
Converts backslashes in file names to forward slashes.
Does not touch the '\\' prefix of UNC paths.
|
class |
WekaCommandToCode |
Applies a commandline converter to the incoming commandline to generate code.
Uses the following project:
https://github.com/fracpete/command-to-code-weka-package
|
class |
WekaDrawableToString |
Extracts the string representation of a weka.core.Drawable object, e.g., the tree representation of a decision tree or the graph of a BayesNet.
|