OMNeT++ NEDXML 6.1
Discrete Event Simulation Library
NedSyntaxValidator Class Reference

Description

Performs structural validation of components.

It assumes that the tree already passed DTD validation. Every compound module and other component is viewed in isolation: syntax validation does NOT process imports or examines validity of references to other module types, channel types, etc.

Inherits NedValidatorBase.

Public Member Functions

 NedSyntaxValidator (ErrorStore *e)
 
virtual ~NedSyntaxValidator ()
 

Protected Member Functions

void checkExpressionAttributes (ASTNode *node, const char *attrs[], bool optional[], int n)
 
void checkEnumAttribute (ASTNode *node, const char *attr, const char *values[], int n)
 
void checkDottedNameAttribute (ASTNode *node, const char *attr, bool wildcardsAllowed)
 
void checkPropertyNameAttribute (ASTNode *node, const char *attr)
 
void checkPropertyIndexAttribute (ASTNode *node, const char *attr)
 
bool isWithinSubcomponent (ASTNode *node)
 
bool isWithinInnerType (ASTNode *node)
 
Validator methods
virtual void validateElement (FilesElement *node) override
 
virtual void validateElement (NedFileElement *node) override
 
virtual void validateElement (CommentElement *node) override
 
virtual void validateElement (PackageElement *node) override
 
virtual void validateElement (ImportElement *node) override
 
virtual void validateElement (PropertyDeclElement *node) override
 
virtual void validateElement (ExtendsElement *node) override
 
virtual void validateElement (InterfaceNameElement *node) override
 
virtual void validateElement (SimpleModuleElement *node) override
 
virtual void validateElement (ModuleInterfaceElement *node) override
 
virtual void validateElement (CompoundModuleElement *node) override
 
virtual void validateElement (ChannelInterfaceElement *node) override
 
virtual void validateElement (ChannelElement *node) override
 
virtual void validateElement (ParametersElement *node) override
 
virtual void validateElement (ParamElement *node) override
 
virtual void validateElement (PropertyElement *node) override
 
virtual void validateElement (PropertyKeyElement *node) override
 
virtual void validateElement (GatesElement *node) override
 
virtual void validateElement (GateElement *node) override
 
virtual void validateElement (TypesElement *node) override
 
virtual void validateElement (SubmodulesElement *node) override
 
virtual void validateElement (SubmoduleElement *node) override
 
virtual void validateElement (ConnectionsElement *node) override
 
virtual void validateElement (ConnectionElement *node) override
 
virtual void validateElement (ConnectionGroupElement *node) override
 
virtual void validateElement (LoopElement *node) override
 
virtual void validateElement (ConditionElement *node) override
 
virtual void validateElement (LiteralElement *node) override
 
virtual void validateElement (UnknownElement *node) override
 

Constructor & Destructor Documentation

◆ NedSyntaxValidator()

NedSyntaxValidator ( ErrorStore e)
inline

Constructor.

◆ ~NedSyntaxValidator()

virtual ~NedSyntaxValidator ( )
inlinevirtual

Destructor.

Member Function Documentation

◆ checkExpressionAttributes()

void checkExpressionAttributes ( ASTNode node,
const char *  attrs[],
bool  optional[],
int  n 
)
protected

◆ checkEnumAttribute()

void checkEnumAttribute ( ASTNode node,
const char *  attr,
const char *  values[],
int  n 
)
protected

◆ checkDottedNameAttribute()

void checkDottedNameAttribute ( ASTNode node,
const char *  attr,
bool  wildcardsAllowed 
)
protected

◆ checkPropertyNameAttribute()

void checkPropertyNameAttribute ( ASTNode node,
const char *  attr 
)
protected

◆ checkPropertyIndexAttribute()

void checkPropertyIndexAttribute ( ASTNode node,
const char *  attr 
)
protected

◆ isWithinSubcomponent()

bool isWithinSubcomponent ( ASTNode node)
protected

◆ isWithinInnerType()

bool isWithinInnerType ( ASTNode node)
protected

◆ validateElement() [1/29]

virtual void validateElement ( FilesElement *  node)
overrideprotectedvirtual

◆ validateElement() [2/29]

virtual void validateElement ( NedFileElement *  node)
overrideprotectedvirtual

◆ validateElement() [3/29]

virtual void validateElement ( CommentElement *  node)
overrideprotectedvirtual

◆ validateElement() [4/29]

virtual void validateElement ( PackageElement *  node)
overrideprotectedvirtual

◆ validateElement() [5/29]

virtual void validateElement ( ImportElement *  node)
overrideprotectedvirtual

◆ validateElement() [6/29]

virtual void validateElement ( PropertyDeclElement *  node)
overrideprotectedvirtual

◆ validateElement() [7/29]

virtual void validateElement ( ExtendsElement *  node)
overrideprotectedvirtual

◆ validateElement() [8/29]

virtual void validateElement ( InterfaceNameElement *  node)
overrideprotectedvirtual

◆ validateElement() [9/29]

virtual void validateElement ( SimpleModuleElement *  node)
overrideprotectedvirtual

◆ validateElement() [10/29]

virtual void validateElement ( ModuleInterfaceElement *  node)
overrideprotectedvirtual

◆ validateElement() [11/29]

virtual void validateElement ( CompoundModuleElement *  node)
overrideprotectedvirtual

◆ validateElement() [12/29]

virtual void validateElement ( ChannelInterfaceElement *  node)
overrideprotectedvirtual

◆ validateElement() [13/29]

virtual void validateElement ( ChannelElement *  node)
overrideprotectedvirtual

◆ validateElement() [14/29]

virtual void validateElement ( ParametersElement *  node)
overrideprotectedvirtual

◆ validateElement() [15/29]

virtual void validateElement ( ParamElement *  node)
overrideprotectedvirtual

◆ validateElement() [16/29]

virtual void validateElement ( PropertyElement *  node)
overrideprotectedvirtual

◆ validateElement() [17/29]

virtual void validateElement ( PropertyKeyElement *  node)
overrideprotectedvirtual

◆ validateElement() [18/29]

virtual void validateElement ( GatesElement *  node)
overrideprotectedvirtual

◆ validateElement() [19/29]

virtual void validateElement ( GateElement *  node)
overrideprotectedvirtual

◆ validateElement() [20/29]

virtual void validateElement ( TypesElement *  node)
overrideprotectedvirtual

◆ validateElement() [21/29]

virtual void validateElement ( SubmodulesElement *  node)
overrideprotectedvirtual

◆ validateElement() [22/29]

virtual void validateElement ( SubmoduleElement *  node)
overrideprotectedvirtual

◆ validateElement() [23/29]

virtual void validateElement ( ConnectionsElement *  node)
overrideprotectedvirtual

◆ validateElement() [24/29]

virtual void validateElement ( ConnectionElement *  node)
overrideprotectedvirtual

◆ validateElement() [25/29]

virtual void validateElement ( ConnectionGroupElement *  node)
overrideprotectedvirtual

◆ validateElement() [26/29]

virtual void validateElement ( LoopElement *  node)
overrideprotectedvirtual

◆ validateElement() [27/29]

virtual void validateElement ( ConditionElement *  node)
overrideprotectedvirtual

◆ validateElement() [28/29]

virtual void validateElement ( LiteralElement *  node)
overrideprotectedvirtual

◆ validateElement() [29/29]

virtual void validateElement ( UnknownElement *  node)
overrideprotectedvirtual

The documentation for this class was generated from the following file: