Class: EMLText211

EMLText211()

A model that represents the EML 2.1.1 Text module

Constructor

new EMLText211()

Source:

Methods

getParentEML() → {EML211|false}

Climbs up the model heirarchy until it finds the EML model
Source:
Returns:
- Returns the EML 211 Model or false if not found
Type
EML211 | false

nodeNameMap()

Maps the lower-case EML node names (valid in HTML DOM) to the camel-cased EML node names (valid in EML). Used during parse() and serialize()
Source:

setText(text)

function setText
Parameters:
Name Type Description
text string The text, usually taken directly from an HTML textarea value, to parse and set on this model
Source:

toString() → {string}

Returns the EML Text paragraphs as a string, with each paragraph on a new line.
Source:
Returns:
Type
string

updateDOM()

Makes a copy of the original XML DOM and updates it with the new values from the model.
Source: