Uses of Class
org.apache.juneau.commons.bean.BeanMap
Packages that use BeanMap
Package
Description
Bean-modeling layer for Juneau.
Marshalling API
Internal Utilities
JCS (JSON Canonicalization Scheme) Marshalling Support.
JSON Marshalling Support.
Markdown serializer and parser support for Apache Juneau.
Parser API
Serializer API
-
Uses of BeanMap in org.apache.juneau.commons.bean
Methods in org.apache.juneau.commons.bean 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.Convenience method for loading this map with the contents of the specified map.static <T> BeanMap<T>BeanMap.of(T bean) Convenience method for wrapping a bean inside aBeanMap.static <T> BeanMap<T>Methods in org.apache.juneau.commons.bean with parameters of type BeanMapModifier and TypeMethodDescriptionvoidAdds a value to aCollectionor array property.voidAdds a value to aMapor 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.commons.bean with parameters of type BeanMapModifierConstructorDescriptionprotectedBeanMapEntry(BeanMap<?> beanMap, BeanPropertyMeta property, String pName) Constructor. -
Uses of BeanMap in org.apache.juneau.marshall
Methods in org.apache.juneau.marshall that return BeanMapModifier and TypeMethodDescriptionstatic <T> BeanMap<T>BeanMapLoader.load(BeanMap<T> m, Reader r, ReaderParser p) Populates the suppliedBeanMapwith the contents of the reader using the specifiedReaderParser.static <T> BeanMap<T>Populates the suppliedBeanMapwith the contents of the JSON text ininput.<T> BeanMap<T>MarshallingContext.newBeanMap(Class<T> c) final <T> BeanMap<T>MarshallingSession.newBeanMap(Class<T> c) final <T> BeanMap<T>MarshallingSession.newBeanMap(Object outer, Class<T> c) Same asMarshallingSession.newBeanMap(Class), except used for instantiating inner member classes that must be instantiated within another class instance.<T> BeanMap<T>MarshallingContext.toBeanMap(T object) final <T> BeanMap<T>MarshallingSession.toBeanMap(T o) final <T> BeanMap<T>final <T> BeanMap<T>MarshallingSession.toBeanMap(T o, PropertyNamer propertyNamer) Methods in org.apache.juneau.marshall with parameters of type BeanMapModifier and TypeMethodDescriptionstatic <T> BeanMap<T>BeanMapLoader.load(BeanMap<T> m, Reader r, ReaderParser p) Populates the suppliedBeanMapwith the contents of the reader using the specifiedReaderParser.static <T> BeanMap<T>Populates the suppliedBeanMapwith the contents of the JSON text ininput. -
Uses of BeanMap in org.apache.juneau.marshall.internal
Subclasses of BeanMap in org.apache.juneau.marshall.internalModifier and TypeClassDescriptionclassRepresents a wrappedBeanMapwhere property values can be overridden, removed, or reordered without affecting the underlying bean.Methods in org.apache.juneau.marshall.internal that return BeanMapModifier and TypeMethodDescriptionDelegateBeanMap.forEachProperty(Predicate<BeanPropertyMeta> filter, Consumer<BeanPropertyMeta> action) -
Uses of BeanMap in org.apache.juneau.marshall.jcs
Methods in org.apache.juneau.marshall.jcs with parameters of type BeanMapModifier and TypeMethodDescriptionprotected SerializerWriter<?>JcsSerializerSession.writeBeanMap(JsonWriter<?> out, BeanMap<?> m, String typeName) -
Uses of BeanMap in org.apache.juneau.marshall.json
Methods in org.apache.juneau.marshall.json with parameters of type BeanMapModifier and TypeMethodDescriptionprotected SerializerWriter<?>JsonSerializerSession.writeBeanMap(JsonWriter<?> out, BeanMap<?> m, String typeName) -
Uses of BeanMap in org.apache.juneau.marshall.markdown
Methods in org.apache.juneau.marshall.markdown with parameters of type BeanMapModifier and TypeMethodDescriptionprotected voidMarkdownSerializerSession.writeBeanMap(MarkdownWriter w, BeanMap<?> bm, ClassMeta<?> eType, ClassMeta<?> aType) Serializes a bean as a 2-column key/value Markdown table.protected voidMarkdownDocSerializerSession.writeBeanWithHeadings(MarkdownWriter w, BeanMap<?> bm, int level) Serializes a bean in document mode, using headings to structure nested objects. -
Uses of BeanMap in org.apache.juneau.marshall.parser
Methods in org.apache.juneau.marshall.parser that return BeanMapModifier and TypeMethodDescriptionstatic <T> BeanMap<T>MissingRequiredPropertyException.check(ParserSession session, BeanMap<T> m) Throws this exception if the bean map is missing required properties.protected final <T> BeanMap<T>ParserSession.checkRequired(BeanMap<T> m) ThrowsMissingRequiredPropertyExceptionif the bean map is missing@BeanProp(required=true)properties.Methods in org.apache.juneau.marshall.parser with parameters of type BeanMapModifier and TypeMethodDescriptionstatic <T> BeanMap<T>MissingRequiredPropertyException.check(ParserSession session, BeanMap<T> m) Throws this exception if the bean map is missing required properties.protected final <T> BeanMap<T>ParserSession.checkRequired(BeanMap<T> m) ThrowsMissingRequiredPropertyExceptionif the bean map is missing@BeanProp(required=true)properties.protected final <T> voidParserSession.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.marshall.serializer
Methods in org.apache.juneau.marshall.serializer with parameters of type BeanMapModifier and TypeMethodDescriptionprotected static final BeanPropertyValueSerializerSession.createBeanTypeNameProperty(BeanMap<?> m, String typeName) Create a "_type" property that contains the dictionary name of the bean.