public class DelegatingMultiValueSubnodeTransformer extends DelegatingMultiValueFieldTransformer
Transformer
is dedicated to the MultiField
;
it considers entries as child nodes of a sub-node (named after the field) and delegates property handling to their respective sub-fields.
The storage strategy is that of the MultiValueSubChildrenNodePropertiesTransformer
:
createProperty
childNodeType, subItemBaseName
basePropertyName, definition, i18NPropertyName, relatedFormItem, type
Constructor and Description |
---|
DelegatingMultiValueSubnodeTransformer(com.vaadin.data.Item relatedFormItem,
ConfiguredFieldDefinition definition,
Class<com.vaadin.data.util.PropertysetItem> type,
I18NAuthoringSupport i18NAuthoringSupport) |
Modifier and Type | Method and Description |
---|---|
protected JcrNodeAdapter |
getRootItem()
Overridden to get an intermediate sub-node where the multiple nodes are stored, rather than directly under the root node.
|
protected String |
getSubItemBaseName()
Overridden to keep only the digit part in child-node names.
|
childItemRegexRepresentation, createNewItemName, createProperty, getBasePropertyName, getStoredChildNodes, incrementRegexRepresentation, populateStoredChildItems, readFromItem, removeProperty, setI18NPropertyName, setLocale, writeToItem
definePropertyName, deriveLocaleAwareName, getI18NAuthoringSupport, getLocale, getOrCreateProperty, getOrCreateProperty, getRelatedFormItem, getType, hasI18NSupport, isReadOnly, setReadOnly, setType
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getType, hasI18NSupport, isReadOnly, setReadOnly
getLocale
public DelegatingMultiValueSubnodeTransformer(com.vaadin.data.Item relatedFormItem, ConfiguredFieldDefinition definition, Class<com.vaadin.data.util.PropertysetItem> type, I18NAuthoringSupport i18NAuthoringSupport)
protected String getSubItemBaseName()
getSubItemBaseName
in class DelegatingMultiValueFieldTransformer
protected JcrNodeAdapter getRootItem()
The sub-node is created if it doesn't exist, and is named after the multi-value field definition.
getRootItem
in class DelegatingMultiValueFieldTransformer
Copyright © 2015 Magnolia International Ltd.. All rights reserved.