Package | Description |
---|---|
net.sf.jett.model |
Provides value objects for JETT processing and enumerated objects for
things like style values.
|
net.sf.jett.tag |
Provides Tag functionality, including the
Tag interface and
all built-in tag classes, plus the TagLibrary interface and
TagLibraryRegistry classes for custom tag creation and
registration. |
net.sf.jett.util |
Provides utility functionality for JETT.
|
Modifier and Type | Method | Description |
---|---|---|
void |
BaseLoopTagStatus.incrementIndex(Tag tag) |
Increments the current index, if the given tag is this object's parent
tag.
|
Constructor | Description |
---|---|
BaseLoopTagStatus(Tag tag,
int numIterations) |
Constructs a
BaseLoopTagStatus with the given number of
iterations and a current index of 0. |
ForLoopTagStatus(Tag tag,
int numIterations,
int start,
int end,
int step) |
Constructs a
ForLoopTagStatus with the given number of
iterations, a current index of 0, and the given start, end, and step
values. |
Modifier and Type | Class | Description |
---|---|---|
class |
AggTag |
An
AggTag represents possibly many aggregate values
calculated from a List of values already exposed to the
context. |
class |
AnaTag |
An
AnaTag represents analytic values calculated from a
List of values already exposed to the context. |
class |
BaseHideTag |
A
BaseHideTag represents something that can be hidden conditionally. |
class |
BaseLoopTag |
The abstract class
BaseLoopTag is the base class for all tags
that represent loops. |
class |
BaseTag |
The abstract class
BaseTag provides common functionality to
all Tags . |
class |
CommentTag |
A
CommentTag represents a Cell that needs to have an Excel
Comment attached to it. |
class |
ForEachTag |
A
ForEachTag represents a repetitively placed
Block of Cells , with each repetition corresponding
to an element of a Collection . |
class |
FormulaTag |
A
FormulaTag represents a dynamically generated Excel
Formula. |
class |
ForTag |
A
ForTag represents a repetitively placed Block
of Cells , with each repetition corresponding to an increment of
an index. |
class |
GroupTag |
A
GroupTag represents a set of rows or a set of columns that
needs an Excel "group" associated with it. |
class |
HideColsTag |
A
HideColsTag is a BaseHideTag that hides a
range of columns. |
class |
HideRowsTag |
A
HideRowsTag is a BaseHideTag that hides a
range of rows. |
class |
HideSheetTag |
A
HideSheetTag is a BaseHideTag that hides an
entire sheet. |
class |
HyperlinkTag |
A
HyperlinkTag represents a Cell that needs to have a
hyperlink on the cell. |
class |
IfTag |
An
IfTag represents a conditionally placed
Block of Cells . |
class |
ImageTag |
An
ImageTag represents an image to be placed on the sheet. |
class |
MultiForEachTag |
A
MultiForEachTag represents a repetitively placed
Block of Cells , with each repetition corresponding
to the same index into multiple Collections . |
class |
NameTag |
A
NameTag indicates an association between an Excel named
range and a JETT formula. |
class |
NullTag |
A
NullTag does nothing to its Block except mark
its Cells as processed. |
class |
PageBreakTag |
A
PageBreakTag turns on or turns off whether a column or a
row has a page break on it. |
class |
RickrollTag |
A
RickrollTag is a HyperlinkTag that forces the
type to be "url" and the address to be a URL that shows Rick Astley's "Never
Gonna Give You Up" video. |
class |
SetTag |
A
SetTag has no direct effect on the resultant spreadsheet. |
class |
SpanTag |
A
SpanTag represents a cell or merged region that will span
extra rows and/or extra columns, depending on growth and/or adjustment
factors. |
class |
StyleTag |
A
StyleTag represents a dynamically determined style for a
Cell . |
class |
TotalTag |
A
TotalTag represents an aggregate value calculated from a
List of values already exposed to the context. |
Modifier and Type | Method | Description |
---|---|---|
Tag |
TagLibraryRegistry.createTag(TagParser parser,
TagContext context,
WorkbookContext workbookContext) |
Creates a
Tag , looking in a specific namespace for a class
matching a specific tag name. |
Tag |
TagContext.getCurrentTag() |
Returns the current
Tag for this context. |
Tag |
BaseTag.getParentTag() |
Returns the parent
Tag . |
Tag |
Tag.getParentTag() |
Returns the parent
Tag to this Tag . |
Modifier and Type | Method | Description |
---|---|---|
java.util.Map<java.lang.String,java.lang.Class<? extends Tag>> |
JtTagLibrary.getTagMap() |
Returns the
Map of tag names to tag Class
objects, e.g. |
java.util.Map<java.lang.String,java.lang.Class<? extends Tag>> |
TagLibrary.getTagMap() |
Returns the
Map of tag names to tag Class
objects, e.g. |
Modifier and Type | Method | Description |
---|---|---|
void |
TagContext.setCurrentTag(Tag tag) |
Sets the current
Tag for this context. |
void |
BaseTag.setParentTag(Tag parent) |
Sets the parent
Tag . |
void |
Tag.setParentTag(Tag parent) |
Sets the parent
Tag to this Tag . |
Modifier and Type | Method | Description |
---|---|---|
static void |
AttributeUtil.ensureAtLeastOneExists(Tag tag,
java.util.List<org.apache.poi.ss.usermodel.RichTextString> attrValues,
java.util.List<java.lang.String> attrNames) |
Ensures that at least one of the given attribute values exists.
|
static void |
AttributeUtil.ensureAtMostOneExists(Tag tag,
java.util.List<org.apache.poi.ss.usermodel.RichTextString> attrValues,
java.util.List<java.lang.String> attrNames) |
Ensures that at most one of the given attribute values exists.
|
static void |
AttributeUtil.ensureExactlyOneExists(Tag tag,
java.util.List<org.apache.poi.ss.usermodel.RichTextString> attrValues,
java.util.List<java.lang.String> attrNames) |
Ensures that exactly one of the given attribute values exists.
|
static boolean |
AttributeUtil.evaluateBoolean(Tag tag,
org.apache.poi.ss.usermodel.RichTextString text,
java.util.Map<java.lang.String,java.lang.Object> beans,
boolean def) |
Evaluates the given text, which may have embedded
Expressions , and attempts to extract a boolean value from
the result, calling Boolean.parseBoolean() on the result if
necessary. |
static double |
AttributeUtil.evaluateDouble(Tag tag,
org.apache.poi.ss.usermodel.RichTextString text,
java.util.Map<java.lang.String,java.lang.Object> beans,
java.lang.String attrName,
double def) |
Evaluates the given text, which may have embedded
Expressions , and attempts to extract a double value from
the result, calling toString() on the result and parsing it
if necessary. |
static int |
AttributeUtil.evaluateInt(Tag tag,
org.apache.poi.ss.usermodel.RichTextString text,
java.util.Map<java.lang.String,java.lang.Object> beans,
java.lang.String attrName,
int def) |
Evaluates the given text, which may have embedded
Expressions , and attempts to extract an integer value from
the result, calling toString() on the result and parsing it
if necessary. |
static java.util.List<java.lang.Integer> |
AttributeUtil.evaluateIntegerArray(Tag tag,
org.apache.poi.ss.usermodel.RichTextString text,
java.util.Map<java.lang.String,java.lang.Object> beans,
java.util.List<java.lang.Integer> def) |
Evaluates the given text, which may have embedded
Expressions , and attempts to extract a List of
Integers from the result, accepting an int
array or a Collection or delimited list of numbers. |
static java.util.List<java.util.List<java.lang.Integer>> |
AttributeUtil.evaluateIntegerArrayArray(Tag tag,
org.apache.poi.ss.usermodel.RichTextString text,
java.util.Map<java.lang.String,java.lang.Object> beans,
java.util.List<java.util.List<java.lang.Integer>> def) |
Evaluates the given text, which may have embedded
Expressions , and attempts to extract a List of
Lists of Integers from the result, accepting a
2D int array or a Collection of
Collections or delimited list of numbers. |
static java.util.List<java.lang.String> |
AttributeUtil.evaluateList(Tag tag,
org.apache.poi.ss.usermodel.RichTextString text,
java.util.Map<java.lang.String,java.lang.Object> beans,
java.util.List<java.lang.String> def) |
Evaluates the given text, which may have embedded
Expressions , and attempts to extract a List out
of the result, parsing a delimited list to create a list if necessary. |
static double |
AttributeUtil.evaluateNonNegativeDouble(Tag tag,
org.apache.poi.ss.usermodel.RichTextString text,
java.util.Map<java.lang.String,java.lang.Object> beans,
java.lang.String attrName,
double def) |
Evaluates the given text, which may have embedded
Expressions , and attempts to extract a double value from
the result, calling toString() on the result and parsing it
if necessary. |
static int |
AttributeUtil.evaluateNonNegativeInt(Tag tag,
org.apache.poi.ss.usermodel.RichTextString text,
java.util.Map<java.lang.String,java.lang.Object> beans,
java.lang.String attrName,
int def) |
Evaluates the given text, which may have embedded
Expressions , and attempts to extract an integer value from
the result, calling toString() on the result and parsing it
if necessary. |
static int |
AttributeUtil.evaluateNonZeroInt(Tag tag,
org.apache.poi.ss.usermodel.RichTextString text,
java.util.Map<java.lang.String,java.lang.Object> beans,
java.lang.String attrName,
int def) |
Evaluates the given text, which may have embedded
Expressions , and attempts to extract an integer value from
the result, calling toString() on the result and parsing it
if necessary. |
static <T> T |
AttributeUtil.evaluateObject(Tag tag,
java.lang.String text,
java.util.Map<java.lang.String,java.lang.Object> beans,
java.lang.String attrName,
java.lang.Class<T> expectedClass,
T def) |
Evaluates the given text, which may have embedded
Expressions , and attempts to extract a result, and cast it
to the same class as the given expected class. |
static <T> T |
AttributeUtil.evaluateObject(Tag tag,
org.apache.poi.ss.usermodel.RichTextString text,
java.util.Map<java.lang.String,java.lang.Object> beans,
java.lang.String attrName,
java.lang.Class<T> expectedClass,
T def) |
Evaluates the given text, which may have embedded
Expressions , and attempts to extract a result, and cast it
to the same class as the given expected class. |
static double |
AttributeUtil.evaluatePositiveDouble(Tag tag,
org.apache.poi.ss.usermodel.RichTextString text,
java.util.Map<java.lang.String,java.lang.Object> beans,
java.lang.String attrName,
double def) |
Evaluates the given text, which may have embedded
Expressions , and attempts to extract a double value from
the result, calling toString() on the result and parsing it
if necessary. |
static int |
AttributeUtil.evaluatePositiveInt(Tag tag,
org.apache.poi.ss.usermodel.RichTextString text,
java.util.Map<java.lang.String,java.lang.Object> beans,
java.lang.String attrName,
int def) |
Evaluates the given text, which may have embedded
Expressions , and attempts to extract an integer value from
the result, calling toString() on the result and parsing it
if necessary. |
static java.lang.Object |
AttributeUtil.evaluateRichTextStringNotNull(Tag tag,
org.apache.poi.ss.usermodel.RichTextString text,
org.apache.poi.ss.usermodel.CreationHelper helper,
java.util.Map<java.lang.String,java.lang.Object> beans,
java.lang.String attrName,
java.lang.String def) |
Evaluates the given rich text, which may have embedded
Expressions , and attempts to extract the result, which may
be either a RichTextString or a String . |
static java.lang.String |
AttributeUtil.evaluateString(Tag tag,
org.apache.poi.ss.usermodel.RichTextString text,
java.util.Map<java.lang.String,java.lang.Object> beans,
java.lang.String def) |
Evaluates the given text, which may have embedded
Expressions , and attempts to extract a String
result, calling toString() on the result. |
static java.lang.String |
AttributeUtil.evaluateStringNotNull(Tag tag,
org.apache.poi.ss.usermodel.RichTextString text,
java.util.Map<java.lang.String,java.lang.Object> beans,
java.lang.String attrName,
java.lang.String def) |
Evaluates the given text, which may have embedded
Expressions , and attempts to extract a String
result, calling toString() on the result. |
static java.lang.String |
AttributeUtil.evaluateStringSpecificValues(Tag tag,
org.apache.poi.ss.usermodel.RichTextString text,
java.util.Map<java.lang.String,java.lang.Object> beans,
java.lang.String attrName,
java.util.List<java.lang.String> legalValues,
java.lang.String def) |
Evaluates the given text, which may have embedded
Expressions , and attempts to extract a String
result, calling toString() on the result. |
static java.lang.String |
AttributeUtil.evaluateStringVarName(Tag tag,
org.apache.poi.ss.usermodel.RichTextString text,
java.util.Map<java.lang.String,java.lang.Object> beans,
java.lang.String attrName) |
Evaluates the given text, which may have embedded
Expressions , and attempts to extract a String
result, calling toString() on the result. |
static java.lang.String |
SheetUtil.getTagLocationWithHierarchy(Tag tag) |
Returns a
String formatted in the following way: |
Copyright © 2012–2018 Jett Team. All rights reserved.