public class MapProperty extends ComplexProperty
| Modifier and Type | Field and Description |
|---|---|
protected Field |
field
The corresponding field.
|
childrendeprecatedFallback, flags, forceDirty, IS_READONLY, isDeprecated, NON_CANON_INDEX, parentDIRTY_MASK, IS_DIRTY, IS_MODIFIED, IS_MOVED, IS_NEW, IS_PHANTOM, IS_REMOVED, NONE| Constructor and Description |
|---|
MapProperty(Property parent,
Field field) |
MapProperty(Property parent,
Field field,
int flags) |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(PropertyVisitor visitor,
Object arg)
Method that implement the visitor pattern.
|
Object |
clone() |
Field |
getField()
Gets the field corresponding to this property.
|
String |
getName()
Gets the property name.
|
ComplexType |
getType()
Get the type of the field corresponding to this property.
|
void |
internalSetValue(Serializable value)
Sets the given normalized value.
|
boolean |
isContainer()
Whether this property is a container - this means the property value is a map or a list.
|
addEmpty, addValue, addValue, clear, clearDirtyFlags, containsKey, containsValue, entrySet, get, get, get, getChild, getChildren, getDefaultValue, getDirtyChildren, getNonPhantomChild, getNonPhantomChildren, getValueForWrite, init, internalGetChild, internalGetValue, isEmpty, isNormalized, isSameAs, keySet, normalize, put, putAll, remove, setValue, values, visitChildrenappendDirtyFlags, areFlagsSet, clearFlags, collectPath, computeRemovedProperty, convertTo, getDeprecatedParent, getDirtyFlags, getObjectResolver, getParent, getPath, getRoot, getSchema, getValue, getValue, getValue, getValue, getValueDeprecation, getXPath, getXPath, isComplex, isDeprecated, isDirty, isForceDirty, isList, isModified, isMoved, isNew, isPhantom, isReadOnly, isRemoved, isSameValue, isScalar, iterator, moveTo, newDeprecatedMessage, newInstance, remove, removePhantomFlag, resolvePath, resolvePath, setDirtyFlags, setFlags, setForceDirty, setIsModified, setIsMoved, setIsNew, setIsRemoved, setReadOnly, setValue, setValue, setValueDeprecation, size, toString, validateTypeequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll, sizeforEach, spliteratorpublic MapProperty(Property parent, Field field)
public MapProperty(Property parent, Field field, int flags)
public void internalSetValue(Serializable value) throws PropertyException
AbstractPropertyThis applies only for nodes that physically store a value (that means non container nodes). Container nodes does nothing.
internalSetValue in class AbstractPropertyPropertyExceptionpublic boolean isContainer()
Property
Container properties don't have a scalar values. Container values are computed each time they are requested - by
calling on of the getValue methods - by collecting the values of the child properties.
public String getName()
Propertypublic ComplexType getType()
PropertygetType in interface PropertygetType in class ComplexPropertypublic Field getField()
PropertyThe field is the object defining the property. You can see the field as a java class and the property as a class instance
public Object clone() throws CloneNotSupportedException
clone in class ObjectCloneNotSupportedExceptionpublic void accept(PropertyVisitor visitor, Object arg) throws PropertyException
PropertyThe visitor must return null to stop visiting children otherwise a context object that will be passed as the arg argument to children
visitor - the visitor to acceptarg - an argument passed to the visitor. This should be used by the visitor to carry on the visiting
context.PropertyExceptionCopyright © 2019 Nuxeo. All rights reserved.