Class: EMLMethodStep

EMLMethodStep()

Represents the EML Method Steps. The methodStep field allows for repeated sets of elements that document a series of procedures followed to produce a data object. These include text descriptions of the procedures, relevant literature, software, instrumentation, source data and any quality control measures taken.

Constructor

new EMLMethodStep()

Since:
  • 2.19.0
Source:

Extends

  • Backbone.Model

Methods

defaults() → {object}

Default attributes for EMLMethodSteps
Properties:
Name Type Description
objectXML string The original XML snippet string from the EML XML
objectDOM Element The original XML snippet as an Element
description EMLText | EMLSpecializedText A textual description of this method step
instrumentation Array.<string> One or more instruments used for measurement and recording data
subStep Array.<EMLMethodStep> Nested additional method steps within this step. This is useful for hierarchical method descriptions. This is *not* fully supported in MetacatUI yet
customMethodID Array.<string> A unique identifier for this Custom Method Step type, which is defined in AppConfig#customEMLMethods
required boolean If true, this method step is required in it's parent EML
Source:
Returns:
Type
object

isCustom() → {boolean}

Returns whether or not this Method Step is a custom one, which currently only applies to the description
Source:
Returns:
Type
boolean

isEmpty() → {boolean|undefined}

Check whether this model has values that would be serialized to EML.
Source:
Returns:
True when the model is empty; otherwise undefined
Type
boolean | undefined

nodeNameMap() → {object}

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:
Returns:
Type
object

updateDOM()

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

validate() → {object|false|undefined}

Check whether this method step has valid values.
Source:
Returns:
Validation errors, false when validation itself fails, or undefined when valid
Type
object | false | undefined