21 #ifndef __OMNETPP_NEDXML_NEDSYNTAXVALIDATOR_H
22 #define __OMNETPP_NEDXML_NEDSYNTAXVALIDATOR_H
24 #include "nedvalidator.h"
43 void checkExpressionAttributes(
ASTNode *node,
const char *attrs[],
bool optional[],
int n);
44 void checkEnumAttribute(
ASTNode *node,
const char *attr,
const char *values[],
int n);
45 void checkDottedNameAttribute(
ASTNode *node,
const char *attr,
bool wildcardsAllowed);
46 void checkPropertyNameAttribute(
ASTNode *node,
const char *attr);
47 void checkPropertyIndexAttribute(
ASTNode *node,
const char *attr);
50 bool isWithinSubcomponent(
ASTNode *node);
53 bool isWithinInnerType(
ASTNode *node);
69 virtual void validateElement(FilesElement *node)
override;
70 virtual void validateElement(NedFileElement *node)
override;
71 virtual void validateElement(CommentElement *node)
override;
72 virtual void validateElement(PackageElement *node)
override;
73 virtual void validateElement(ImportElement *node)
override;
74 virtual void validateElement(PropertyDeclElement *node)
override;
75 virtual void validateElement(ExtendsElement *node)
override;
76 virtual void validateElement(InterfaceNameElement *node)
override;
77 virtual void validateElement(SimpleModuleElement *node)
override;
78 virtual void validateElement(ModuleInterfaceElement *node)
override;
79 virtual void validateElement(CompoundModuleElement *node)
override;
80 virtual void validateElement(ChannelInterfaceElement *node)
override;
81 virtual void validateElement(ChannelElement *node)
override;
82 virtual void validateElement(ParametersElement *node)
override;
83 virtual void validateElement(ParamElement *node)
override;
84 virtual void validateElement(PropertyElement *node)
override;
85 virtual void validateElement(PropertyKeyElement *node)
override;
86 virtual void validateElement(GatesElement *node)
override;
87 virtual void validateElement(GateElement *node)
override;
88 virtual void validateElement(TypesElement *node)
override;
89 virtual void validateElement(SubmodulesElement *node)
override;
90 virtual void validateElement(SubmoduleElement *node)
override;
91 virtual void validateElement(ConnectionsElement *node)
override;
92 virtual void validateElement(ConnectionElement *node)
override;
93 virtual void validateElement(ConnectionGroupElement *node)
override;
94 virtual void validateElement(LoopElement *node)
override;
95 virtual void validateElement(ConditionElement *node)
override;
96 virtual void validateElement(LiteralElement *node)
override;
97 virtual void validateElement(UnknownElement *node)
override;