Class: Value

Value(str)

Attr of Item

Constructor

new Value(str)

Create Attr from text.
Parameters:
Name Type Description
str string string red from Enclst file
Properties:
Name Type Description
positional Array.<string> positional parameters of this Attr
named object named parameters of this Attr as name&value pair
Source:

Classes

Value

Members

namedValues :Object

Extracted title string of this item
For more detail refer here
Type:
  • Object
Source:

positionalValues :Array.<string>

Extracted title string of this item
For more detail refer here
Type:
  • Array.<string>
Source:

Methods

first() → {string}

first positional value or ""
Source:
Returns:
the first value in the positional values.
Type
string

hasNamedValues() → {bool}

Has named values?
Source:
Returns:
true if it has
Type
bool

hasPositinalValues() → {bool}

Has positional values?
Source:
Returns:
true if it has
Type
bool

hasValues() → {bool}

Has any values?
Source:
Returns:
true if it has
Type
bool

isIn(aStr) → {bool}

Is a string included in this positional value?
Parameters:
Name Type Description
aStr string string to compare.
Source:
Returns:
true if it is included in the positional values.
Type
bool

isInAsSubStr(aStr) → {bool}

Is a sring included in this positional value as a substring?
Parameters:
Name Type Description
aStr string string to compare.
Source:
Returns:
true if it is included in the positional values as substring.
Type
bool

last() → {string}

last positional value or ""
Source:
Returns:
the last value in the positional values.
Type
string

readStr(valueStr)

read value string if not ""
Parameters:
Name Type Description
valueStr string string to read.
Source:

serialize() → {string}

serialize to string
Source:
Returns:
string serialization of this Value.
Type
string