org.openxma.dsl.dom.validation
Class DomDslJavaValidator

java.lang.Object
  extended by org.eclipse.xtext.validation.AbstractInjectableValidator
      extended by org.eclipse.xtext.validation.AbstractDeclarativeValidator
          extended by org.openxma.dsl.core.validation.AbstractCoreDslJavaValidator
              extended by org.openxma.dsl.core.validation.CoreDslJavaValidator
                  extended by org.openxma.dsl.dom.validation.DomDslJavaValidator
All Implemented Interfaces:
org.eclipse.emf.ecore.EValidator, org.eclipse.xtext.validation.ValidationMessageAcceptor

public class DomDslJavaValidator
extends org.openxma.dsl.core.validation.CoreDslJavaValidator


Nested Class Summary
 
Nested classes/interfaces inherited from class org.eclipse.xtext.validation.AbstractDeclarativeValidator
org.eclipse.xtext.validation.AbstractDeclarativeValidator.State, org.eclipse.xtext.validation.AbstractDeclarativeValidator.StateAccess
 
Nested classes/interfaces inherited from interface org.eclipse.emf.ecore.EValidator
org.eclipse.emf.ecore.EValidator.Descriptor, org.eclipse.emf.ecore.EValidator.PatternMatcher, org.eclipse.emf.ecore.EValidator.Registry, org.eclipse.emf.ecore.EValidator.SubstitutionLabelProvider
 
Field Summary
static String INVALID_TYPE_NAME
           
static String MISSING_IDENTIFIER
           
static Set<String> RESERVED_KEYWORDS
           
static List<String> SUPPORTED_ID_TYPES
           
static List<String> SUPPORTED_VERSION_TYPES
           
 
Fields inherited from class org.openxma.dsl.core.validation.CoreDslJavaValidator
DEPRECATED_IMPORT_URI, MISSING_NAMESPACE
 
Fields inherited from class org.eclipse.xtext.validation.AbstractInjectableValidator
CURRENT_LANGUAGE_NAME
 
Fields inherited from interface org.eclipse.xtext.validation.ValidationMessageAcceptor
INSIGNIFICANT_INDEX
 
Fields inherited from interface org.eclipse.emf.ecore.EValidator
MARKER, RELATED_URIS_ATTRIBUTE, URI_ATTRIBUTE
 
Constructor Summary
DomDslJavaValidator()
           
 
Method Summary
 void checkAttributeTypes(ComplexType complexType)
           
 void checkCallableStatement(QueryOperation queryOperation)
           
 void checkDelegateOperationDataView(DelegateOperation delegateOperation)
           
 void checkDuplicateAttributes(DataView dataView)
           
 void checkDuplicateOperations(Operation theOperation)
           
 void checkDuplicateQueryOperations(QueryOperation theOperation)
           
 void checkEntity(Entity entity)
           
 void checkEntityManyAttributes(Attribute attribute)
           
 void checkFeatureName(Attribute feature)
           
 void checkIdentifierOrKeyAvailable(Dao dao)
           
 void checkIfAttributeIsUnique(Attribute attribute)
           
 void checkManyToMany(ManyToMany manyToMany)
           
 void checkMapper(Mapper mapper)
           
 void checkModelElement(org.openxma.dsl.core.model.ModelElement modelElement)
           
 void checkOneToOne(OneToOne oneToOne)
           
 void checkReference(Attribute attribute)
           
 void checkSameResourceWithEntity(Dao dao)
           
 void checkSuperTypeCycle(Entity entity)
           
 void checkType(QueryOperation queryOperation)
           
 void checkUnusedQueryParameter(QueryOperation queryOperation)
           
protected  List<org.eclipse.emf.ecore.EPackage> getEPackages()
           
 
Methods inherited from class org.openxma.dsl.core.validation.CoreDslJavaValidator
checkConstraintIsInactiveByDefaultFalse, checkDataTypeUnique, checkImport, checkNamespace, checkParameterCountIsValid, checkParameterTypeMatch, checkTypeDef, checkValidatorParameterCountIsValid, checkValidatorParameterTypeMatch, checkValidatorUnique
 
Methods inherited from class org.eclipse.xtext.validation.AbstractDeclarativeValidator
acceptError, acceptError, acceptInfo, acceptInfo, acceptWarning, acceptWarning, checkDone, createDiagnostic, createDiagnostic, error, error, error, error, error, error, error, getChain, getCheckMode, getContext, getCurrentMethod, getCurrentObject, getMessageAcceptor, guard, info, info, info, info, info, info, internalValidate, newInstance, setInjector, setMessageAcceptor, toDiagnosticSeverity, warning, warning, warning, warning, warning, warning, warning
 
Methods inherited from class org.eclipse.xtext.validation.AbstractInjectableValidator
getCurrentLanguage, isLanguageSpecific, isResponsible, register, validate, validate, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SUPPORTED_ID_TYPES

public static final List<String> SUPPORTED_ID_TYPES

SUPPORTED_VERSION_TYPES

public static final List<String> SUPPORTED_VERSION_TYPES

MISSING_IDENTIFIER

public static final String MISSING_IDENTIFIER
See Also:
Constant Field Values

INVALID_TYPE_NAME

public static final String INVALID_TYPE_NAME
See Also:
Constant Field Values

RESERVED_KEYWORDS

public static Set<String> RESERVED_KEYWORDS
Constructor Detail

DomDslJavaValidator

public DomDslJavaValidator()
Method Detail

getEPackages

protected List<org.eclipse.emf.ecore.EPackage> getEPackages()
Overrides:
getEPackages in class org.openxma.dsl.core.validation.AbstractCoreDslJavaValidator

checkCallableStatement

public void checkCallableStatement(QueryOperation queryOperation)

checkUnusedQueryParameter

public void checkUnusedQueryParameter(QueryOperation queryOperation)

checkType

public void checkType(QueryOperation queryOperation)

checkFeatureName

public void checkFeatureName(Attribute feature)

checkModelElement

public void checkModelElement(org.openxma.dsl.core.model.ModelElement modelElement)

checkDelegateOperationDataView

public void checkDelegateOperationDataView(DelegateOperation delegateOperation)

checkSameResourceWithEntity

public void checkSameResourceWithEntity(Dao dao)

checkDuplicateOperations

public void checkDuplicateOperations(Operation theOperation)

checkDuplicateQueryOperations

public void checkDuplicateQueryOperations(QueryOperation theOperation)

checkManyToMany

public void checkManyToMany(ManyToMany manyToMany)

checkIdentifierOrKeyAvailable

public void checkIdentifierOrKeyAvailable(Dao dao)

checkEntity

public void checkEntity(Entity entity)

checkSuperTypeCycle

public void checkSuperTypeCycle(Entity entity)

checkOneToOne

public void checkOneToOne(OneToOne oneToOne)

checkReference

public void checkReference(Attribute attribute)

checkDuplicateAttributes

public void checkDuplicateAttributes(DataView dataView)

checkAttributeTypes

public void checkAttributeTypes(ComplexType complexType)

checkIfAttributeIsUnique

public void checkIfAttributeIsUnique(Attribute attribute)

checkMapper

public void checkMapper(Mapper mapper)

checkEntityManyAttributes

public void checkEntityManyAttributes(Attribute attribute)


Copyright © 2013. All Rights Reserved.