sos.reports
Class DefaultReportEvent.DefaultElementChange

java.lang.Object
  |
  +--sos.reports.DefaultReportEvent.DefaultElementChange
All Implemented Interfaces:
ReportEvent.ElementChange
Enclosing class:
DefaultReportEvent

public static class DefaultReportEvent.DefaultElementChange
extends java.lang.Object
implements ReportEvent.ElementChange

An implementation of ReportEvent.ElementChange.

Since:
1.0

Field Summary
 
Fields inherited from interface sos.reports.ReportEvent.ElementChange
ATTRIBUTE_CHANGE, ATTRIBUTE_SET_CHANGE, CONTENT_CHANGE, DELETION, INSERTION, STRUCTURE_CHANGE
 
Constructor Summary
DefaultReportEvent.DefaultElementChange(int type)
          Creates change for the specified type in which the element structure did not change.
DefaultReportEvent.DefaultElementChange(int type, java.util.List childrenAdded, java.util.List chidrenRemoved)
          Creates a change for the specified type in which the specified child elements were added and/or removed.
 
Method Summary
 java.util.List getChildrenAdded()
          Returns the elements that were inserted.
 java.util.List getChildrenRemoved()
          Returns the elements that were deleted.
 int getType()
          Returns the type of this change.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultReportEvent.DefaultElementChange

public DefaultReportEvent.DefaultElementChange(int type)
Creates change for the specified type in which the element structure did not change.

Parameters:
type - type of the change

DefaultReportEvent.DefaultElementChange

public DefaultReportEvent.DefaultElementChange(int type,
                                               java.util.List childrenAdded,
                                               java.util.List chidrenRemoved)
Creates a change for the specified type in which the specified child elements were added and/or removed.

Parameters:
type - type of the change
childrenAdded - child elements added
Method Detail

getChildrenAdded

public java.util.List getChildrenAdded()
Description copied from interface: ReportEvent.ElementChange
Returns the elements that were inserted.

Specified by:
getChildrenAdded in interface ReportEvent.ElementChange
Returns:
the elements that were inserted

getChildrenRemoved

public java.util.List getChildrenRemoved()
Description copied from interface: ReportEvent.ElementChange
Returns the elements that were deleted.

Specified by:
getChildrenRemoved in interface ReportEvent.ElementChange
Returns:
the elements that were deleted

getType

public int getType()
Description copied from interface: ReportEvent.ElementChange
Returns the type of this change.

Specified by:
getType in interface ReportEvent.ElementChange
Returns:
the type of this change, typically one of
  • INSERTION
  • DELETION
  • STRUCTURE_CHANGE
  • CONTENT_CHANGE
  • ATTRIBUTE_CHANGE
  • ATTRIBUTE_SET_CHANGE


Copyright 2003, 2004 Side of Software (SOS). All rights reserved.