Class ObjectContextFactory
java.lang.Object
pro.verron.officestamper.test.utils.ObjectContextFactory
- All Implemented Interfaces:
ContextFactory
ContextFactory class.
- Since:
- 1.6.5 Factory for creating object-based contexts.
- Version:
- ${version}
- Author:
- Joseph Verron
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreates a character table context.Creates a couple context.Creates 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.Creates a map and reflective context.Creates a name context.Creates a names context with a specific class.Creates a names context.Creates a nullish context.Creates a Characters object from an array of string inputs containing names and actors.Creates a school context.sectionName(String firstName, String secondName) Creates a section name context.Creates a sentence context.show()Creates a show context.spacy()Creates a spacy context.Creates a sub document part context.Creates a table context.Creates a units context.
-
Constructor Details
-
ObjectContextFactory
public ObjectContextFactory()Default constructor.
-
-
Method Details
-
units
Description copied from interface:ContextFactoryCreates a units context.- Specified by:
unitsin interfaceContextFactory- Parameters:
images- images- Returns:
- units context
-
tableContext
Description copied from interface:ContextFactoryCreates a table context.- Specified by:
tableContextin interfaceContextFactory- Returns:
- table context
-
subDocPartContext
Description copied from interface:ContextFactoryCreates a sub document part context.- 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
Description copied from interface:ContextFactoryCreates a school context.- 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
Description copied from interface:ContextFactoryCreates a nullish context.- Specified by:
nullishContextin interfaceContextFactory- Returns:
- nullish context
-
mapAndReflectiveContext
Description copied from interface:ContextFactoryCreates a map and reflective context.- 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
Description copied from interface:ContextFactoryCreates a couple context.- 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
-