Startseite
Startseite

Startseite / Vorlagenentwicklung / Vorlagensyntax / Datentypen / FormDataList

Datentyp FormDataListVerfügbar ab FirstSpirit-Version 4.2R4

Wertebereich des Datentyps FormDataList

Mithilfe der Eingabekomponente FS_LIST können Listen gepflegt werden. Sie liefert ein FormDataList-Objekt zurück. Dieses enthält IdProvidingFormData-Objekte.

Mit FS_LIST, DATASOURCE-Typ INLINE, erstellte Listen können über eine $CMS_VALUE(...)$-Anweisung ausgegeben werden, z. B.

$CMS_VALUE(BEZEICHNER)$

Auf dem resultierenden Datentyp (FormDataList) können verschiedene Methoden ausgeführt werden.

Weitere Informationen zum Datentyp FormDataList siehe API-Dokumentation:

de.espirit.firstspirit.forms.FormDataList

Definition über die Standard-Eingabekomponenten

Die folgende Standard-Eingabekomponente liefert ein Objekt vom Datentyp FormDataList zurück:

Auf diesem Objekt lassen sich dann mit Hilfe einer $CMS_VALUE(...)$-Anweisung Methoden anwenden:

$CMS_VALUE(BEZEICHNER.METHODE)$

Methoden auf FormDataList-Objekten

In der unten angegebenen Tabellen werden alle Methoden aufgelistet, die auf Objekten vom Datentyp FormDataList aufgerufen werden können:

Objekt wird von folgenden Formular-Objekten erzeugt:
FS_LIST
Methodenname Rückgabetyp Kurzbeschreibung Verfügbar seit
add(List) List
add(Object) List
add(int, Object) void
addAll(Collection) boolean
addAll(int, Collection) boolean
clear void
compareTo(Comparable) int
contains(Object) boolean checks if the provided element is contained 4.0.0
containsAll(Collection) boolean
copy Collection make a (shallow) copy 4.0.0
distinct(Lambda) Collection Ausgabe einer Liste eindeutiger Elemente 4.1
equals(Object) boolean
filter(String) Object delivers a filtered collection, the last parameter converted to a lambda expression 4.0.0
filter(Lambda) Object Filterung von Listenelementen 4.0.0
first Object
fold(Lambda, Map) Object Zusammenfassen von Werten 4.0.0
get(Range) Object
get(int) Object
getClass Class Klasse des aufrufenden Objektes
getProducer FormDataProducer
hashCode int
indexOf(Object) int
isCase(Object) boolean
isEmpty boolean Prüft, ob ein Ausdruck leer ist 4.0.0
isNull boolean Prüft, ob ein Ausdruck Null ist
iterator Iterator
last Object
lastIndexOf(Object) int
length int
listIterator ListIterator
listIterator(int) ListIterator
map(String) Object delivers a mapped collection, the last parameter converted to a lambda expression 4.0.0
map(Lambda) Object Ausgabe von Listenelementen als Sammlung 4.0.0
max Object delivers the maximum element (only applicable if elements are compareable) 4.0.0
max(Comparator) Object delivers the maximum element concerning to the given comparator 4.0.0
max(Lambda) Object Nach dem höchsten Wert filtern 4.0.0
min Object delivers the minimum element (only applicable if elements are compareable) 4.0.0
min(Comparator) Object delivers the minimum element concerning to the given comparator 4.0.0
min(Lambda) Object Nach dem niedrigsten Wert filtern 4.0.0
plus(Collection) Collection
plus(Object) Collection adds the element to the collection (called for operator '+') 4.0.0
print void
print(Object) void
remove(int) Object
remove(Object) boolean
removeAll(Collection) boolean
retainAll(Collection) boolean
reverse List
set(int, Object) List
set(String, Object) Object
size int the number of contained elements 4.0.0
sort List
sort(String) List
sort(Comparator) List
sort(Lambda) List Sortierung von Listenelementen
subList(int) List
subList(int, int) List
sublist(int) List
sublist(int, int) List
toArray Object[]
toArray(Object[]) Object[]
toJson String Convert to JSON string representtion (only handles Maps, Collections, Arrays, Numbers, and Strings) 4.2.14
toString String
toString(String) String Ausgabe von durch Trennzeichen separierte Elemente als String 4.0.0
toString(String, String) String Short form for collection.map(attribute).toString(delimiter) 4.0.0
type String

add(List)

Methodenname Rückgabetyp Verfügbar seit
add(List) List

add(Object)

Methodenname Rückgabetyp Verfügbar seit
add(Object) List

add(int, Object)

Methodenname Rückgabetyp Verfügbar seit
add(int, Object) void

addAll(Collection)

Methodenname Rückgabetyp Verfügbar seit
addAll(Collection) boolean

addAll(int, Collection)

Methodenname Rückgabetyp Verfügbar seit
addAll(int, Collection) boolean

clear

Methodenname Rückgabetyp Verfügbar seit
clear void

compareTo(Comparable)

Methodenname Rückgabetyp Verfügbar seit
compareTo(Comparable) int

contains(Object)

