NEDSyntaxValidator Class Reference
[Validation]

Performs structural validation of components. More...

#include <nedsyntaxvalidator.h>

Inheritance diagram for NEDSyntaxValidator:
NEDValidatorBase

List of all members.

Public Member Functions

 NEDSyntaxValidator (bool parsedExpr, NEDErrorStore *e)
virtual ~NEDSyntaxValidator ()

Protected Member Functions

void checkExpressionAttributes (NEDElement *node, const char *attrs[], bool optional[], int n)
void checkDottedNameAttribute (NEDElement *node, const char *attr, bool wildcardsAllowed)
void checkPropertyNameAttribute (NEDElement *node, const char *attr)
void checkPropertyIndexAttribute (NEDElement *node, const char *attr)
bool isWithinSubcomponent (NEDElement *node)
bool isWithinInnerType (NEDElement *node)
Validator methods

virtual void validateElement (FilesElement *node)
virtual void validateElement (NedFileElement *node)
virtual void validateElement (CommentElement *node)
virtual void validateElement (PackageElement *node)
virtual void validateElement (ImportElement *node)
virtual void validateElement (PropertyDeclElement *node)
virtual void validateElement (ExtendsElement *node)
virtual void validateElement (InterfaceNameElement *node)
virtual void validateElement (SimpleModuleElement *node)
virtual void validateElement (ModuleInterfaceElement *node)
virtual void validateElement (CompoundModuleElement *node)
virtual void validateElement (ChannelInterfaceElement *node)
virtual void validateElement (ChannelElement *node)
virtual void validateElement (ParametersElement *node)
virtual void validateElement (ParamElement *node)
virtual void validateElement (PropertyElement *node)
virtual void validateElement (PropertyKeyElement *node)
virtual void validateElement (GatesElement *node)
virtual void validateElement (GateElement *node)
virtual void validateElement (TypesElement *node)
virtual void validateElement (SubmodulesElement *node)
virtual void validateElement (SubmoduleElement *node)
virtual void validateElement (ConnectionsElement *node)
virtual void validateElement (ConnectionElement *node)
virtual void validateElement (ConnectionGroupElement *node)
virtual void validateElement (LoopElement *node)
virtual void validateElement (ConditionElement *node)
virtual void validateElement (ExpressionElement *node)
virtual void validateElement (OperatorElement *node)
virtual void validateElement (FunctionElement *node)
virtual void validateElement (IdentElement *node)
virtual void validateElement (LiteralElement *node)
virtual void validateElement (MsgFileElement *node)
virtual void validateElement (NamespaceElement *node)
virtual void validateElement (CplusplusElement *node)
virtual void validateElement (StructDeclElement *node)
virtual void validateElement (ClassDeclElement *node)
virtual void validateElement (MessageDeclElement *node)
virtual void validateElement (PacketDeclElement *node)
virtual void validateElement (EnumDeclElement *node)
virtual void validateElement (EnumElement *node)
virtual void validateElement (EnumFieldsElement *node)
virtual void validateElement (EnumFieldElement *node)
virtual void validateElement (MessageElement *node)
virtual void validateElement (PacketElement *node)
virtual void validateElement (ClassElement *node)
virtual void validateElement (StructElement *node)
virtual void validateElement (FieldElement *node)
virtual void validateElement (UnknownElement *node)

Protected Attributes

bool parsedExpressions

Detailed Description

Performs structural validation of components.

Assumes 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.


Constructor & Destructor Documentation

NEDSyntaxValidator::NEDSyntaxValidator ( bool  parsedExpr,
NEDErrorStore e 
) [inline]

Constructor.

Bool argument specifies if the validator should expect parsed or unparsed expressions in the tree (This affects the validation process.)

virtual NEDSyntaxValidator::~NEDSyntaxValidator (  )  [inline, virtual]

Destructor.


Member Function Documentation

