35 #ifndef OPENMS_FORMAT_VALIDATORS_SEMANTICVALIDATOR_H 36 #define OPENMS_FORMAT_VALIDATORS_SEMANTICVALIDATOR_H 46 class ControlledVocabulary;
99 bool locateTerm(
const String & path,
const CVTerm & parsed_term)
const;
102 void setTag(
const String & tag);
105 void setAccessionAttribute(
const String & accession);
108 void setNameAttribute(
const String & name);
111 void setValueAttribute(
const String & value);
121 void setCheckTermValueTypes(
bool check);
130 void setCheckUnits(
bool check);
133 void setUnitAccessionAttribute(
const String & accession);
136 void setUnitNameAttribute(
const String & name);
141 void startElement(
const XMLCh *
const ,
const XMLCh *
const ,
const XMLCh *
const qname,
const xercesc::Attributes & attributes);
144 void endElement(
const XMLCh *
const ,
const XMLCh *
const ,
const XMLCh *
const qname);
147 void characters(
const XMLCh *
const chars,
const XMLSize_t );
150 virtual String getPath_(
UInt remove_from_end = 0)
const;
153 virtual void getCVTerm_(
const xercesc::Attributes & attributes,
CVTerm & parsed_term);
160 virtual void handleTerm_(
const String & path,
const CVTerm & parsed_term);
215 #endif // OPENMS_FORMAT_VALIDATORS_SEMANTICVALIDATOR_H String accession
Definition: SemanticValidator.h:75
String unit_name
Definition: SemanticValidator.h:81
A more convenient string class.
Definition: String.h:57
const ControlledVocabulary & cv_
Reference to the CVs.
Definition: SemanticValidator.h:166
bool has_value
Definition: SemanticValidator.h:78
String value_att_
Definition: SemanticValidator.h:191
unsigned int UInt
Unsigned integer type.
Definition: Types.h:95
StringList errors_
Validation errors.
Definition: SemanticValidator.h:169
bool check_units_
Definition: SemanticValidator.h:195
bool check_term_value_types_
Definition: SemanticValidator.h:194
Base class for XML handlers.
Definition: XMLHandler.h:110
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47
String unit_accession
Definition: SemanticValidator.h:79
Representation of a controlled vocabulary.
Definition: ControlledVocabulary.h:55
bool has_unit_accession
Definition: SemanticValidator.h:80
Representation of a parsed CV term.
Definition: SemanticValidator.h:73
String accession_att_
Definition: SemanticValidator.h:189
String unit_name_att_
Definition: SemanticValidator.h:193
String name
Definition: SemanticValidator.h:76
String name_att_
Definition: SemanticValidator.h:190
Map< String, Map< String, Map< String, UInt > > > fulfilled_
Definition: SemanticValidator.h:183
String cv_tag_
Definition: SemanticValidator.h:188
const CVMappings & mapping_
Reference to the mappings.
Definition: SemanticValidator.h:163
std::vector< String > StringList
Vector of String.
Definition: ListUtils.h:74
String unit_accession_att_
Definition: SemanticValidator.h:192
String value
Definition: SemanticValidator.h:77
Map< String, std::vector< CVMappingRule > > rules_
Rules (location => rule)
Definition: SemanticValidator.h:178
Base class for loading/storing XML files that have a handler derived from XMLHandler.
Definition: XMLFile.h:49
bool has_unit_name
Definition: SemanticValidator.h:82
Semantically validates XML files using CVMappings and a ControlledVocabulary.
Definition: SemanticValidator.h:56
Representation of controlled vocabulary mapping rules (for PSI formats)
Definition: CVMappings.h:57
Map class based on the STL map (containing several convenience functions)
Definition: Map.h:51
StringList open_tags_
List of open tags.
Definition: SemanticValidator.h:175
bool validate(const std::vector< std::string > &file_names)
Validates the given files against the XML schema (if available)
StringList warnings_
Validation warnings.
Definition: SemanticValidator.h:172