org.kuali.student.r1.common.assembly.data
Class Data

java.lang.Object
  extended by org.kuali.student.r1.common.assembly.data.Data
All Implemented Interfaces:
Serializable, Iterable<Data.Property>, HasChangeCallbacks
Direct Known Subclasses:
ModifiableData, VersionData

public class Data
extends Object
implements Serializable, Iterable<Data.Property>, HasChangeCallbacks

Kuali Student data representation. Data is essentially a map of values.

Author:
Kuali Student Team
See Also:
Data.BooleanValue, Serialized Form

Nested Class Summary
static class Data.BooleanValue
           
static class Data.DataType
           
static class Data.DataValue
           
static class Data.DateValue
           
static class Data.DoubleValue
           
static class Data.FloatValue
           
static class Data.IntegerKey
           
static class Data.IntegerValue
           
static interface Data.Key
           
static class Data.LongValue
           
static interface Data.Property
           
static class Data.ShortValue
           
static class Data.StringKey
           
static class Data.StringValue
           
static class Data.TimestampValue
           
static class Data.TimeValue
           
static interface Data.Value
          Kuali Student data value interface for use in Data
 
Nested classes/interfaces inherited from interface org.kuali.student.r1.common.assembly.data.HasChangeCallbacks
HasChangeCallbacks.ChangeCallback, HasChangeCallbacks.ChangeCallbackRegistration, HasChangeCallbacks.ChangeType
 
Field Summary
static Data.Key WILDCARD_KEY
           
 
Constructor Summary
Data()
           
Data(String className)
           
 
Method Summary
protected  void _getQueryPath(QueryPath path)
           
 void add(Boolean value)
           
 void add(Data value)
           
 void add(Date value)
           
 void add(Double value)
           
 void add(Float value)
           
 void add(Integer value)
           
 void add(Long value)
           
 void add(Short value)
           
 void add(String value)
           
 void add(Time value)
           
 void add(Timestamp value)
           
 HasChangeCallbacks.ChangeCallbackRegistration addChangeCallback(HasChangeCallbacks.ChangeCallback callback)
           
 boolean containsKey(Data.Key key)
           
 boolean containsValue(Data.Value value)
           
 Data copy()
           
 Data copy(Data target, boolean recurse)
           
protected  void execChangeCallbacks(HasChangeCallbacks.ChangeType type, QueryPath path)
           
<T> T
get(Data.Key key)
           
<T> T
get(Integer key)
           
<T> T
get(String key)
           
 String getClassName()
           
 Data getParent()
           
 QueryPath getQueryPath()
           
 Class<?> getType(QueryPath path)
           
 boolean isEmpty()
           
 Iterator<Data.Property> iterator()
           
 Set keySet()
           
<T> T
query(QueryPath path)
           
<T> T
query(String path)
           
 Iterator<Data.Property> realPropertyIterator()
           
 void remove(Data.Key key)
           
 void set(Data.Key key, Boolean value)
           
 void set(Data.Key key, Data.Value value)
           
 void set(Data.Key key, Data value)
           
 void set(Data.Key key, Date value)
           
 void set(Data.Key key, Double value)
           
 void set(Data.Key key, Float value)
           
 void set(Data.Key key, Integer value)
           
 void set(Data.Key key, Long value)
           
 void set(Data.Key key, Short value)
           
 void set(Data.Key key, String value)
           
 void set(Data.Key key, Time value)
           
 void set(Data.Key key, Timestamp value)
           
 void set(Integer key, Boolean value)
           
 void set(Integer key, Data value)
           
 void set(Integer key, Date value)
           
 void set(Integer key, Double value)
           
 void set(Integer key, Float value)
           
 void set(Integer key, Integer value)
           
 void set(Integer key, Long value)
           
 void set(Integer key, Short value)
           
 void set(Integer key, String value)
           
 void set(Integer key, Time value)
           
 void set(Integer key, Timestamp value)
           
 void set(String key, Boolean value)
           
 void set(String key, Data value)
           
 void set(String key, Date value)
           
 void set(String key, Double value)
           
 void set(String key, Float value)
           
 void set(String key, Integer value)
           
 void set(String key, Long value)
           
 void set(String key, Short value)
           
 void set(String key, String value)
           
 void set(String key, Time value)
           
 void set(String key, Timestamp value)
           
 Integer size()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

