public final class GadgetIdentifier extends Object
FORM_TAG
as key.
A gadget may decide to identify inner components by handing over an identifier with a custom key.
Hierarchical gadgets should envelop
inner forms to enable hierarchic identification.Modifier and Type | Field and Description |
---|---|
static String |
FORM_TAG
The generic default form-based identifier's key.
|
Modifier and Type | Method and Description |
---|---|
GadgetIdentifier |
envelop(String name,
Serializable key)
Envelop this identifier as inner node of a new identifier.
|
GadgetIdentifier |
forLanguage(Language language)
Get an identifier from this instance for a specific language.
|
static GadgetIdentifier |
from(GomFormElement form)
Get a default identifier for a given form element.
|
GadgetIdentifier |
getInnerNode()
Get the inner node of a hierarchical identifier.
|
Serializable |
getKey()
Get the key of the specific gadget component.
|
Language |
getLanguage()
Get the language this identifier was created for.
|
String |
getName()
Get the name of the gadget.
|
static GadgetIdentifier |
on(String name,
Serializable key)
Get an identifier based on the given name and key.
|
public static final String FORM_TAG
public static GadgetIdentifier from(@NotNull GomFormElement form)
form
- The form element to base the identifier upon.public static GadgetIdentifier on(@NotNull String name, @NotNull Serializable key)
name
- The name of the gadget.key
- The key of a specific component.public GadgetIdentifier envelop(@NotNull String name, @NotNull Serializable key)
name
- The name of the outer gadget node.key
- A tag for gadget specific identification means.public GadgetIdentifier forLanguage(@NotNull Language language)
language
- The language to get the identifier for.@NotNull public String getName()
@NotNull public Serializable getKey()
@Nullable public Language getLanguage()
null
@Nullable public GadgetIdentifier getInnerNode()
null
.Copyright © 2014 e-Spirit AG. All Rights Reserved. Build 5.0_BETA.500