Class DocsValidator

Validate the doc objects

Source : file DocsValidator.js at line 37

Constructor

new DocsValidator ( )

The constructor

Source : file DocsValidator.js at line 376

Public methods

validate ( classesDocs, variablesDocs )

Validate the documentation

Source : file DocsValidator.js at line 387

Parameters

Name Type Description
classesDocs Array of ClassDoc

The classes Doc objects found in the documentation

variablesDocs Array of VariableDoc

The variable Doc objects found in the documentation

Private properties

#classNames : Map of String

A map to store the classes names

Source : file DocsValidator.js at line 58

#currentClassDoc : String

The current class

Source : file DocsValidator.js at line 65

#errorsCounter : Number

A counter for the errors

Source : file DocsValidator.js at line 44

#rules : Object

The rules to apply

Source : file DocsValidator.js at line 72

#warningsCounter : Number

A counter for the warnings

Source : file DocsValidator.js at line 51

Private methods

#logFault ( rule, doc )

Display an error or warning on the screen

Source : file DocsValidator.js at line 292

Parameters

Name Type Description
rule Object

The rule that have generated the error or warning

doc VariableDoc or ClassDoc or MethodOrPropertyDoc

The Doc object for witch the error is generated

#validateClassDoc ( classDoc )

Validate a ClassDoc object

Source : file DocsValidator.js at line 356

Parameters

Name Type Description
classDoc ClassDoc

The Doc object to validate

#validateDoc ( rule, doc )

Apply a rule on a Doc object

Source : file DocsValidator.js at line 317

Parameters

Name Type Description
rule Object

The rule that have tobe applied on the Doc Object

doc VariableDoc or ClassDoc or MethodOrPropertyDoc

The Doc object to validate

#validateMethodOrPropertyDoc ( methodOrPropertyDoc )

Validate a MethodOrPropertyDoc object

Source : file DocsValidator.js at line 342

Parameters

Name Type Description
methodOrPropertyDoc MethodOrPropertyDoc

The Doc object to validate

#validateVariableDoc ( variableDoc )

Validate a VariableDoc object

Source : file DocsValidator.js at line 331

Parameters

Name Type Description
variableDoc VariableDoc

The Doc object to validate