com.endeca.infront.cartridge.model
Class JsonAttribute

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.ArrayList<T>
              extended by com.endeca.infront.cartridge.model.Attribute<Object>
                  extended by 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

Field Summary
 
Fields inherited from class java.util.AbstractList
modCount
 
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.
 
Method Summary
 
Methods inherited from class com.endeca.infront.cartridge.model.Attribute
toString, toString
 
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
 
Methods inherited from class java.util.AbstractList
equals, hashCode, iterator, listIterator, listIterator, subList
 
Methods inherited from class java.util.AbstractCollection
containsAll, removeAll, retainAll
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
containsAll, equals, hashCode, iterator, listIterator, listIterator, removeAll, retainAll, subList
 

Constructor Detail

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.