Class MapContextFactory
java.lang.Object
pro.verron.officestamper.test.utils.MapContextFactory
- All Implemented Interfaces:
ContextFactory
Factory for creating map-based contexts.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreates a character table context.TODO make a Simpsons versionCreates a date context.empty()Creates an empty context.Represents the context for an insertable image.imagedName(String name, Image image) Creates an imaged name context.TODO make a Simpsons versionCreates a name context.Creates a names context with a specific class.Creates a names context.TODO make a Simpsons versionCreates a Characters object from an array of string inputs containing names and actors.TODO make a Simpsons versionsectionName(String firstName, String secondName) Creates a section name context.Creates a sentence context.show()Creates a show context.spacy()Creates a spacy context.TODO make a Simpsons versionTODO make a Simpsons versionCreates a units context.
-
Constructor Details
-
MapContextFactory
public MapContextFactory()Default constructor.
-
-
Method Details
-
units
Description copied from interface:ContextFactoryCreates a units context.- Specified by:
unitsin interfaceContextFactory- Parameters:
images- images- Returns:
- units context
-
tableContext
TODO make a Simpsons version- Specified by:
tableContextin interfaceContextFactory- Returns:
- table context
-
subDocPartContext
TODO make a Simpsons version- Specified by:
subDocPartContextin interfaceContextFactory- Returns:
- sub document part context
-
spacy
Description copied from interface:ContextFactoryCreates a spacy context.- Specified by:
spacyin interfaceContextFactory- Returns:
- spacy context
-
show
Description copied from interface:ContextFactoryCreates a show context.- Specified by:
showin interfaceContextFactory- Returns:
- show context
-
schoolContext
TODO make a Simpsons version- Specified by:
schoolContextin interfaceContextFactory- Returns:
- school context
-
roles
Creates a Characters object from an array of string inputs containing names and actors.- Specified by:
rolesin interfaceContextFactory- 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
TODO make a Simpsons version- Specified by:
nullishContextin interfaceContextFactory- Returns:
- nullish context
-
mapAndReflectiveContext
TODO make a Simpsons version- Specified by:
mapAndReflectiveContextin interfaceContextFactory- Returns:
- map and reflective context
-
image
Represents the context for an insertable image.- Specified by:
imagein interfaceContextFactory- Parameters:
image- image- Returns:
- image context
-
date
Description copied from interface:ContextFactoryCreates a date context.- Specified by:
datein interfaceContextFactory- Parameters:
date- date- Returns:
- date context
-
coupleContext
TODO make a Simpsons version- Specified by:
coupleContextin interfaceContextFactory- Returns:
- couple context
-
characterTable
Description copied from interface:ContextFactoryCreates a character table context.- Specified by:
characterTablein interfaceContextFactory- Parameters:
headers- headersrecords- records- Returns:
- character table context
-
names
Description copied from interface:ContextFactoryCreates a names context.- Specified by:
namesin interfaceContextFactory- Parameters:
names- names- Returns:
- names context
-
names
Description copied from interface:ContextFactoryCreates a names context with a specific class.- Specified by:
namesin interfaceContextFactory- Type Parameters:
T- iterable type- Parameters:
clazz- classnames- names- Returns:
- names context
-
name
Description copied from interface:ContextFactoryCreates a name context.- Specified by:
namein interfaceContextFactory- Parameters:
name- name- Returns:
- name context
-
empty
Description copied from interface:ContextFactoryCreates an empty context.- Specified by:
emptyin interfaceContextFactory- Returns:
- empty context
-
sectionName
Description copied from interface:ContextFactoryCreates a section name context.- Specified by:
sectionNamein interfaceContextFactory- Parameters:
firstName- first namesecondName- second name- Returns:
- section name context
-
imagedName
Description copied from interface:ContextFactoryCreates an imaged name context.- Specified by:
imagedNamein interfaceContextFactory- Parameters:
name- nameimage- image- Returns:
- imaged name context
-
sentence
Description copied from interface:ContextFactoryCreates a sentence context.- Specified by:
sentencein interfaceContextFactory- Parameters:
sentence- sentence- Returns:
- sentence context
-