Class PogoDslJavaValidator

  • All Implemented Interfaces:
    org.eclipse.emf.ecore.EValidator, org.eclipse.xtext.validation.ValidationMessageAcceptor

    public class PogoDslJavaValidator
    extends AbstractPogoDslJavaValidator
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.eclipse.xtext.validation.AbstractDeclarativeValidator

        org.eclipse.xtext.validation.AbstractDeclarativeValidator.MethodWrapper, 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, org.eclipse.emf.ecore.EValidator.ValidationDelegate
    • Field Summary

      • Fields inherited from class org.eclipse.xtext.validation.AbstractInjectableValidator

        CURRENT_LANGUAGE_NAME, ISSUE_SEVERITIES
      • Fields inherited from interface org.eclipse.emf.ecore.EValidator

        MARKER, RELATED_URIS_ATTRIBUTE, URI_ATTRIBUTE
      • Fields inherited from interface org.eclipse.xtext.validation.ValidationMessageAcceptor

        INSIGNIFICANT_INDEX
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void checkClassDescription​(PogoDeviceClass element)  
      void checkCommand​(Command element)
      Checks the following conditions for a Command: Command name must start with capital letter Input type is specified Output type is specified
      void checkPropertyName​(Property element)  
      protected void error​(java.lang.String message, org.eclipse.emf.ecore.EObject source, org.eclipse.emf.ecore.EStructuralFeature feature, java.lang.String code, java.lang.String... issueData)
      Adds location information to the message
      • Methods inherited from class org.eclipse.xtext.validation.AbstractDeclarativeValidator

        acceptError, acceptError, acceptInfo, acceptInfo, acceptWarning, acceptWarning, addIssue, addIssue, addIssue, addIssue, addIssue, addIssueToState, checkDone, checkIsFromCurrentlyCheckedResource, createDiagnostic, createDiagnostic, createMethodWrapper, error, error, error, error, error, error, error, getChain, getCheckMode, getContext, getCurrentMethod, getCurrentObject, getIssueSeverities, getMessageAcceptor, guard, handleExceptionDuringValidation, info, info, info, info, info, info, info, info, internalValidate, isIgnored, newInstance, setInjector, setMessageAcceptor, toDiagnosticSeverity, warning, 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
    • Constructor Detail

      • PogoDslJavaValidator

        public PogoDslJavaValidator()
    • Method Detail

      • error

        protected void error​(java.lang.String message,
                             org.eclipse.emf.ecore.EObject source,
                             org.eclipse.emf.ecore.EStructuralFeature feature,
                             java.lang.String code,
                             java.lang.String... issueData)
        Adds location information to the message
        Overrides:
        error in class org.eclipse.xtext.validation.AbstractDeclarativeValidator
      • checkClassDescription

        public void checkClassDescription​(PogoDeviceClass element)
      • checkCommand

        public void checkCommand​(Command element)
        Checks the following conditions for a Command:
        • Command name must start with capital letter
        • Input type is specified
        • Output type is specified
        Parameters:
        element -
      • checkPropertyName

        public void checkPropertyName​(Property element)