API Docs for:
Show:

ParsingFunctions Class

Functions which provide abstractions for the parser.

Item Index

Methods

Methods

parseAttribute

(
  • value
  • attribute
  • preprocessor
)
Boolean static

Abstract function for parsing and setting jermaine attributes which do not require extremely complicated logic to determine their values. Any attributes which require complex logic to determine their proper values should be explicitly set in the parser.

Parameters:

  • value String
  • attribute Function
  • preprocessor Function

Returns:

Boolean:

parseBoolean

(
  • param
)
Boolean static

Parses the allowed Boolean Strings and returns the appropriate value. If the parameter is not one of the allowed values then the parameter is returned as an error might not need to be thrown immediately.

Parameters:

  • param String

Returns:

Boolean:

parseDataMeasure

(
  • type
)
Function static

Returns a curried function that parses a value into a DataMeasure of the specified type.

Parameters:

  • type String

Returns:

Function:

parseDataValue

(
  • type
)
Function static

Returns a curried function that parses a value into a DataValue of the specified type.

Parameters:

  • type String

Returns:

Function:

parseInteger

(
  • value
)
Integer static

Parses a string argument with a radix of 10 and returns an integer.

Parameters:

  • value String

Returns:

Integer:

parseString

(
  • value
)
String static

Parses String attributes.

Parameters:

  • value String

Returns:

String: