public final class ImplementationGuideComplianceChecker
extends java.lang.Object
Constructor and Description |
---|
ImplementationGuideComplianceChecker() |
Modifier and Type | Method and Description |
---|---|
static boolean |
validateArchive(java.lang.String reqIFPath,
java.util.function.Consumer<ValidationMessage> logMessage)
Validates the ReqIF archive specified by
reqIFPath against the rules documented in the Implementation Guide. |
static void |
validateAttributeDefinitionIsEditable(ReqIFFile reqIFFile,
java.util.function.Consumer<ValidationMessage> validationMessageConsumer)
Validates a ReqIF file for appropriate usage of the
isEditable an an AttributeDefinitionEnumeration |
static boolean |
validateFile(java.lang.String reqIFPath,
java.util.function.Consumer<ValidationMessage> logMessage)
Validates the ReqIF file specified by
reqIFPath against the rules documented in the Implementation Guide. |
static void |
validateSpecRelationsInRelationGroups(ReqIFFile reqIFFile,
java.util.function.Consumer<ValidationMessage> validationMessageConsumer)
Validates a ReqIF file for appropriate assignment of SpecRelations to RelationGroups when
the
SpecRelation source and target SpecObject are in a different Specification . |
public ImplementationGuideComplianceChecker()
public static boolean validateFile(java.lang.String reqIFPath, java.util.function.Consumer<ValidationMessage> logMessage) throws java.io.IOException
reqIFPath
against the rules documented in the Implementation Guide.reqIFPath
- the full path to the ReqIF file, not nulllogMessage
- a consumer of ValidationMessage
, not nullBoolean
flag indicating whether one or more validation errors occurredjava.io.IOException
- if the ReqIF file at path reqIFPath could not be loadedpublic static boolean validateArchive(java.lang.String reqIFPath, java.util.function.Consumer<ValidationMessage> logMessage)
reqIFPath
against the rules documented in the Implementation Guide.reqIFPath
- the full path to the ReqIF archive, not nulllogMessage
- a consumer of ValidationMessage
, not nullBoolean
flag indicating whether one or more validation errors occurredpublic static void validateSpecRelationsInRelationGroups(ReqIFFile reqIFFile, java.util.function.Consumer<ValidationMessage> validationMessageConsumer)
SpecRelation
source and target SpecObject
are in a different Specification
.reqIFFile
- reference to the ReqIFFile
, not nullvalidationMessageConsumer
- reference to the ValidationMessage
consumer to receive validation messages, not nullpublic static void validateAttributeDefinitionIsEditable(ReqIFFile reqIFFile, java.util.function.Consumer<ValidationMessage> validationMessageConsumer)
isEditable
an an AttributeDefinitionEnumeration
reqIFFile
- reference to the ReqIFFile
, not nullvalidationMessageConsumer
- reference to the ValidationMessage
consumer to receive validation messages, non null