void NEDSyntaxValidator::checkDottedNameAttribute ( NEDElement node,
const char *  attr,
bool  wildcardsAllowed 
) [protected]
void NEDSyntaxValidator::checkExpressionAttributes ( NEDElement node,
const char *  attrs[],
bool  optional[],
int  n 
) [protected]
void NEDSyntaxValidator::checkPropertyIndexAttribute ( NEDElement node,
const char *  attr 
) [protected]
void NEDSyntaxValidator::checkPropertyNameAttribute ( NEDElement node,
const char *  attr 
) [protected]
bool NEDSyntaxValidator::isWithinInnerType ( NEDElement node  )  [protected]
bool NEDSyntaxValidator::isWithinSubcomponent ( NEDElement node  )  [protected]
virtual void NEDSyntaxValidator::validateElement ( UnknownElement node  )  [protected, virtual]

Implements NEDValidatorBase.

virtual void NEDSyntaxValidator::validateElement ( FieldElement node  )  [protected, virtual]

Implements NEDValidatorBase.

virtual void NEDSyntaxValidator::validateElement ( StructElement node  )  [protected, virtual]

Implements NEDValidatorBase.

virtual void NEDSyntaxValidator::validateElement ( ClassElement node  )  [protected, virtual]

Implements NEDValidatorBase.

virtual void NEDSyntaxValidator::validateElement ( PacketElement node  )  [protected, virtual]

Implements NEDValidatorBase.

virtual void NEDSyntaxValidator::validateElement ( MessageElement node  )  [protected, virtual]

Implements NEDValidatorBase.

virtual void NEDSyntaxValidator::validateElement ( EnumFieldElement node  )  [protected, virtual]

Implements NEDValidatorBase.

virtual void NEDSyntaxValidator::validateElement ( EnumFieldsElement node  )  [protected, virtual]

Implements NEDValidatorBase.

virtual void NEDSyntaxValidator::validateElement ( EnumElement node  )  [protected, virtual]

Implements NEDValidatorBase.

virtual void NEDSyntaxValidator::validateElement ( EnumDeclElement node  )  [protected, virtual]

Implements NEDValidatorBase.

virtual void NEDSyntaxValidator::validateElement ( PacketDeclElement node  )  [protected, virtual]

Implements NEDValidatorBase.

virtual void NEDSyntaxValidator::validateElement ( MessageDeclElement node  )  [protected, virtual]

Implements NEDValidatorBase.

virtual void NEDSyntaxValidator::validateElement ( ClassDeclElement node  )  [protected, virtual]

Implements NEDValidatorBase.

virtual void NEDSyntaxValidator::validateElement ( StructDeclElement node  )  [protected, virtual]

Implements NEDValidatorBase.

virtual void NEDSyntaxValidator::validateElement ( CplusplusElement node  )  [protected, virtual]

Implements NEDValidatorBase.

virtual void NEDSyntaxValidator::validateElement ( NamespaceElement node  )  [protected, virtual]

Implements NEDValidatorBase.

virtual void NEDSyntaxValidator::validateElement ( MsgFileElement node  )  [protected, virtual]

Implements NEDValidatorBase.

virtual void NEDSyntaxValidator::validateElement ( LiteralElement node  )  [protected, virtual]

Implements NEDValidatorBase.

virtual void NEDSyntaxValidator::validateElement ( IdentElement node  )  [protected, virtual]

Implements NEDValidatorBase.

virtual void NEDSyntaxValidator::validateElement ( FunctionElement node  )  [protected, virtual]

Implements NEDValidatorBase.

virtual void NEDSyntaxValidator::validateElement ( OperatorElement node  )  [protected, virtual]

Implements NEDValidatorBase.

virtual void NEDSyntaxValidator::validateElement ( ExpressionElement node  )  [protected, virtual]

Implements NEDValidatorBase.

virtual void NEDSyntaxValidator::validateElement ( ConditionElement node  )  [protected, virtual]

