Adaptive Framework  0.9.0
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Functions | Variables

Adaptive Function x500Name More...

Functions

const afw_value_tafw_function_execute_compile_xpathExpression (afw_function_execute_t *x)
 Adaptive Function compile<xpathExpression> More...
 
const afw_value_tafw_function_execute_evaluate_xpathExpression (afw_function_execute_t *x)
 Adaptive Function evaluate<xpathExpression> More...
 
const afw_value_tafw_function_execute_xpath_node_count (afw_function_execute_t *x)
 Adaptive Function xpath_node_count More...
 
const afw_value_tafw_function_execute_xpath_node_eq (afw_function_execute_t *x)
 Adaptive Function xpath_node_eq More...
 
const afw_value_tafw_function_execute_xpath_node_match (afw_function_execute_t *x)
 Adaptive Function xpath_node_match More...
 

Variables

 afw_function_definition_bag_size_xpathExpression
 Function definition bag_size<xpathExpression>
 
 afw_function_definition_bag_xpathExpression
 Adaptive Function bag_size<xpathExpression> More...
 
 afw_function_definition_compile_xpathExpression
 Adaptive Function bag<xpathExpression> More...
 
 afw_function_definition_eq_xpathExpression
 Function definition eq<xpathExpression>
 
 afw_function_definition_eqx_xpathExpression
 Adaptive Function eq<xpathExpression> More...
 
 afw_function_definition_evaluate_xpathExpression
 Adaptive Function eqx<xpathExpression> More...
 
 afw_function_definition_ge_xpathExpression
 Function definition ge<xpathExpression>
 
 afw_function_definition_gt_xpathExpression
 Adaptive Function ge<xpathExpression> More...
 
 afw_function_definition_is_xpathExpression
 Adaptive Function gt<xpathExpression> More...
 
 afw_function_definition_le_xpathExpression
 Adaptive Function is<xpathExpression> More...
 
 afw_function_definition_lt_xpathExpression
 Adaptive Function le<xpathExpression> More...
 
 afw_function_definition_ne_xpathExpression
 Adaptive Function lt<xpathExpression> More...
 
 afw_function_definition_nex_xpathExpression
 Adaptive Function ne<xpathExpression> More...
 
 afw_function_definition_to_string_xpathExpression
 Adaptive Function nex<xpathExpression> More...
 
 afw_function_definition_xpathExpression
 Adaptive Function to_string<xpathExpression> More...
 
 afw_function_definition_xpath_node_count
 Adaptive Function xpathExpression More...
 
 afw_function_definition_xpath_node_eq
 Function definition xpath_node_eq.
 
 afw_function_definition_xpath_node_match
 Function definition xpath_node_match.
 

Detailed Description

Adaptive Function x500Name

Parameters
xfunction execute parameter.

Converts value to data type x500Name returning x500Name result.

This function is pure, so it will always return the same result given exactly the same parameters and has no side effects.

Declaration:

function x500Name(
value: any
): x500Name;

Parameters:

value - (any dataType) Value to convert.

Returns:

(x500Name) Converted value.

Errors thrown:

cast_error - value could not be converted

Implemented by afw_function_execute_convert()


xpathExpression adaptive functions.

Function Documentation

◆ afw_function_execute_compile_xpathExpression()

const afw_value_t* afw_function_execute_compile_xpathExpression ( afw_function_execute_t x)

Adaptive Function compile<xpathExpression>

Parameters
xfunction execute parameter.

Compile xpathExpression value and return either an unevaluated adaptive value or a string containing the compiler listing.

This function is pure, so it will always return the same result given exactly the same parameters and has no side effects.

Declaration:

function compile<xpathExpression>(
source: xpathExpression,
listing?: any
): unevaluated;

Parameters:

source - (xpathExpression) xpathExpression string to compile.

listing - (optional any dataType) If specified, a compiler listing is produced instead of an unevaluated expression value.

This parameter can be an integer between 0 and 10 of a string that is used for indentation. If 0 is specified, no whitespace is added to the resulting string. If 1 through 10 is specified, that number of spaces is used.

Returns:

(unevaluated)

Definition at line 57 of file afw_function_xpathExpression.c.

◆ afw_function_execute_evaluate_xpathExpression()

