Class ValueExtractorFactory

java.lang.Object
org.incenp.obofoundry.sssom.extract.ValueExtractorFactory

public class ValueExtractorFactory extends Object
Builds IValueExtractor instances from a string representation.
  • Constructor Details

    • ValueExtractorFactory

      public ValueExtractorFactory()
  • Method Details

    • parse

      public IValueExtractor parse(String expression) throws ExtractorSyntaxException
      Parses an “extractor expression” into a IValueExtractor.

      This is the public interface for the whole “extractor expression” feature.

      Parameters:
      expression - The expression representing the piece of content to extract from a mapping set.
      Returns:
      An object that can extract the desired piece of content.
      Throws:
      ExtractorSyntaxException - If the provided expression is invalid.