Interface ArduinoAttrConstraints

All Known Implementing Classes:
ArduinoAttrConstraints.ArduinoAttrEnumConstraints, ArduinoAttrConstraints.ArduinoAttrValueConstraints

public interface ArduinoAttrConstraints
Attribute constraints.
  • Method Details

    • checkValue

      Object checkValue​(Object pValue) throws net.sourceforge.jarduino.message.ArduinoParser.ArduinoParserException
      Check valid value.
      Parameters:
      pValue - the value.
      Returns:
      corrected value
      Throws:
      net.sourceforge.jarduino.message.ArduinoParser.ArduinoParserException - on error
    • parseConstraints

      static ArduinoAttrConstraints parseConstraints​(ArduinoAttribute pAttr, String pConstDef) throws net.sourceforge.jarduino.message.ArduinoParser.ArduinoParserException
      parse the constraints.
      Parameters:
      pAttr - the attribute
      pConstDef - the constraints definition
      Returns:
      the parsed constraints (null if unbounded)
      Throws:
      net.sourceforge.jarduino.message.ArduinoParser.ArduinoParserException - on error