const afw_value_t* afw_function_execute_evaluate_xpathExpression ( afw_function_execute_t x)

Adaptive Function evaluate<xpathExpression>

Parameters
xfunction execute parameter.

Compile and evaluate xpathExpression value.

This function is not pure, so it may return a different result given exactly the same parameters.

Declaration:

function evaluate<xpathExpression>(
source: xpathExpression,
additionalUntrustedQualifiedVariables?: (object _AdaptiveHybridPropertiesObjects_)
): unevaluated;

Parameters:

source - (xpathExpression) xpathExpression string to compile and evaluate.

additionalUntrustedQualifiedVariables - (optional object AdaptiveHybridPropertiesObjects) This parameter supplies additional qualified variables that can be accessed during evaluation. These variables will not be used by anything that needs to ensure its qualified variables must come from a trusted source, such as authorization. This parameter is intended to be used for testing only and should not be used for anything running in production.

Returns:

(unevaluated)

Todo:
FIXME: Add code.

Definition at line 122 of file afw_function_xpathExpression.c.

◆ afw_function_execute_xpath_node_count()

const afw_value_t* afw_function_execute_xpath_node_count ( afw_function_execute_t x)

Adaptive Function xpath_node_count

Parameters
xfunction execute parameter.

The number of nodes in a node-set.

This function is pure, so it will always return the same result given exactly the same parameters and has no side effects.

Declaration:

function xpath_node_count(
nodeset: xpathExpression
): integer;

Parameters:

nodeset - (xpathExpression)

Returns:

(integer)

Todo:
FIXME: Add code.

Definition at line 160 of file afw_function_xpathExpression.c.

◆ afw_function_execute_xpath_node_eq()

const afw_value_t* afw_function_execute_xpath_node_eq ( afw_function_execute_t x)

Adaptive Function xpath_node_eq

Parameters
xfunction execute parameter.

Checks for xpathExpression arg1 is equal to xpathExpression arg2 and return the boolean result.

This function is pure, so it will always return the same result given exactly the same parameters and has no side effects.

Declaration:

function xpath_node_eq(
arg1: xpathExpression,
arg2: xpathExpression
): boolean;

Parameters:

arg1 - (xpathExpression)

arg2 - (xpathExpression)

Returns:

(boolean)

Todo:
FIXME: Add code.

Definition at line 244 of file afw_function_xpathExpression.c.

◆ afw_function_execute_xpath_node_match()

const afw_value_t* afw_function_execute_xpath_node_match ( afw_function_execute_t x)

Adaptive Function xpath_node_match

Parameters
xfunction execute parameter.

Returns true if any of the nodes matched by nodeset1 are equal to any of the nodes matched by nodeset2 or their corresponding children.

This function is pure, so it will always return the same result given exactly the same parameters and has no side effects.

Declaration:

function xpath_node_match(
nodeset2: xpathExpression,
arg2: xpathExpression
): boolean;

Parameters:

nodeset2 - (xpathExpression)

arg2 - (xpathExpression)

Returns:

(boolean)

Todo:
FIXME: Add code.

Definition at line 202 of file afw_function_xpathExpression.c.

Variable Documentation

◆ afw_function_definition_bag_xpathExpression

afw_function_definition_bag_xpathExpression

Adaptive Function bag_size<xpathExpression>

Parameters
xfunction execute parameter.

This returns the integer number of values in list.

This function is pure, so it will always return the same result given exactly the same parameters and has no side effects.

Declaration:

function bag_size<xpathExpression>(
value: (list xpathExpression)
): integer;

Parameters:

value - (list xpathExpression)

Returns:

(integer)

Implemented by afw_function_execute_bag_size()


Function definition bag<xpathExpression>

Definition at line 31437 of file afw_function_bindings.h.

◆ afw_function_definition_compile_xpathExpression

afw_function_definition_compile_xpathExpression

Adaptive Function bag<xpathExpression>

Parameters
xfunction execute parameter.

Takes any number of xpathExpression values and returns a list of list.

This function is pure, so it will always return the same result given exactly the same parameters and has no side effects.

Declaration:

function bag<xpathExpression>(
...values: (list of (list xpathExpression))
): (list xpathExpression);

Parameters:

values - (0 or more list xpathExpression)