Implements NEDValidatorBase.

virtual void NEDSyntaxValidator::validateElement ( LoopElement node  )  [protected, virtual]

Implements NEDValidatorBase.

virtual void NEDSyntaxValidator::validateElement ( ConnectionGroupElement node  )  [protected, virtual]

Implements NEDValidatorBase.

virtual void NEDSyntaxValidator::validateElement ( ConnectionElement node  )  [protected, virtual]

Implements NEDValidatorBase.

virtual void NEDSyntaxValidator::validateElement ( ConnectionsElement node  )  [protected, virtual]

Implements NEDValidatorBase.

virtual void NEDSyntaxValidator::validateElement ( SubmoduleElement node  )  [protected, virtual]

Implements NEDValidatorBase.

virtual void NEDSyntaxValidator::validateElement ( SubmodulesElement node  )  [protected, virtual]

Implements NEDValidatorBase.

virtual void NEDSyntaxValidator::validateElement ( TypesElement node  )  [protected, virtual]

Implements NEDValidatorBase.

virtual void NEDSyntaxValidator::validateElement ( GateElement node  )  [protected, virtual]

Implements NEDValidatorBase.

virtual void NEDSyntaxValidator::validateElement ( GatesElement node  )  [protected, virtual]

Implements NEDValidatorBase.

virtual void NEDSyntaxValidator::validateElement ( PropertyKeyElement node  )  [protected, virtual]

Implements NEDValidatorBase.

virtual void NEDSyntaxValidator::validateElement ( PropertyElement node  )  [protected, virtual]

Implements NEDValidatorBase.

virtual void NEDSyntaxValidator::validateElement ( ParamElement node  )  [protected, virtual]

Implements NEDValidatorBase.

virtual void NEDSyntaxValidator::validateElement ( ParametersElement node  )  [protected, virtual]

Implements NEDValidatorBase.

virtual void NEDSyntaxValidator::validateElement ( ChannelElement node  )  [protected, virtual]

Implements NEDValidatorBase.

virtual void NEDSyntaxValidator::validateElement ( ChannelInterfaceElement node  )  [protected, virtual]

Implements NEDValidatorBase.

virtual void NEDSyntaxValidator::validateElement ( CompoundModuleElement node  )  [protected, virtual]

Implements NEDValidatorBase.

virtual void NEDSyntaxValidator::validateElement ( ModuleInterfaceElement node  )  [protected, virtual]

Implements NEDValidatorBase.

virtual void NEDSyntaxValidator::validateElement ( SimpleModuleElement node  )  [protected, virtual]

Implements NEDValidatorBase.

virtual void NEDSyntaxValidator::validateElement ( InterfaceNameElement node  )  [protected, virtual]

Implements NEDValidatorBase.

virtual void NEDSyntaxValidator::validateElement ( ExtendsElement node  )  [protected, virtual]

Implements NEDValidatorBase.

virtual void NEDSyntaxValidator::validateElement ( PropertyDeclElement node  )  [protected, virtual]

Implements NEDValidatorBase.

virtual void NEDSyntaxValidator::validateElement ( ImportElement node  )  [protected, virtual]

Implements NEDValidatorBase.

virtual void NEDSyntaxValidator::validateElement ( PackageElement node  )  [protected, virtual]

Implements NEDValidatorBase.

virtual void NEDSyntaxValidator::validateElement ( CommentElement node  )  [protected, virtual]

Implements NEDValidatorBase.

virtual void NEDSyntaxValidator::validateElement ( NedFileElement node  )  [protected, virtual]

Implements NEDValidatorBase.

virtual void NEDSyntaxValidator::validateElement ( FilesElement node  )  [protected, virtual]

Implements NEDValidatorBase.


Member Data Documentation


The documentation for this class was generated from the following file:
Generated on Mon Jul 14 12:57:27 2014 for OMNeT++ NEDXML by  doxygen 1.6.3