public class ValidationErrorCollector extends AbstractXmiNodeVisitor implements XmiNodeVisitor
classifierMap, modelSupport, nodeMap, references, xmiRoot| Constructor and Description |
|---|
ValidationErrorCollector(XmiNode root) |
| Modifier and Type | Method and Description |
|---|---|
void |
addEventListener(ValidationEventListener eventListener) |
int |
getErrorCount() |
int |
getErrorCount(ErrorCategory category) |
int |
getErrorCount(ErrorCode code) |
int |
getErrorCount(ErrorSeverity severity) |
List<ValidationError> |
getErrors() |
List<ValidationError> |
getErrors(ErrorCategory category) |
List<ValidationError> |
getErrors(ErrorCode code) |
List<ValidationError> |
getErrors(ErrorSeverity severity) |
boolean |
isValidateExternalReferences() |
void |
removeEventListener(ValidationEventListener eventListener) |
void |
setValidateExternalReferences(boolean validateExternalReferences) |
void |
validate()
Traverses the entire given graph ala.
|
void |
visit(XmiNode target,
XmiNode sourceXmiNode,
String sourceKey,
XmiNodeVisitorStatus status,
int level) |
findAttribute, findClassifier, findClassifierFromImportAdapter, isAbstract, isExternalReferenceElement, isInternalReferenceElement, isNotReferenceElement, isReferenceAttributepublic ValidationErrorCollector(XmiNode root)
public void validate()
public void addEventListener(ValidationEventListener eventListener)
public void removeEventListener(ValidationEventListener eventListener)
public void visit(XmiNode target, XmiNode sourceXmiNode, String sourceKey, XmiNodeVisitorStatus status, int level)
visit in interface XmiNodeVisitorpublic List<ValidationError> getErrors()
public int getErrorCount()
public List<ValidationError> getErrors(ErrorCode code)
public int getErrorCount(ErrorCode code)
public List<ValidationError> getErrors(ErrorCategory category)
public int getErrorCount(ErrorCategory category)
public List<ValidationError> getErrors(ErrorSeverity severity)
public int getErrorCount(ErrorSeverity severity)
public boolean isValidateExternalReferences()
public void setValidateExternalReferences(boolean validateExternalReferences)
Copyright © 2023. All rights reserved.