Returns:

(list xpathExpression)

Implemented by afw_function_execute_bag()


Function definition compile<xpathExpression>

Definition at line 31471 of file afw_function_bindings.h.

◆ afw_function_definition_eqx_xpathExpression

afw_function_definition_eqx_xpathExpression

Adaptive Function eq<xpathExpression>

Parameters
xfunction execute parameter.

Determine if xpathExpression arg1 is equal to the value of arg2 converted to the data type of arg1 then return the boolean result. Use "eqx" ("===") instead if you want false to be returned if arg1 and arg2's data type don't match.

This function is pure, so it will always return the same result given exactly the same parameters and has no side effects.

Declaration:

function eq<xpathExpression>(
arg1: xpathExpression,
arg2: any
): boolean;

Parameters:

arg1 - (xpathExpression)

arg2 - (any dataType)

Returns:

(boolean)

Errors thrown:

conversion - arg2 cannot be converted to the data type of arg1.

Implemented by afw_function_execute_eq()


Function definition eqx<xpathExpression>

Definition at line 31558 of file afw_function_bindings.h.

◆ afw_function_definition_evaluate_xpathExpression

afw_function_definition_evaluate_xpathExpression

Adaptive Function eqx<xpathExpression>

Parameters
xfunction execute parameter.

Determine if for xpathExpression arg1 is equal to the value and data type of arg2 then return the boolean result. Use "eq" ("==") instead if you want arg2 to be converted to the data type of arg1 before comparison.

This function is pure, so it will always return the same result given exactly the same parameters and has no side effects.

Declaration:

function eqx<xpathExpression>(
arg1: xpathExpression,
arg2: any
): boolean;

Parameters:

arg1 - (xpathExpression)

arg2 - (any dataType)

Returns:

(boolean)

Implemented by afw_function_execute_eqx()


Function definition evaluate<xpathExpression>

Definition at line 31597 of file afw_function_bindings.h.

◆ afw_function_definition_gt_xpathExpression

afw_function_definition_gt_xpathExpression

Adaptive Function ge<xpathExpression>

Parameters
xfunction execute parameter.

Checks for xpathExpression arg1 is greater than or equal to xpathExpression arg2 and return the boolean result.

This function is pure, so it will always return the same result given exactly the same parameters and has no side effects.

Declaration:

function ge<xpathExpression>(
arg1: xpathExpression,
arg2: xpathExpression
): boolean;

Parameters:

arg1 - (xpathExpression)

arg2 - (xpathExpression)

Returns:

(boolean)

Implemented by afw_function_execute_ge()


Function definition gt<xpathExpression>

Definition at line 31677 of file afw_function_bindings.h.

◆ afw_function_definition_is_xpathExpression

afw_function_definition_is_xpathExpression

Adaptive Function gt<xpathExpression>

Parameters
xfunction execute parameter.

Checks for xpathExpression arg1 is greater than xpathExpression arg2 and return the boolean result.

This function is pure, so it will always return the same result given exactly the same parameters and has no side effects.

Declaration:

function gt<xpathExpression>(
arg1: xpathExpression,
arg2: xpathExpression
): boolean;

Parameters:

arg1 - (xpathExpression)

arg2 - (xpathExpression)

Returns:

(boolean)

Implemented by afw_function_execute_gt()


Function definition is<xpathExpression>

Definition at line 31715 of file afw_function_bindings.h.

◆ afw_function_definition_le_xpathExpression

afw_function_definition_le_xpathExpression

Adaptive Function is<xpathExpression>

Parameters
xfunction execute parameter.

Checks whether value is dataType xpathExpression and return the boolean result.

This function is pure, so it will always return the same result given exactly the same parameters and has no side effects.

Declaration:

function is<xpathExpression>(
value: any
): boolean;

Parameters:

value - (any dataType) Value to check.

Returns:

(boolean)

Implemented by afw_function_execute_is()


Function definition le<xpathExpression>

Definition at line 31750 of file afw_function_bindings.h.

◆ afw_function_definition_lt_xpathExpression

afw_function_definition_lt_xpathExpression

Adaptive Function le<xpathExpression>

Parameters
xfunction execute parameter.

Checks for xpathExpression arg1 is less than or equal to xpathExpression arg2 and return the boolean result.

