Class CAMediaTypeMatchExpressions

java.lang.Object
com.io7m.cardant.parsers.CAExpressions
com.io7m.cardant.parsers.CAMediaTypeMatchExpressions

public final class CAMediaTypeMatchExpressions extends CAExpressions
Expression parsers for mediatype match expressions.
  • Constructor Details

    • CAMediaTypeMatchExpressions

      public CAMediaTypeMatchExpressions(CAStrings inStrings)
      Expression parsers for mediatype match expressions.
      Parameters:
      inStrings - The string resources
  • Method Details

    • syntax

      Specified by:
      syntax in class CAExpressions
    • mediatypeMatch

      public CAMediaTypeMatch mediatypeMatch(String text) throws CAException
      Parse a match expression for mediatypes.
      Parameters:
      text - The input text
      Returns:
      A match expression
      Throws:
      CAException - On errors
    • mediatypeMatch

      public CAMediaTypeMatch mediatypeMatch(com.io7m.jsx.SExpressionType e) throws CAException
      Parse a match expression for mediatypes.
      Parameters:
      e - The input expression
      Returns:
      A match expression
      Throws:
      CAException - On errors
    • mediatypeMatchSerializeToString

      public String mediatypeMatchSerializeToString(CAMediaTypeMatch value) throws CAException
      Serialize a match expression to a string.
      Parameters:
      value - The expression
      Returns:
      The serialized text
      Throws:
      CAException - On errors
    • mediatypeMatchSerialize

      public com.io7m.jsx.SExpressionType mediatypeMatchSerialize(CAComparisonFuzzyType<String> expression)
      Serialize a match expression.
      Parameters:
      expression - The expression
      Returns:
      The serialized expression