COSMOS ${releaseVersion} resource-modeling Project
Internal API Specification

org.eclipse.cosmos.rm.validation.internal.core
Class AbstractSMLValidator

java.lang.Object
  extended by org.eclipse.cosmos.rm.validation.internal.core.AbstractValidator
      extended by org.eclipse.cosmos.rm.validation.internal.core.AbstractSMLValidator
All Implemented Interfaces:
ISMLValidator, IValidator
Direct Known Subclasses:
AcyclicValidator, IdentityConstraintValidator, SchematronValidator, SchemaValidator, TargetValidator

public abstract class AbstractSMLValidator
extends AbstractValidator
implements ISMLValidator

This is an abstract implementation of ISMLValidation.


Field Summary
 
Fields inherited from interface org.eclipse.cosmos.rm.validation.internal.core.ISMLValidator
SCOPE_ACYCLIC, SCOPE_GRP_ALL, SCOPE_GRP_ID_CONSTRAINTS, SCOPE_GRP_REF_CONSTRAINTS, SCOPE_KEY, SCOPE_KEY_REF, SCOPE_TARGET_ELEMENT, SCOPE_TARGET_TYPE, SCOPE_UNIQUE
 
Fields inherited from interface org.eclipse.cosmos.rm.validation.internal.core.IValidator
ATTRIBUTE_ENV, ATTRIBUTE_FAST_FAIL_POLICY, ATTRIBUTE_FILE_OUTPUT, ATTRIBUTE_INPUT_TYPE, ATTRIBUTE_INSTANCE, ATTRIBUTE_OUTPUT, ATTRIBUTE_SCHEMATRON_SCHEMA, ATTRIBUTE_SML_IF_SCHEMA, ATTRIBUTE_STRUCTURED_OUTPUT, ATTRIBUTE_VALIDATION_SCHEMATRON, ATTRIBUTE_VALIDATION_SML, ATTRIBUTE_VALIDATION_XML, VALUE_ENV_ECLIPSE, VALUE_ENV_STANDALONE, VALUE_SML_IF, VALUE_SML_UNIT
 
Constructor Summary
AbstractSMLValidator()
           
 
Method Summary
 java.lang.String[] getScope()
          Retrieve the scope of the validation.
 void setScope(java.lang.String[] scope)
          Set the scope for this validation.
protected  boolean shouldAbortOnError()
           
 
Methods inherited from class org.eclipse.cosmos.rm.validation.internal.core.AbstractValidator
addValidationListener, fireValidationEventOccurred, getValidationOutput, initialize, setValidationOutput
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.cosmos.rm.validation.internal.core.IValidator
addValidationListener, initialize, validate
 

Constructor Detail

AbstractSMLValidator

public AbstractSMLValidator()
Method Detail

getScope

public java.lang.String[] getScope()
Description copied from interface: ISMLValidator
Retrieve the scope of the validation. See the SCOPE_* constants defined.

Specified by:
getScope in interface ISMLValidator
Returns:
The scope of the validation class
See Also:
ISMLValidator.getScope()

setScope

public void setScope(java.lang.String[] scope)
Description copied from interface: ISMLValidator
Set the scope for this validation. See the SCOPE_* constants defined.

Specified by:
setScope in interface ISMLValidator
Parameters:
scope - The scope of the validation
See Also:
ISMLValidator.setScope(java.lang.String[])

shouldAbortOnError

protected boolean shouldAbortOnError()

COSMOS ${releaseVersion} resource-modeling Project
Internal API Specification