checks if the provided element is contained
Methodenname Rückgabetyp Verfügbar seit
contains(Object) boolean 4.0.0

containsAll(Collection)

Methodenname Rückgabetyp Verfügbar seit
containsAll(Collection) boolean

copy

make a (shallow) copy
Methodenname Rückgabetyp Verfügbar seit
copy Collection 4.0.0

distinct(Lambda)

Über diese Methode können Duplikate einer Liste entsprechend einer Bedingung eliminiert bzw. ignoriert werden. Sie kann z. B. für Glossare oder Übersichten verwendet werden, die dann beispielsweise verlinkt auch als Navigationselement dienen können.

Siehe Seite Abbildungs-Ausdrücke (Lambda).

Methodenname Rückgabetyp Verfügbar seit
distinct(Lambda) Collection 4.1

equals(Object)

Methodenname Rückgabetyp Verfügbar seit
equals(Object) boolean

filter(String)

delivers a filtered collection, the last parameter converted to a lambda expression
Methodenname Rückgabetyp Verfügbar seit
filter(String) Object 4.0.0

filter(Lambda)

Haben Listen mehrere Attribute pro Element (vergleichbar einem Datensatz mit mehreren Spalten), können die Elemente mit der Methode .filter(Lambda) nach den einzelnen Attributen gefiltert werden.

Siehe dazu Seite Abbildungs-Ausdrücke (Lambda).

Methodenname Rückgabetyp Verfügbar seit
filter(Lambda) Object 4.0.0

first

Methodenname Rückgabetyp Verfügbar seit
first Object

fold(Lambda, Map)

Siehe Seite Abbildungs-Ausdrücke (Lambda).

Methodenname Rückgabetyp Verfügbar seit
fold(Lambda, Map) Object 4.0.0

get(Range)

Methodenname Rückgabetyp Verfügbar seit
get(Range) Object

get(int)

Methodenname Rückgabetyp Verfügbar seit
get(int) Object

getClass

Die Methode .getClass() (in Bean-Syntax: .class) liefert die Klasse des aufrufendes Objektes zurück (vgl. java.lang.Class).

Aufruf:

$CMS_VALUE(myString.class)$
$CMS_VALUE(myString.getClass())$

Ausgabe:

java.lang.String
Methodenname Rückgabetyp Verfügbar seit
getClass Class

getProducer

Methodenname Rückgabetyp Verfügbar seit
getProducer FormDataProducer

hashCode

Methodenname Rückgabetyp Verfügbar seit
hashCode int

indexOf(Object)

Methodenname Rückgabetyp Verfügbar seit
indexOf(Object) int

isCase(Object)

Methodenname Rückgabetyp Verfügbar seit
isCase(Object) boolean

isEmpty

Die Methode .isEmpty() (in Bean-Syntax: .isEmpty) prüft, ob ein Ausdruck bzw. Objekt leer ist, z.B. storeElement.isEmpty(). Das Ergebnis der semantischen Prüfung hängt vom Ausdruck bzw. Objekt ab, z.B. eine Zeichenkette ist dann leer, wenn sie kein Zeichen enthält. Bei Objekten mit komplexen Werten oder Objekten entscheidet das Objekt wann es leer ist. Der Datentyp DomElement enthält beispielsweise immer ein leeres Dokument, ist also nie null. Die Prüfung einer leeren DOM-Editor-Eingabekomponente mit der Methode .isNull() liefert daher den Wert false, während die Prüfung der Komponente auf .isEmpty() den Wert true liefern würde.

Die Methode .isEmpty() gibt einen booleschen Wert als Ergebnis der Prüfung zurück. true (=wahr) ist die Prüfung, wenn der Ausdruck bzw. das Objekt leer ist und false (=unwahr) wenn nicht.

Methodenname Rückgabetyp Verfügbar seit
isEmpty boolean 4.0.0

isNull

Die Methode .isNull() (in Bean-Syntax: .isNull) prüft, ob ein Ausdruck bzw. Objekt Null ist, z.B. storeElement.isNull(). Bei Objekten mit komplexen Werten oder Objekten entscheidet das Objekt wann es null ist. Der Datentyp DomElement enthält beispielsweise immer ein leeres Dokument, ist also nie null. Die Prüfung einer leeren DOM-Editor-Eingabekomponente mit der Methode .isNull() liefert daher den Wert false, während die Prüfung der Komponente auf .isEmpty() den Wert true liefern würde.

Die Methode .isNull() gibt einen booleschen Wert als Ergebnis der Prüfung zurück. true (=wahr) ist die Prüfung, wenn der Ausdruck bzw. das Objekt Null ist und false (=unwahr) wenn nicht.

Methodenname Rückgabetyp Verfügbar seit
isNull boolean

iterator

Methodenname Rückgabetyp Verfügbar seit
iterator Iterator

last

Methodenname Rückgabetyp Verfügbar seit
last Object

lastIndexOf(Object)

Methodenname Rückgabetyp Verfügbar seit
lastIndexOf(Object) int

length

Methodenname Rückgabetyp Verfügbar seit
length int

listIterator

Methodenname Rückgabetyp Verfügbar seit
listIterator ListIterator

listIterator(int)

