Lawtext core references / core/src/node/el / EL
Class: EL
Defined in: core/src/node/el/index.ts:10
EL: a simplified XML DOM functionality that implements JsonEL interface.
Extended by
__EL_StdEL____Declaration____LawNum____LawRef__Parentheses__PContent__PStart__PEnd__MismatchStartParenthesis__MismatchEndParenthesis____PF____Pointer____PointerRange____PointerRanges__Text____VarRef
Implements
Constructors
Constructor
new EL(
tag,attr,children,range,id?):EL
Defined in: core/src/node/el/index.ts:17
Parameters
tag
string
attr
children
(string | EL)[] = []
range
[number, number] | null
id?
number
Returns
EL
Properties
attr
attr:
object
Defined in: core/src/node/el/index.ts:12
The attributes of the element
Index Signature
[key: string]: string | undefined
Implementation of
children
children: (
string|EL)[]
Defined in: core/src/node/el/index.ts:13
The children of the element
Implementation of
id
id:
number
Defined in: core/src/node/el/index.ts:14
range
range: [
number,number] |null
Defined in: core/src/node/el/index.ts:15
tag
tag:
string
Defined in: core/src/node/el/index.ts:11
The tag name of the element
Implementation of
Accessors
isControl
Get Signature
get isControl():
boolean
Defined in: core/src/node/el/index.ts:36
Returns
boolean
Methods
copy()
copy(
deep,copyID):EL
Defined in: core/src/node/el/index.ts:40
Parameters
deep
boolean = true
copyID
boolean = false
Returns
EL
innerXML()
innerXML(
withControlEl):string
Defined in: core/src/node/el/index.ts:109
Parameters
withControlEl
boolean = false
Returns
string
json()
json(
withControlEl,withProperties):JsonEL
Defined in: core/src/node/el/index.ts:56
Parameters
withControlEl
boolean = false
withProperties
boolean = false
Returns
outerXML()
outerXML(
withControlEl):string
Defined in: core/src/node/el/index.ts:105
Parameters
withControlEl
boolean = false
Returns
string
text()
text():
string
Defined in: core/src/node/el/index.ts:95
Returns
string
wrapXML()
wrapXML(
inner):string
Defined in: core/src/node/el/index.ts:101
Parameters
inner
string
Returns
string