Class: Address

Address(options, addressStruct)

Processes and stores the values and meta data of a given address structure

Constructor

new Address(options, addressStruct)

Parameters:
Name Type Description
options Object Error, warning and debug function references
addressStruct Object Address node to process
Source:

Members

addr :String

Address property default
Type:
  • String
Source:

addresses :Array

Addresses array property default
Type:
  • Array
Source:

addrtype :String

Address Type property default
Type:
  • String
Source:

(readonly) attrib :Object

Provides default `attrib` property to ensure node processing, always returns current meta values
Type:
  • Object
Source:

attrib

Continues node walking recursion through the current attrib node
Source:

(readonly) data :Array

Returns all processed data, including child data, of the this class
Type:
  • Array
Source:

hasMultiple :Boolean

Flag to indicate if multiple addresses are held
Type:
  • Boolean
Source:

options :Object

Merge default options with given options
Type:
  • Object
Source:

Methods

parseStruct(curStruct)

Recursive parsing function, sets the value of this classes properties (if it exists), or calls the proper processing function, or builds required child classes for further processing
Parameters:
Name Type Description
curStruct Object Current node being processed
Source: