public class CollectionPropertyHidingTransformer extends Node2BeanTransformerImpl
Constructor and Description |
---|
CollectionPropertyHidingTransformer(Class<?> beanClass,
String collectionName) |
Modifier and Type | Method and Description |
---|---|
boolean |
canHandleValue(TypeMapping typeMapping,
TransformationState state,
PropertyTypeDescriptor descriptor,
Map.Entry<String,Object> value)
Returns whether this transformer can consume the given value and assign it to the currently-processed bean.
|
TypeDescriptor |
getPropertyType() |
protected TypeDescriptor |
onResolveType(TypeMapping typeMapping,
TransformationState state,
TypeDescriptor resolvedType,
ComponentProvider componentProvider)
Called once the type should have been resolved.
|
void |
setProperty(TypeMapping mapping,
TransformationState state,
PropertyTypeDescriptor descriptor,
Map<String,Object> values)
Set this property on that bean.
|
boolean |
supportsValueClaims()
Returns whether this transformer handles value claims, helping
Node2BeanProcessor to report unknown bean properties. |
convertPropertyValue, createCollectionFromMap, getChildren, getProperties, initBean, isBeanEnabled, newBeanInstance, newState, resolveType
protected TypeDescriptor onResolveType(TypeMapping typeMapping, TransformationState state, TypeDescriptor resolvedType, ComponentProvider componentProvider)
Node2BeanTransformerImpl
onResolveType
in class Node2BeanTransformerImpl
public void setProperty(TypeMapping mapping, TransformationState state, PropertyTypeDescriptor descriptor, Map<String,Object> values) throws javax.jcr.RepositoryException
Node2BeanTransformer
setProperty
in interface Node2BeanTransformer
setProperty
in class Node2BeanTransformerImpl
javax.jcr.RepositoryException
public boolean canHandleValue(TypeMapping typeMapping, TransformationState state, PropertyTypeDescriptor descriptor, Map.Entry<String,Object> value)
Node2BeanTransformer
This is used in conjunction with Node2BeanProcessor
to help it report unknown properties
(aka TransformationProblems
).
canHandleValue
in interface Node2BeanTransformer
canHandleValue
in class Node2BeanTransformerImpl
public boolean supportsValueClaims()
Node2BeanTransformer
Node2BeanProcessor
to report unknown bean properties.supportsValueClaims
in interface Node2BeanTransformer
supportsValueClaims
in class Node2BeanTransformerImpl
#canHandleValue(TypeMapping, TransformationState, PropertyTypeDescriptor, Entry)
accordingly.public TypeDescriptor getPropertyType()
Copyright © 2003–2018 Magnolia International Ltd.. All rights reserved.