project35.mda.model
Class ChangeObject

java.lang.Object
  extended by project35.mda.model.ChangeObject

public class ChangeObject
extends java.lang.Object

Object that carries information about events governing record creation.


Copyright (c) 2008 Kevin Garwood for Project35. The original code was developed by Kevin Garwood for the University of Manchester. Revisions have been made for Project35, a project that is independent of that institution. This code is licensed under the Academic Free License version 3.0. The code attribution for the original code is included here:

Copyright (c) Kevin Garwood and University of Manchester 2007. All rights reserved. Licensed under the Academic Free License version 3.0. For more information on the terms and conditions, please see the file "LICENSE" that is included in this distribution.


Version:
1.0
Author:
Kevin Garwood (kgarwood@users.sourceforge.net)

Field Summary
static int CHILDREN_CREATED
          if the change object is has "children_created", then the record name provider passed is actually the parent of the children which are created.
static int OBJECT_CANCELLED
           
static int OBJECT_CREATED
           
static int OBJECT_DELETED
           
static int OBJECT_GAINS_FOCUS
           
static int OBJECT_UPDATED
           
static int REVISING_CHILDREN_LIST
          this is used to remove and then add a revised list of children for a given list field model
 
Constructor Summary
ChangeObject(RecordNameProvider recordNameProvider, int changeType)
           
 
Method Summary
 int getChangeType()
           
 java.lang.Object getChild()
           
 java.util.ArrayList getChildren()
           
 java.util.ArrayList getNewChildrenList()
           
 java.util.ArrayList getOldChildrenList()
           
 RecordNameProvider getRecord()
           
 void setChild(java.lang.Object child)
           
 void setChildren(java.util.ArrayList children)
           
 void setOldAndNewChildrenList(java.util.ArrayList oldChildrenList, java.util.ArrayList newChildrenList)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OBJECT_DELETED

public static final int OBJECT_DELETED
See Also:
Constant Field Values

OBJECT_UPDATED

public static final int OBJECT_UPDATED
See Also:
Constant Field Values

OBJECT_CANCELLED

public static final int OBJECT_CANCELLED
See Also:
Constant Field Values

OBJECT_GAINS_FOCUS

public static final int OBJECT_GAINS_FOCUS
See Also:
Constant Field Values

OBJECT_CREATED

public static final int OBJECT_CREATED
See Also:
Constant Field Values

CHILDREN_CREATED

public static final int CHILDREN_CREATED
if the change object is has "children_created", then the record name provider passed is actually the parent of the children which are created. in future, this class will be cleaned up to make a more consistent view of what the record name provider means

See Also:
Constant Field Values

REVISING_CHILDREN_LIST

public static final int REVISING_CHILDREN_LIST
this is used to remove and then add a revised list of children for a given list field model

See Also:
Constant Field Values
Constructor Detail

ChangeObject

public ChangeObject(RecordNameProvider recordNameProvider,
                    int changeType)
Method Detail

getChangeType

public int getChangeType()

getRecord

public RecordNameProvider getRecord()

getChildren

public java.util.ArrayList getChildren()

getChild

public java.lang.Object getChild()

getOldChildrenList

public java.util.ArrayList getOldChildrenList()

getNewChildrenList

public java.util.ArrayList getNewChildrenList()

setOldAndNewChildrenList

public void setOldAndNewChildrenList(java.util.ArrayList oldChildrenList,
                                     java.util.ArrayList newChildrenList)

setChild

public void setChild(java.lang.Object child)

setChildren

public void setChildren(java.util.ArrayList children)