All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.snapscript.compile.validate.PropertyValidator Maven / Gradle / Ivy

There is a newer version: 1.4.6
Show newest version
package org.snapscript.compile.validate;

import org.snapscript.core.convert.ConstraintMatcher;
import org.snapscript.core.property.Property;
import org.snapscript.core.type.Type;

public class PropertyValidator {
   
   private final ConstraintMatcher matcher;
   
   public PropertyValidator(ConstraintMatcher matcher) {
      this.matcher = matcher;
   }
   
   public void validate(Property property) throws Exception {
      Type source = property.getSource();

      if(source == null) {
         throw new ValidateException("Property '" + property + "' does not have a type");
      }
   }   
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy