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 |
Classes
Members
namedValues :Object
Extracted title string of this item
For more detail refer here
For more detail refer here
Type:
- Object
positionalValues :Array.<string>
Extracted title string of this item
For more detail refer here
For more detail refer here
Type:
- Array.<string>
Methods
first() → {string}
first positional value or ""
Returns:
the first value in the positional values.
- Type
- string
hasNamedValues() → {bool}
Has named values?
Returns:
true if it has
- Type
- bool
hasPositinalValues() → {bool}
Has positional values?
Returns:
true if it has
- Type
- bool
hasValues() → {bool}
Has any values?
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. |
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. |
Returns:
true if it is included in the positional values as substring.
- Type
- bool
last() → {string}
last positional value or ""
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. |
serialize() → {string}
serialize to string
Returns:
string serialization of this Value.
- Type
- string