Class: TypeParser

@citation-js/core.plugins.input.util.TypeParser(data)

new TypeParser(data)

Parameters:
Name Type Description
data module:@citation-js/core.plugins.input~typeParser
Source:

Members

dataType :module:@citation-js/core.plugins.input~dataType

Type:
Source:

extends :module:@citation-js/core.plugins.input~format

Type:
Source:

predicate :module:@citation-js/core.plugins.input~predicate

Type:
Source:

(protected) validDataTypes :Array.<module:@citation-js/core.plugins.input~dataType>

Type:
Source:

Methods

(protected) getCombinedPredicate() → {module:@citation-js/core.plugins.input~predicate}

Source:
Returns:
Type
module:@citation-js/core.plugins.input~predicate

(protected) getDataType() → {module:@citation-js/core.plugins.input~dataType}

Source:
Returns:
Type
module:@citation-js/core.plugins.input~dataType

(protected) parseElementConstraint() → {Array.<module:@citation-js/core.plugins.input~predicate>}

Source:
Returns:
Type
Array.<module:@citation-js/core.plugins.input~predicate>

(protected) parsePredicate() → {Array.<module:@citation-js/core.plugins.input~predicate>}

Source:
Returns:
Type
Array.<module:@citation-js/core.plugins.input~predicate>

(protected) parsePropertyConstraint() → {Array.<module:@citation-js/core.plugins.input~predicate>}

Source:
Returns:
Type
Array.<module:@citation-js/core.plugins.input~predicate>

(protected) parseTokenList() → {Array.<module:@citation-js/core.plugins.input~predicate>}

Source:
Returns:
Type
Array.<module:@citation-js/core.plugins.input~predicate>

validate()

Source:
Throws:

if typeParser is not valid

Type
TypeError | RangeError

(protected) validateDataType()

Source:
Throws:

if dataType is not valid

Type
RangeError

(protected) validateElementConstraint()

Source:
Throws:

if elementConstraint is not valid

Type
TypeError

(protected) validateExtends()

Source:
Throws:

if extends is not valid

Type
TypeError

(protected) validateParseType()

Source:
Throws:

if predicate is not valid

Type
TypeError

(protected) validatePropertyConstraint()

Source:
Throws:

if propertyConstraint is not valid

Type
TypeError

(protected) validateTokenList()

Source:
Throws:

if predicate is not valid

Type
TypeError