public interface IArrayHelper
IArrayHelper provides access methods used for handling
arrays for document generation. The IArrayHelper can be
referenced directly within a document template by its name
arrayHelper.
| Modifier and Type | Method and Description |
|---|---|
java.util.List<java.lang.Object> |
appendToArray(java.util.List<java.lang.Object> array,
java.lang.Object o)
Deprecated.
use
Collection#add() |
java.util.List<java.lang.Object> |
appendToArray(java.lang.Object[] array,
java.lang.Object o)
Deprecated.
use
Collection#add() |
java.util.List<java.lang.Object> |
appendToArray(java.lang.String[] array,
java.lang.Object o)
Deprecated.
use
Collection#add() |
boolean |
arrayIsEmpty(java.util.List<java.lang.Object> array)
Deprecated.
use
Collection.isEmpty() |
boolean |
arrayIsEmpty(java.lang.Object[] array)
Deprecated.
use
Collection.isEmpty() |
boolean |
arrayIsEmpty(java.lang.String[] array)
Deprecated.
use
Collection.isEmpty() |
java.util.List<java.lang.Object> |
convertToList(java.util.List<java.lang.Object> array)
Deprecated.
|
java.util.List<java.lang.Object> |
convertToList(java.lang.Object[] array)
Deprecated.
velocity can handle object arrays as object lists
|
java.util.List<java.lang.String> |
convertToList(java.lang.String[] array)
Deprecated.
string array are not used anymore
|
java.util.Map<?,?> |
createHashMap()
Creates an empty hash map object.
|
java.util.Set<?> |
createHashSet()
Creates an empty hash set object.
|
java.util.List<?> |
createList()
Creates an empty array list object.
|
com.arcway.lib.codec.xml.XMLProcessingInstruction |
createProcessingInstruction(java.lang.String target,
java.lang.String data)
XML Processing instruction as used in
IRecords that represent XML files. |
IRecord |
createRecord()
Creates a record.
|
java.util.SortedSet<IRecord> |
createRecordSortedSet(java.util.List<java.lang.String> propertyIDsForSorting)
Creates a set in which records are sorted in the order of the given
property IDs.
|
java.util.SortedMap<?,?> |
createSortedMap()
Creates an empty tree map object.
|
java.util.SortedSet<?> |
createSortedSet()
Creates an empty tree set object.
|
int |
getArraySize(java.util.List<java.lang.Object> array)
Deprecated.
use
Collection.size() |
int |
getArraySize(java.lang.Object[] array)
Deprecated.
use
Collection.size() |
int |
getArraySize(java.lang.String[] array)
Deprecated.
use
Collection.size() |
IRecord |
getCachedRecord(java.util.Map<java.lang.String,IRecord> uid2cachedRecord,
ICockpitData cockpitData)
Converts a cockpit project data into a record.
|
IRecord |
getCachedRecordCrossProject(java.util.Map<java.lang.String,java.util.Map<java.lang.String,IRecord>> projectUID2uid2cachedRecord,
ICockpitData cockpitData,
java.util.Set<java.lang.String> keyWhiteList)
Converts a cockpit project data into a record.
|
java.util.List<IRecord> |
getCachedRecords(java.util.Map<java.lang.String,IRecord> uid2cachedRecord,
java.util.Collection<ICockpitData> cockpitDatas)
Converts cockpit project data into records.
|
java.util.List<IRecord> |
getCachedRecordsCrossProject(java.util.Map<java.lang.String,java.util.Map<java.lang.String,IRecord>> projectUID2uid2cachedRecord,
java.util.Collection<ICockpitData> cockpitDatas,
java.util.Set<java.lang.String> keyWhiteList)
Converts cockpit project data into records.
|
java.util.SortedSet<IRecord> |
sortRecords(java.util.Collection<IRecord> records,
java.util.List<java.lang.String> propertyIDsForSorting)
Sorts the given records in the order of the given property IDs.
|
@Deprecated boolean arrayIsEmpty(java.lang.Object[] array)
Collection.isEmpty()array - The array that will be checked@Deprecated int getArraySize(java.lang.Object[] array)
Collection.size()array - @Deprecated boolean arrayIsEmpty(java.lang.String[] array)
Collection.isEmpty()array - The array that will be checked@Deprecated int getArraySize(java.lang.String[] array)
Collection.size()array - @Deprecated
java.util.List<java.lang.Object> appendToArray(java.lang.Object[] array,
java.lang.Object o)
Collection#add()null, a new array is created.array - array with first elements for new array, may be nullo - object to add as last element to the new array@Deprecated
java.util.List<java.lang.Object> appendToArray(java.lang.String[] array,
java.lang.Object o)
Collection#add()null, a new array is created.array - array with first elements for new array, may be nullo - object to add as last element to the new array@Deprecated java.util.List<java.lang.Object> convertToList(java.lang.Object[] array)
List.array - aray to convertList object@Deprecated java.util.List<java.lang.String> convertToList(java.lang.String[] array)
List.array - aray to convertList object@Deprecated boolean arrayIsEmpty(java.util.List<java.lang.Object> array)
Collection.isEmpty()array - The array that will be checked@Deprecated int getArraySize(java.util.List<java.lang.Object> array)
Collection.size()array - @Deprecated
java.util.List<java.lang.Object> appendToArray(java.util.List<java.lang.Object> array,
java.lang.Object o)
Collection#add()null, a new array is created.array - array with first elements for new array, may be nullo - object to add as last element to the new array@Deprecated java.util.List<java.lang.Object> convertToList(java.util.List<java.lang.Object> array)
List.array - aray to convertList objectjava.util.List<?> createList()
java.util.Set<?> createHashSet()
java.util.SortedSet<?> createSortedSet()
java.util.SortedMap<?,?> createSortedMap()
java.util.Map<?,?> createHashMap()
IRecord createRecord()
See IRecord.
IRecord getCachedRecord(java.util.Map<java.lang.String,IRecord> uid2cachedRecord, ICockpitData cockpitData)
Records are cached, i.e. if a record previously was created for an equivalent project data, the formerly created record is returned.
The records are created corresponding to
ICockpitData.toRecord().
uid2cachedRecord - a map with the object's UID as string and the
record as valuecockpitData - the cockpit data to be convertedjava.util.List<IRecord> getCachedRecords(java.util.Map<java.lang.String,IRecord> uid2cachedRecord, java.util.Collection<ICockpitData> cockpitDatas)
Records are cached, i.e. if a record previously was created for an equivalent project data, the formerly created record is returned. The created records are sortable (and sorted) in the order of the given property IDs.
The records are created corresponding to
ICockpitData.toRecord().
uid2cachedRecord - a map with the object's UID as string and the
record as valuecockpitData - the cockpit data to be convertedIRecord getCachedRecordCrossProject(java.util.Map<java.lang.String,java.util.Map<java.lang.String,IRecord>> projectUID2uid2cachedRecord, ICockpitData cockpitData, java.util.Set<java.lang.String> keyWhiteList)
Records are cached, i.e. if a record previously was created for an equivalent project data, the formerly created record is returned.
The records are created corresponding to
ICockpitData.toRecord().
uid2cachedRecord - a map with the project UID as key and as
value a map with the object's UID as string and the record as valuecockpitData - the cockpit data to be convertedkeyWhiteList - only properties are filled into the record of
which the keys are contained in keyWhiteList (empty to include no
property, null to include all properities)java.util.List<IRecord> getCachedRecordsCrossProject(java.util.Map<java.lang.String,java.util.Map<java.lang.String,IRecord>> projectUID2uid2cachedRecord, java.util.Collection<ICockpitData> cockpitDatas, java.util.Set<java.lang.String> keyWhiteList)
Records are cached, i.e. if a record previously was created for an equivalent project data, the formerly created record is returned. The created records are sortable (and sorted) in the order of the given property IDs.
The records are created corresponding to
ICockpitData.toRecord().
uid2cachedRecord - a map with the project UID as key and as
value a map with the object's UID as string and the record as valuecockpitData - the cockpit data to be convertedkeyWhiteList - only properties are filled into the record of
which the keys are contained in keyWhiteList (empty to include no
property, null to include all properities)java.util.SortedSet<IRecord> createRecordSortedSet(java.util.List<java.lang.String> propertyIDsForSorting)
java.util.SortedSet<IRecord> sortRecords(java.util.Collection<IRecord> records, java.util.List<java.lang.String> propertyIDsForSorting)
com.arcway.lib.codec.xml.XMLProcessingInstruction createProcessingInstruction(java.lang.String target,
java.lang.String data)
IRecords that represent XML files.target - data -