WILDCARD_KEY

public static final Data.Key WILDCARD_KEY
Constructor Detail

Data

public Data()

Data

public Data(String className)
Method Detail

_getQueryPath

protected void _getQueryPath(QueryPath path)

execChangeCallbacks

protected void execChangeCallbacks(HasChangeCallbacks.ChangeType type,
                                   QueryPath path)

addChangeCallback

public HasChangeCallbacks.ChangeCallbackRegistration addChangeCallback(HasChangeCallbacks.ChangeCallback callback)
Specified by:
addChangeCallback in interface HasChangeCallbacks

remove

public void remove(Data.Key key)

add

public void add(Boolean value)

add

public void add(Data value)

add

public void add(Date value)

add

public void add(Double value)

add

public void add(Float value)

add

public void add(Integer value)

add

public void add(Long value)

add

public void add(Short value)

add

public void add(String value)

add

public void add(Time value)

add

public void add(Timestamp value)

copy

public Data copy()

copy

public Data copy(Data target,
                 boolean recurse)

get

public <T> T get(Integer key)

get

public <T> T get(Data.Key key)

get

public <T> T get(String key)

getClassName

public String getClassName()

getParent

public Data getParent()

getQueryPath

public QueryPath getQueryPath()

realPropertyIterator

public Iterator<Data.Property> realPropertyIterator()
Returns:
an Iterator that does not contain any _runtimeData

iterator

public Iterator<Data.Property> iterator()
Specified by:
iterator in interface Iterable<Data.Property>

query

public <T> T query(QueryPath path)

query

public <T> T query(String path)

getType

public Class<?> getType(QueryPath path)

set

public void set(Integer key,
                Boolean value)

set

public void set(Integer key,
                Data value)

set

public void set(Integer key,
                Date value)

set

public void set(Integer key,
                Double value)

set

public void set(Integer key,
                Float value)

set

public void set(Integer key,
                Integer value)

set

public void set(Integer key,
                Long value)

set

public void set(Integer key,
                Short value)

set

public void set(Integer key,
                String value)

set

public void set(Integer key,
                Time value)

set

public void set(Integer key,
                Timestamp value)

set

public void set(Data.Key key,
                Boolean value)

set

public void set(Data.Key key,
                Data value)

set

public void set(Data.Key key,
                Date value)

set

public void set(Data.Key key,
                Double value)

set

public void set(Data.Key key,
                Float value)

set

public void set(Data.Key key,
                Integer value)

set

public void set(Data.Key key,
                Long value)

set

public void set(Data.Key key,
                Short value)

set

public void set(Data.Key key,
                String value)

set

public void set(Data.Key key,
                Time value)

set

public void set(Data.Key key,
                Timestamp value)

set

public void set(Data.Key key,
                Data.Value value)

set

public void set(String key,
                Boolean value)

set

public void set(String key,
                Data value)

set

public void set(String key,
                Date value)

set

public void set(String key,
                Double value)

set

public void set(String key,
                Float value)

set

public void set(String key,
                Integer value)

set

public void set(String key,
                Long value)

set

public void set(String key,
                Short value)

set

public void set(String key,
                String value)

set

public void set(String key,
                Time value)

set

public void set(String key,
                Timestamp value)

size

public Integer size()

toString

public String toString()
Overrides:
toString in class Object

containsKey

public boolean containsKey(Data.Key key)

containsValue

public boolean containsValue(Data.Value value)

keySet

public Set keySet()
Returns:
set of top level keys known to this data branch

isEmpty

public boolean isEmpty()


Copyright © 2004-2012 The Kuali Foundation. All Rights Reserved.