API Docs for: 0.0.1
Show:

CAAMLParser Class

Extends XMLParser
Module: niviz

CAAML file parser.

Constructor

CAAMLParser

()

Methods

$

(
  • query
  • [node]
)
Element

Inherited from XMLParser but overwritten in lib/parsers/xml.js:95

Get the node with a certain tag.

Parameters:

Returns:

_parse

() protected
This method needs to be implemented by all children of class Parser. Parse the complete document and return the result.

Returns:

end

() chainable

Inherited from Parser: lib/parser.js:176

This method must be called by the parsing methods when the parsing has finished.

parse

(
  • [callback]
)
Object

Inherited from Parser but overwritten in lib/parser.js:130

Starts the parsing process; in sync mode this method blocks until the parsing has finished, otherwise it should return immediately! If given a callback, it must be bound to the end and error events.

Parameters:

Returns:

Object: The parse result.

parse_custom_data

() private

parse_general_data

() private

parse_xml

() private

Inherited from XMLParser but overwritten in lib/parsers/caaml.js:429

Main CAAML parser routine.

text

(
  • query
  • node
)
String

Parameters:

Returns:

String: The text content the node

verify

() chainable

Inherited from Parser: lib/parser.js:165

Verify that all syntactic and semantic requirements are met by the parsed entity.

Properties

add_feature

Unknown private

data

Object

Inherited from Parser: lib/parser.js:50

dates

Array static

A list of date/time formats recognized by the parser.

features

Object static

Conversion table for Profile Features.

parse_caaml_version

Unknown private

parse_date

Unknown private

parse_feature

Unknown private

parse_gml_id

Unknown private

parse_meta_data

Unknown private

parse_name

Unknown private

parse_ntuple

Unknown private

parse_position

Unknown private

result

Object

Inherited from Parser: lib/parser.js:56

station

Station

The snow station instance; the instance should be populated by the parsing methods and represents the parse result.