This function is pure, so it will always return the same result given exactly the same parameters and has no side effects.

Declaration:

function le<xpathExpression>(
arg1: xpathExpression,
arg2: any
): boolean;

Parameters:

arg1 - (xpathExpression)

arg2 - (any dataType)

Returns:

(boolean)

Implemented by afw_function_execute_le()


Function definition lt<xpathExpression>

Definition at line 31788 of file afw_function_bindings.h.

◆ afw_function_definition_ne_xpathExpression

afw_function_definition_ne_xpathExpression

Adaptive Function lt<xpathExpression>

Parameters
xfunction execute parameter.

Checks for xpathExpression arg1 is less that xpathExpression arg2 and return the boolean result.

This function is pure, so it will always return the same result given exactly the same parameters and has no side effects.

Declaration:

function lt<xpathExpression>(
arg1: xpathExpression,
arg2: xpathExpression
): boolean;

Parameters:

arg1 - (xpathExpression)

arg2 - (xpathExpression)

Returns:

(boolean)

Implemented by afw_function_execute_lt()


Function definition ne<xpathExpression>

Definition at line 31826 of file afw_function_bindings.h.

◆ afw_function_definition_nex_xpathExpression

afw_function_definition_nex_xpathExpression

Adaptive Function ne<xpathExpression>

Parameters
xfunction execute parameter.

Determine if xpathExpression arg1 is not equal to the value of arg2 converted to the data type of arg1 then return the boolean result. Use "nex" ("!==") instead if you want true to be returned if arg1 and arg2's data type don't match.

This function is pure, so it will always return the same result given exactly the same parameters and has no side effects.

Declaration:

function ne<xpathExpression>(
arg1: xpathExpression,
arg2: any
): boolean;

Parameters:

arg1 - (xpathExpression)

arg2 - (any dataType)

Returns:

(boolean)

Errors thrown:

conversion - arg2 cannot be converted to the data type of arg1.

Implemented by afw_function_execute_ne()


Function definition nex<xpathExpression>

Definition at line 31870 of file afw_function_bindings.h.

◆ afw_function_definition_to_string_xpathExpression

afw_function_definition_to_string_xpathExpression

Adaptive Function nex<xpathExpression>

Parameters
xfunction execute parameter.

Determine if for xpathExpression arg1 is not equal to the value or data type of arg2 then return the boolean result. Use "ne" ("!=") instead if you want arg2 to be converted to the data type of arg1 before comparison.

This function is pure, so it will always return the same result given exactly the same parameters and has no side effects.

Declaration:

function nex<xpathExpression>(
arg1: xpathExpression,
arg2: any
): boolean;

Parameters:

arg1 - (xpathExpression)

arg2 - (any dataType)

Returns:

(boolean)

Implemented by afw_function_execute_nex()


Function definition to_string<xpathExpression>

Definition at line 31909 of file afw_function_bindings.h.

◆ afw_function_definition_xpath_node_count

afw_function_definition_xpath_node_count

Adaptive Function xpathExpression

Parameters
xfunction execute parameter.

Converts value to data type xpathExpression returning xpathExpression result.

This function is pure, so it will always return the same result given exactly the same parameters and has no side effects.

Declaration:

function xpathExpression(
value: any
): xpathExpression;

Parameters:

value - (any dataType) Value to convert.

Returns:

(xpathExpression) Converted value.

Errors thrown:

cast_error - value could not be converted

Implemented by afw_function_execute_convert()


Function definition xpath_node_count

Definition at line 31983 of file afw_function_bindings.h.

◆ afw_function_definition_xpathExpression

afw_function_definition_xpathExpression

Adaptive Function to_string<xpathExpression>

Parameters
xfunction execute parameter.

Converts xpathExpression value to string. For list values, the to_string() value for each entry is returned separated with commas.

This function is pure, so it will always return the same result given exactly the same parameters and has no side effects.

Declaration:

function to_string<xpathExpression>(
value: xpathExpression
): string;

Parameters:

value - (xpathExpression) A xpathExpression value.

Returns:

(string) The string representation of the value.

Implemented by afw_function_execute_convert()


Function definition xpathExpression

Definition at line 31944 of file afw_function_bindings.h.