Methodenname Rückgabetyp Verfügbar seit
listIterator(int) ListIterator

map(String)

delivers a mapped collection, the last parameter converted to a lambda expression
Methodenname Rückgabetyp Verfügbar seit
map(String) Object 4.0.0

map(Lambda)

Siehe Seite Abbildungs-Ausdrücke (Lambda).

Methodenname Rückgabetyp Verfügbar seit
map(Lambda) Object 4.0.0

max

delivers the maximum element (only applicable if elements are compareable)
Methodenname Rückgabetyp Verfügbar seit
max Object 4.0.0

max(Comparator)

delivers the maximum element concerning to the given comparator
Methodenname Rückgabetyp Verfügbar seit
max(Comparator) Object 4.0.0

max(Lambda)

Siehe Seite Abbildungs-Ausdrücke (Lambda).

Methodenname Rückgabetyp Verfügbar seit
max(Lambda) Object 4.0.0

min

delivers the minimum element (only applicable if elements are compareable)
Methodenname Rückgabetyp Verfügbar seit
min Object 4.0.0

min(Comparator)

delivers the minimum element concerning to the given comparator
Methodenname Rückgabetyp Verfügbar seit
min(Comparator) Object 4.0.0

min(Lambda)

Siehe Seite Abbildungs-Ausdrücke (Lambda).

Methodenname Rückgabetyp Verfügbar seit
min(Lambda) Object 4.0.0

plus(Collection)

Methodenname Rückgabetyp Verfügbar seit
plus(Collection) Collection

plus(Object)

adds the element to the collection (called for operator '+')
Methodenname Rückgabetyp Verfügbar seit
plus(Object) Collection 4.0.0

print

Methodenname Rückgabetyp Verfügbar seit
print void

print(Object)

Methodenname Rückgabetyp Verfügbar seit
print(Object) void

remove(int)

Methodenname Rückgabetyp Verfügbar seit
remove(int) Object

remove(Object)

Methodenname Rückgabetyp Verfügbar seit
remove(Object) boolean

removeAll(Collection)

Methodenname Rückgabetyp Verfügbar seit
removeAll(Collection) boolean

retainAll(Collection)

Methodenname Rückgabetyp Verfügbar seit
retainAll(Collection) boolean

reverse

Methodenname Rückgabetyp Verfügbar seit
reverse List

set(int, Object)

Methodenname Rückgabetyp Verfügbar seit
set(int, Object) List

set(String, Object)

Methodenname Rückgabetyp Verfügbar seit
set(String, Object) Object

size

the number of contained elements
Methodenname Rückgabetyp Verfügbar seit
size int 4.0.0

sort

Methodenname Rückgabetyp Verfügbar seit
sort List

sort(String)

Methodenname Rückgabetyp Verfügbar seit
sort(String) List

sort(Comparator)

Methodenname Rückgabetyp Verfügbar seit
sort(Comparator) List

sort(Lambda)

Haben Listen mehrere Attribute pro Element (vergleichbar einem Datensatz mit mehreren Spalten), können die Elemente mit der Methode .sort(Lambda) nach den einzelnen Attributen sortiert werden.

Siehe dazu Seite Abbildungs-Ausdrücke (Lambda).

Methodenname Rückgabetyp Verfügbar seit
sort(Lambda) List

subList(int)

Methodenname Rückgabetyp Verfügbar seit
subList(int) List

subList(int, int)

Methodenname Rückgabetyp Verfügbar seit
subList(int, int) List

sublist(int)

Methodenname Rückgabetyp Verfügbar seit
sublist(int) List

sublist(int, int)

Methodenname Rückgabetyp Verfügbar seit
sublist(int, int) List

toArray

Methodenname Rückgabetyp Verfügbar seit
toArray Object[]

toArray(Object[])

Methodenname Rückgabetyp Verfügbar seit
toArray(Object[]) Object[]

toJson

Convert to JSON string representtion (only handles Maps, Collections, Arrays, Numbers, and Strings)
Methodenname Rückgabetyp Verfügbar seit
toJson String 4.2.14

toString

Methodenname Rückgabetyp Verfügbar seit
toString String

toString(String)

Unter der Angabe eines individuell wählbaren Trennzeichens können die einzelnen Elemente, z.B. einer Liste, zu einem String zusammengeführt werden, wobei das Trennzeichen zur Abtrennung der einzelnen Elemente verwendet wird.

Beispiel:

$CMS_SET(myList, ["Haus","Schlüssel","Fenster"])$
$CMS_VALUE(myList.toString("; "))$

Die Elemente der Liste myList werden mit Semikolon und Leerzeichen voneinander getrennt ausgegeben:

Haus; Schlüssel; Fenster
Methodenname Rückgabetyp Verfügbar seit
toString(String) String 4.0.0

toString(String, String)

Short form for collection.map(attribute).toString(delimiter)
Methodenname Rückgabetyp Verfügbar seit
toString(String, String) String 4.0.0

type

Methodenname Rückgabetyp Verfügbar seit
type String

© 2005 - 2015 e-Spirit AG | Alle Rechte vorbehalten. | Letzte Änderung: 2013-12-09