Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members   File Members  

Validation.h

Go to the documentation of this file.
00001 // Validation.h: Validate the content and structure of an AG
00002 // Author: Steven Bird
00003 // Copyright (C) 2002 Linguistic Data Consortium, U Penn.
00004 // Web: http://www.ldc.upenn.edu/; Email: ldc@ldc.upenn.edu
00005 // For license information, see the file `LICENSE' included
00006 // with the distribution.
00007 
00008 #ifndef Validate_h
00009 #define Validate_h
00010 
00011 #include <string>
00012 #include <iostream>
00013 
00014 #include "AGTypes.h"
00015 #include "AG.h"
00016 #include "Anchor.h"
00017 #include "Annotation.h"
00018 #include "AGException.h"
00019 #include "Identifiers.h"
00020 
00021 class Validation {
00022 public:
00023 
00030 static bool checkAnchorOffsetTotal(AG *ag, AnnotationType type);
00031 
00039 static bool checkAnchorOffsetBounded(AG *ag, AnnotationType type);
00040 
00048 static bool checkFeatureExists(AG *ag, AnnotationType type, FeatureName featureName);
00049 
00058 static bool checkFeatureIsAnnotationId(AG *ag, AnnotationType type, FeatureName featureName);
00059 
00066 static bool checkLinear(AG *ag, AnnotationType type);
00067 
00074 static bool checkConnected(AG *ag, AnnotationType type);
00075 
00084 static bool checkCoextensive(AG *ag, AnnotationType type1, AnnotationType type2);
00085 
00095 static bool checkSpan(AG *ag, AnnotationType spanType, AnnotationType spannedType);
00096 
00097 };
00098 
00099 #endif

Generated at Wed Jul 3 14:54:05 2002 for Annotation Graph API by doxygen1.2.7 written by Dimitri van Heesch, © 1997-2001