Class: Hostnames

Hostnames(options, hostnamesStruct)

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

Constructor

new Hostnames(options, hostnamesStruct)

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

Members

(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 check if it has multiple hostnames
Type:
  • Boolean
Source:

(readonly) hostname :Object

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

hostname

Continues node walking recursion through the current hostname node, flipping the `hasMultiple` flag
Source:

name :String

Host name property default
Type:
  • String
Source:

names :Array

Host names property default
Type:
  • Array
Source:

options :Object

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

type :String

Host type property default
Type:
  • String
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: