Class MapContextFactory

java.lang.Object
pro.verron.officestamper.test.utils.MapContextFactory
All Implemented Interfaces:
ContextFactory

public final class MapContextFactory extends Object implements ContextFactory
Factory for creating map-based contexts.
  • Constructor Details

    • MapContextFactory

      public MapContextFactory()
      Default constructor.
  • Method Details

    • units

      public Object units(Image... images)
      Description copied from interface: ContextFactory
      Creates a units context.
      Specified by:
      units in interface ContextFactory
      Parameters:
      images - images
      Returns:
      units context
    • tableContext

      public Object tableContext()
      TODO make a Simpsons version
      Specified by:
      tableContext in interface ContextFactory
      Returns:
      table context
    • subDocPartContext

      public Object subDocPartContext()
      TODO make a Simpsons version
      Specified by:
      subDocPartContext in interface ContextFactory
      Returns:
      sub document part context
    • spacy

      public Object spacy()
      Description copied from interface: ContextFactory
      Creates a spacy context.
      Specified by:
      spacy in interface ContextFactory
      Returns:
      spacy context
    • show

      public Object show()
      Description copied from interface: ContextFactory
      Creates a show context.
      Specified by:
      show in interface ContextFactory
      Returns:
      show context
    • schoolContext

      public Object schoolContext()
      TODO make a Simpsons version
      Specified by:
      schoolContext in interface ContextFactory
      Returns:
      school context
    • roles

      public Object roles(String... input)
      Creates a Characters object from an array of string inputs containing names and actors.
      Specified by:
      roles in interface ContextFactory
      Parameters:
      input - an array of strings where each pair of strings represents a character's name and actor's name.
      Returns:
      a Characters object containing a list of Role objects constructed from the input array.
    • nullishContext

      public Object nullishContext()
      TODO make a Simpsons version
      Specified by:
      nullishContext in interface ContextFactory
      Returns:
      nullish context
    • mapAndReflectiveContext

      public Object mapAndReflectiveContext()
      TODO make a Simpsons version
      Specified by:
      mapAndReflectiveContext in interface ContextFactory
      Returns:
      map and reflective context
    • image

      public Object image(Image image)
      Represents the context for an insertable image.
      Specified by:
      image in interface ContextFactory
      Parameters:
      image - image
      Returns:
      image context
    • date

      public Object date(Temporal date)
      Description copied from interface: ContextFactory
      Creates a date context.
      Specified by:
      date in interface ContextFactory
      Parameters:
      date - date
      Returns:
      date context
    • coupleContext

      public Object coupleContext()
      TODO make a Simpsons version
      Specified by:
      coupleContext in interface ContextFactory
      Returns:
      couple context
    • characterTable

      public Object characterTable(List<String> headers, List<List<String>> records)
      Description copied from interface: ContextFactory
      Creates a character table context.
      Specified by:
      characterTable in interface ContextFactory
      Parameters:
      headers - headers
      records - records
      Returns:
      character table context
    • names

      public Object names(String... names)
      Description copied from interface: ContextFactory
      Creates a names context.
      Specified by:
      names in interface ContextFactory
      Parameters:
      names - names
      Returns:
      names context
    • names

      public <T extends Iterable<?>> Object names(Class<T> clazz, String... names)
      Description copied from interface: ContextFactory
      Creates a names context with a specific class.
      Specified by:
      names in interface ContextFactory
      Type Parameters:
      T - iterable type
      Parameters:
      clazz - class
      names - names
      Returns:
      names context
    • name

      public Object name(String name)
      Description copied from interface: ContextFactory
      Creates a name context.
      Specified by:
      name in interface ContextFactory
      Parameters:
      name - name
      Returns:
      name context
    • empty

      public Object empty()
      Description copied from interface: ContextFactory
      Creates an empty context.
      Specified by:
      empty in interface ContextFactory
      Returns:
      empty context
    • sectionName

      public Object sectionName(String firstName, String secondName)
      Description copied from interface: ContextFactory
      Creates a section name context.
      Specified by:
      sectionName in interface ContextFactory
      Parameters:
      firstName - first name
      secondName - second name
      Returns:
      section name context
    • imagedName

      public Object imagedName(String name, Image image)
      Description copied from interface: ContextFactory
      Creates an imaged name context.
      Specified by:
      imagedName in interface ContextFactory
      Parameters:
      name - name
      image - image
      Returns:
      imaged name context
    • sentence

      public Object sentence(String sentence)
      Description copied from interface: ContextFactory
      Creates a sentence context.
      Specified by:
      sentence in interface ContextFactory
      Parameters:
      sentence - sentence
      Returns:
      sentence context