com.endeca.infront.cartridge.model
Class JsonAttribute
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList<T>
com.endeca.infront.cartridge.model.Attribute<Object>
com.endeca.infront.cartridge.model.JsonAttribute
- All Implemented Interfaces:
- Serializable, Cloneable, Iterable<Object>, Collection<Object>, List<Object>, RandomAccess
public class JsonAttribute
- extends Attribute<Object>
An attribute that stores JSON formatted property values in
a Record.
- See Also:
StringAttribute
,
Attribute
,
Serialized Form
Constructor Summary |
JsonAttribute(Object object)
Constructs an attribute with a JSON object (a List or any other object)
If object is a List, adds all elements to this attribute. |
Methods inherited from class java.util.ArrayList |
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, removeRange, set, size, toArray, toArray, trimToSize |
JsonAttribute
public JsonAttribute(Object object)
- Constructs an attribute with a JSON object (a List or any other object)
If object is a List, adds all elements to this attribute.
Otherwise, adds the object to this attribute as its only value.
- Parameters:
object
- deserialized JSON string in Object form
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.