org.eclipse.actf.validation.reports
Class CreationContext

java.lang.Object
  extended by org.eclipse.actf.validation.reports.ReportElement
      extended by org.eclipse.actf.validation.reports.CreationContext
All Implemented Interfaces:
Serializable

public class CreationContext
extends ReportElement

embodies a single creation context for a component. A creation context expresses the source context for the component's instantiation.

Author:
Mike Squillace
See Also:
Serialized Form

Constructor Summary
CreationContext()
          create a creation context object
CreationContext(String id, String member, StackTraceElement[] trace)
          create a new creation context.
 
Method Summary
 String getComponentID()
           
 String getMember()
           
 StackTraceElement[] getStackTrace()
           
 void setComponentID(String id)
           
 void setMember(String member)
           
 void setStackTrace(StackTraceElement[] trace)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CreationContext

public CreationContext()
create a creation context object


CreationContext

public CreationContext(String id,
                       String member,
                       StackTraceElement[] trace)
create a new creation context. The id should identify the component that has been instantiated, the member should represent the signature of the constructor or some signature of a member that instantiated the object, and the trace should be the stack trace that leads to the member invocation.

Parameters:
id -
member -
trace -
Method Detail

getComponentID

public String getComponentID()

setComponentID

public void setComponentID(String id)

getMember

public String getMember()

setMember

public void setMember(String member)

getStackTrace

public StackTraceElement[] getStackTrace()

setStackTrace

public void setStackTrace(StackTraceElement[] trace)

toString

public String toString()
Overrides:
toString in class Object