See: Description
Package | Description |
---|---|
com.appiancorp.ps.plugins.typetransformer | |
com.appiancorp.ps.plugins.typetransformer.util | |
com.appiancorp.ps.plugins.typetransformer.visitor |
A library for manipulating TypedValue objects.
AppianTypeFactory
for example usage.
AppianList
represents a list of something (strings, cdts, dictionaries, a mix of those, etc).AppianObject
represents a single complex type (i.e a CDT or Dictionary).AppianPrimitive
represents a single base type value (i.e an integer, long, float, String, date, etc)
The visitor pattern has been implemented to reduce the effort required to navigate the complex tree structures.
See the visitor package
for default implementations.
When should I use it?
Serialising to a new format (XML, JSON, Excel, DOCX, HTML, etc), searching for data, etc are all good use cases for this pattern.
For example, this is used by TypedValueAppianElementVisitor
to convert to a TypedValue.
Help! I can't work out this data structure. The StringAppianElementVisitor
will print the outline of the data structure with a JSON-like syntax:
try (Writer w : new PrintWriter(System.out)) { AppianTypeFactory.walkElementTree(startElement, new StringAppianElementVisitor(w)); }
Copyright © 2018 Appian Corporation. All rights reserved.