Class DocsValidator

Validate the doc objects

Source : file DocsValidator.js at line 34

Constructor

new DocsValidator ( )

The constructor

Source : file DocsValidator.js at line 373

Public methods

validate ( classesDocs, variablesDocs )

Validate the documentation

Source : file DocsValidator.js at line 384

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 55

#currentClassDoc : String

The current class

Source : file DocsValidator.js at line 62

#errorsCounter : Number

A counter for the errors

Source : file DocsValidator.js at line 41

#rules : Object

The rules to apply

Source : file DocsValidator.js at line 69

#warningsCounter : Number

A counter for the warnings

Source : file DocsValidator.js at line 48

Private methods

#logFault ( rule, doc )

Display an error or warning on the screen

Source : file DocsValidator.js at line 289

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 353

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 314

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 339

Parameters

Name Type Description
methodOrPropertyDoc MethodOrPropertyDoc

The Doc object to validate

#validateVariableDoc ( variableDoc )

Validate a VariableDoc object

Source : file DocsValidator.js at line 328

Parameters

Name Type Description
variableDoc VariableDoc

The Doc object to validate