public final class WebCmsDataEntry extends Object
Map or a Collection (usually of Map items).
WebCmsDataImportServiceImpl,
WebCmsDataImportAction| Modifier and Type | Method and Description |
|---|---|
void |
addCompletedCallback(Consumer consumer)
Adds a callback to execute once the data entry is completed
|
String |
getLocation()
Attempt to build a relative location of this data entry in the parent data.
|
String |
getParentKey()
Shortcut to retrieve the key of the optional parent data.
|
<V,U extends V> |
getSingleValue(Class<V> expectedType)
Get the single value and cast it to the expected type.
|
boolean |
hasParent() |
boolean |
isCollectionData() |
boolean |
isMapData() |
boolean |
isSingleValue() |
String |
toString() |
public static final String ROOT
public boolean isMapData()
public boolean isCollectionData()
public <V,U extends V> U getSingleValue(Class<V> expectedType)
V - expected typeU - specific (generic-aware) implementation of the expected typeexpectedType - to cast topublic boolean isSingleValue()
public boolean hasParent()
public String getParentKey()
null if no parent datapublic String getLocation()
public void addCompletedCallback(Consumer consumer)
consumer - the callbackCopyright © 2020. All rights reserved.