net.sourceforge.servletspy
Interface IContext

All Known Implementing Classes:
Context

public interface IContext

The IContext describes the context for a subject to node graph serialization.

Author:
arno schumacher

Method Summary
 void add(java.lang.String name, java.lang.Object subject)
          Asks the engine to do a serialization for the provided subject.
 java.lang.String getName()
          Returns the name of the current serialization task.
 java.lang.Object getSubject()
          Returns the current subject, the object to be serialized.
 java.lang.String getValue()
          Returns the current result of the serialization task.
 void invalidate()
          Invalidates the current context.
 void proceed()
          Passes the serialization task to the next handler.
 void setSubject(java.lang.Object object)
          Replaces the current subject by the provided object.
 void setValue(java.lang.String value)
          Sets the result of the serialization task.
 

Method Detail

proceed

public void proceed()
Passes the serialization task to the next handler.


getName

public java.lang.String getName()
Returns the name of the current serialization task.

Returns:
The name of the serialization task.

getValue

public java.lang.String getValue()
Returns the current result of the serialization task.

Returns:
The value

setValue

public void setValue(java.lang.String value)
Sets the result of the serialization task.

Parameters:
value - The result

invalidate

public void invalidate()
Invalidates the current context. The current result will not be part of the serialization node graph.


add

public void add(java.lang.String name,
                java.lang.Object subject)
Asks the engine to do a serialization for the provided subject.

Parameters:
name - The name of subject
subject - The subject to be serialized

getSubject

public java.lang.Object getSubject()
Returns the current subject, the object to be serialized.

Returns:
The subject.

setSubject

public void setSubject(java.lang.Object object)
Replaces the current subject by the provided object.

Parameters:
object - The new subject.


Copyright 2005-2005-2006 Arno Schumacher. All Rights Reserved.