edu.uky.rch.ept.data
Class ResourceChangeEvent

java.lang.Object
  extended byedu.uky.rch.ept.data.ResourceChangeEvent

public class ResourceChangeEvent
extends Object

Resource change events describe changes to resources.

In order to handle additional event types that may be introduced in future releases of the platform, clients should not write code that presumes the set of event types is closed.

This class is not intended to be instantiated by clients.

Author:
Sandeep Bodapati

Field Summary
static short E_CREATE_COLLECTION
          Create collection event
static short E_DELETE_COLLECTION
          Delete collection event
static short E_DELETE_CXML
          Delete XML (with concurrent hierarchies) event
static short E_DELETE_RESOURCE
          Delete resource event
static short E_DELETE_XML
          Delete XML event
static short E_INSERT_CXML
          Insert XML (with concurrent hierarchies) event
static short E_INSERT_TEXT
          Insert text event
static short E_INSERT_XML
          Insert XML event
static short E_REPLACE_CXML
          Replace XML (with concurrent hierarchies) node event
static short E_REPLACE_CXML_CONTENT
          Replace XML (with concurrent hierarchies) text event
static short E_REPLACE_TEXT
          Replace text event
static short E_REPLACE_XML
          Replace XML node event
static short E_REPLACE_XML_CONTENT
          Replace XML text event
static short E_STORE_CXML
          Store XML (with concurrent hierarchies) event
static short E_STORE_DTD
          Store DTD event
static short E_STORE_IMAGE
          Store image event
static short E_STORE_RESOURCE
          Store Resource event
static short E_STORE_TEXT
          Store text event
static short E_STORE_XML
          Store XML event
 
Constructor Summary
ResourceChangeEvent(short type, String source)
          Creates a new ResourceChangeEvent.
 
Method Summary
protected  void addParameter(String name, Object value)
          Add the given parameter's name-value pair to the event.
 Object getParameter(String name)
          Get the value of the specified parameter.
 String getSource()
          Returns the address of the resource which generated the event.
 short getType()
          Returns the type of event.
protected  void setSource(String source)
          Set the address of the resource on which the event occured.
protected  void setType(short type)
          Sets the type of event to the given value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

E_CREATE_COLLECTION

public static final short E_CREATE_COLLECTION
Create collection event

See Also:
Constant Field Values

E_DELETE_COLLECTION

public static final short E_DELETE_COLLECTION
Delete collection event

See Also:
Constant Field Values

E_DELETE_RESOURCE

public static final short E_DELETE_RESOURCE
Delete resource event

See Also:
Constant Field Values

E_STORE_RESOURCE

public static final short E_STORE_RESOURCE
Store Resource event

See Also:
Constant Field Values

E_STORE_TEXT

public static final short E_STORE_TEXT
Store text event

See Also:
Constant Field Values

E_INSERT_TEXT

public static final short E_INSERT_TEXT
Insert text event

See Also:
Constant Field Values

E_REPLACE_TEXT

public static final short E_REPLACE_TEXT
Replace text event

See Also:
Constant Field Values

E_STORE_XML

public static final short E_STORE_XML
Store XML event

See Also:
Constant Field Values

E_INSERT_XML

public static final short E_INSERT_XML
Insert XML event

See Also:
Constant Field Values

E_REPLACE_XML

public static final short E_REPLACE_XML
Replace XML node event

See Also:
Constant Field Values

E_REPLACE_XML_CONTENT

public static final short E_REPLACE_XML_CONTENT
Replace XML text event

See Also:
Constant Field Values

E_DELETE_XML

public static final short E_DELETE_XML
Delete XML event

See Also:
Constant Field Values

E_STORE_DTD

public static final short E_STORE_DTD
Store DTD event

See Also:
Constant Field Values

E_STORE_IMAGE

public static final short E_STORE_IMAGE
Store image event

See Also:
Constant Field Values

E_STORE_CXML

public static final short E_STORE_CXML
Store XML (with concurrent hierarchies) event

See Also:
Constant Field Values

E_INSERT_CXML

public static final short E_INSERT_CXML
Insert XML (with concurrent hierarchies) event

See Also:
Constant Field Values

E_REPLACE_CXML

public static final short E_REPLACE_CXML
Replace XML (with concurrent hierarchies) node event

See Also:
Constant Field Values

E_REPLACE_CXML_CONTENT

public static final short E_REPLACE_CXML_CONTENT
Replace XML (with concurrent hierarchies) text event

See Also:
Constant Field Values

E_DELETE_CXML

public static final short E_DELETE_CXML
Delete XML (with concurrent hierarchies) event

See Also:
Constant Field Values
Constructor Detail

ResourceChangeEvent

public ResourceChangeEvent(short type,
                           String source)
Creates a new ResourceChangeEvent.

Parameters:
type - type of event
source - source of the event
Method Detail

getType

public short getType()
Returns the type of event.

Returns:
Returns the type.

setType

protected void setType(short type)
Sets the type of event to the given value.

Parameters:
type - The type to set. The Event type constants defined in this class should be used to set the type.

getSource

public String getSource()
Returns the address of the resource which generated the event.

Returns:
Returns the source.

setSource

protected void setSource(String source)
Set the address of the resource on which the event occured.

Parameters:
source - The source to set.

addParameter

protected void addParameter(String name,
                            Object value)
Add the given parameter's name-value pair to the event.

Parameters:
name - name of the parameter
value - value of the parameter

getParameter

public Object getParameter(String name)
Get the value of the specified parameter.

Parameters:
name - name of the parameter
Returns:
the value of the parameter; null if the parameter is not defined