Uses of Class
org.apache.juneau.BeanMap
Packages that use BeanMap
Package
Description
-
Uses of BeanMap in org.apache.juneau
Methods in org.apache.juneau that return BeanMapModifier and TypeMethodDescriptionBeanMap.forEachProperty
(Predicate<BeanPropertyMeta> filter, Consumer<BeanPropertyMeta> action) Performs an action on each property in this bean map.BeanMap.forEachValue
(Predicate<Object> valueFilter, BeanPropertyConsumer action) Invokes all the getters on this bean and consumes the results.BeanMap<?>
BeanMapEntry.getBeanMap()
Returns the bean map that contains this property.BeanMap.load
(Reader r, ReaderParser p) Convenience method for setting multiple property values by passing in a reader.Convenience method for setting multiple property values by passing in JSON text.Convenience method for loading this map with the contents of the specified map.<T> BeanMap<T>
BeanContext.newBeanMap
(Class<T> c) final <T> BeanMap<T>
BeanSession.newBeanMap
(Class<T> c) final <T> BeanMap<T>
BeanSession.newBeanMap
(Object outer, Class<T> c) Same asBeanSession.newBeanMap(Class)
, except used for instantiating inner member classes that must be instantiated within another class instance.static <T> BeanMap<T>
BeanMap.of
(T bean) Convenience method for wrapping a bean inside aBeanMap
.<T> BeanMap<T>
BeanContext.toBeanMap
(T object) final <T> BeanMap<T>
BeanSession.toBeanMap
(T o) final <T> BeanMap<T>
final <T> BeanMap<T>
BeanSession.toBeanMap
(T o, PropertyNamer propertyNamer) Methods in org.apache.juneau with parameters of type BeanMapModifier and TypeMethodDescriptionvoid
Adds a value to aCollection
or array property.void
Adds a value to aMap
or bean property.Equivalent to callingget(Object)
, but is faster since it avoids looking up the property meta.Equivalent to callinggetRaw(Object)
, but is faster since it avoids looking up the property meta.Equivalent to callingput(String, Object)
, but is faster since it avoids looking up the property meta.Constructors in org.apache.juneau with parameters of type BeanMapModifierConstructorDescriptionprotected
BeanMapEntry
(BeanMap<?> beanMap, BeanPropertyMeta property, String pName) Constructor. -
Uses of BeanMap in org.apache.juneau.internal
Subclasses of BeanMap in org.apache.juneau.internalModifier and TypeClassDescriptionclass
Represents a wrappedBeanMap
where property values can be overridden, removed, or reordered without affecting the underlying bean.Methods in org.apache.juneau.internal that return BeanMapModifier and TypeMethodDescriptionDelegateBeanMap.forEachProperty
(Predicate<BeanPropertyMeta> filter, Consumer<BeanPropertyMeta> action) -
Uses of BeanMap in org.apache.juneau.parser
Methods in org.apache.juneau.parser with parameters of type BeanMapModifier and TypeMethodDescriptionprotected final <T> void
ParserSession.onUnknownProperty
(String propertyName, BeanMap<T> beanMap, Object value) Method that gets called when an unknown bean property name is encountered. -
Uses of BeanMap in org.apache.juneau.serializer
Methods in org.apache.juneau.serializer with parameters of type BeanMapModifier and TypeMethodDescriptionprotected static final BeanPropertyValue
SerializerSession.createBeanTypeNameProperty
(BeanMap<?> m, String typeName) Create a "_type" property that contains the dictionary name of the bean.