Lawtext core references / core/src/diff/lawDiff / ComparableEL
Class: ComparableEL
Defined in: core/src/diff/lawDiff.ts:138
JsonEL: a tree structure that represents simplified structure of XML. A JsonEL object corresponds to an XML element.
Implements
Constructors
Constructor
new ComparableEL(
el,parent?,openIndex?):ComparableEL
Defined in: core/src/diff/lawDiff.ts:148
Parameters
el
string | JsonEL
parent?
ComparableEL
openIndex?
number = 0
Returns
ComparableEL
Properties
attr
attr:
object={}
Defined in: core/src/diff/lawDiff.ts:140
The attributes of the element
Index Signature
[key: string]: string | undefined
Implementation of
children
children:
ComparableEL[] =[]
Defined in: core/src/diff/lawDiff.ts:141
The children of the element
Implementation of
closeIndex
closeIndex:
number
Defined in: core/src/diff/lawDiff.ts:143
nextIndex
nextIndex:
number
Defined in: core/src/diff/lawDiff.ts:144
openIndex
openIndex:
number
Defined in: core/src/diff/lawDiff.ts:142
parent?
optionalparent:ComparableEL
Defined in: core/src/diff/lawDiff.ts:145
tag
tag:
string=""
Defined in: core/src/diff/lawDiff.ts:139
The tag name of the element
Implementation of
textCache
textCache:
string|null=null
Defined in: core/src/diff/lawDiff.ts:146
Accessors
text
Get Signature
get text():
string
Defined in: core/src/diff/lawDiff.ts:173
Returns
string
Methods
allList()
allList():
IterableIterator<[ComparableEL,TagType]>
Defined in: core/src/diff/lawDiff.ts:180
Returns
IterableIterator<[ComparableEL, TagType]>
getXPath()
getXPath():
string
Defined in: core/src/diff/lawDiff.ts:192
Returns
string