SyntaxChecker.h File Reference

Detailed Description

Syntax checking functions.

Author:
Sarah Keating
Include dependency graph for SyntaxChecker.h:
This graph shows which files directly or indirectly include this file:

Functions

int SyntaxChecker_hasExpectedXHTMLSyntax (XMLNode_t *node, SBMLNamespaces_t *sbmlns)
 Predicate indicating whether the argument XMLNode_t structure represents XHTML that conforms to the requirements of the SBML specification.
int SyntaxChecker_isValidSBMLSId (const char *sid)
 Predicate indicating whether the argument string conforms to the SBML type SId.
int SyntaxChecker_isValidUnitSId (const char *units)
 Predicate indicating whether the argument string conforms to the SBML type UnitSId.
int SyntaxChecker_isValidXMLID (const char *id)
 Predicate indicating whether the argument string conforms to the XML 1.0 type ID.

Function Documentation

int SyntaxChecker_hasExpectedXHTMLSyntax ( XMLNode_t *  node,
SBMLNamespaces_t *  sbmlns 
)

Predicate indicating whether the argument XMLNode_t structure represents XHTML that conforms to the requirements of the SBML specification.

Parameters:
xhtmlthe XMLNode_t structure to be checked for conformance.
sbmlnsthe SBMLNamespaces_t structure associated with the object.
Returns:
true (non-zero) if the XMLNode_t structure conforms, false (0) otherwise.
Note:
the optional SBMLNamespaces_t argument can be used to check for the declaration of the XHTML namespace at the top-level within an SBMLDocument.
int SyntaxChecker_isValidSBMLSId ( const char *  sid)

Predicate indicating whether the argument string conforms to the SBML type SId.

Parameters:
sidstring to be checked for conformance
Returns:
true (non-zero) if the string conforms to type SId, false (0) otherwise.
Note:
The literal representation of SBML type SId consists of strings of characters restricted to:
  • letter ::= 'a'..'z','A'..'Z'
  • digit ::= '0'..'9'
  • idChar ::= letter | digit | '_'
  • SId ::= ( letter | '_' ) idChar*
int SyntaxChecker_isValidUnitSId ( const char *  units)

Predicate indicating whether the argument string conforms to the SBML type UnitSId.

Parameters:
unitsstring to be checked for conformance
Returns:
true (non-zero) if the string conforms to type UnitSId, false (0) otherwise.
Note:
The literal representation of SBML type UniySId consists of strings of characters restricted to:
  • letter ::= 'a'..'z','A'..'Z'
  • digit ::= '0'..'9'
  • idChar ::= letter | digit | '_'
  • UnitSId ::= ( letter | '_' ) idChar*
int SyntaxChecker_isValidXMLID ( const char *  id)

Predicate indicating whether the argument string conforms to the XML 1.0 type ID.

Parameters:
idstring to be checked for conformance
Returns:
true (non-zero) if the string conforms to type ID, false (0) otherwise.
Note:
The literal representation of XML 1.0 type ID consists of strings of characters restricted to:
  • NCNameChar ::= letter | digit | '.' | '-' | '_' | ':' | CombiningChar | Extender
  • ID ::= ( letter | '_' | ':' ) NCNameChar*
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines