raccoon.core.uitest.data
Class ComponentFile

java.lang.Object
  extended by raccoon.core.types.AbsComponent
      extended by raccoon.core.uitest.data.ComponentFile
All Implemented Interfaces:
IBaseComponent

public class ComponentFile
extends AbsComponent

Test data defined in a test instance.

Since:
Raccoon v0.7
Version:
$Id: ComponentFile.java,v 1.1 2004/08/08 20:19:18 crouvrais Exp $
Author:
Cedric ROUVRAIS

Field Summary
 
Fields inherited from class raccoon.core.types.AbsComponent
mIsInError
 
Constructor Summary
ComponentFile()
          Default constructor, required for dynamic instanciation.
ComponentFile(int pSequenceNumber, java.lang.String pFileName)
          Convenience constructor.
 
Method Summary
 void clear()
          Clears all the current errors attached to this component.
 java.lang.String getFileName()
          The file name of this component
 java.net.URL getFileURL()
          The URL of the file.
 java.lang.Object getPayLoad()
          Retrieves the payload associated to this file
 int getSequenceNumber()
          The order of this file for a given sequence.
 void setFileName(java.lang.String pFileName)
          Defines the name of the file containing the description of this component.
 void setFileURL(java.net.URL pFileURL)
          Defines the URL of this file.
 void setPayLoad(java.lang.Object pPayLoad)
          Assigns the content of this file.
 void setSequenceNumber(int pSequenceNumber)
          Defines the sequence number for this component.
 java.lang.String toString()
           
 
Methods inherited from class raccoon.core.types.AbsComponent
isInError
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ComponentFile

public ComponentFile()
Default constructor, required for dynamic instanciation.


ComponentFile

public ComponentFile(int pSequenceNumber,
                     java.lang.String pFileName)
Convenience constructor.

Parameters:
pSequenceNumber - the sequence number of this file within the context of a file
pFileName - the name of the file
Method Detail

getFileName

public java.lang.String getFileName()
The file name of this component

Returns:
the file containing the description of the component

setFileName

public void setFileName(java.lang.String pFileName)
Defines the name of the file containing the description of this component.

Parameters:
pFileName - the name of the file (relative or absolute)

getSequenceNumber

public int getSequenceNumber()
The order of this file for a given sequence.

Returns:
the sequence number.

setSequenceNumber

public void setSequenceNumber(int pSequenceNumber)
Defines the sequence number for this component.

Parameters:
pSequenceNumber - the order in the sequence.

getFileURL

public java.net.URL getFileURL()
The URL of the file.

Returns:
the fully qualified location of the file.

setFileURL

public void setFileURL(java.net.URL pFileURL)
Defines the URL of this file.

Parameters:
pFileURL - the fully qualified URL of the file.

getPayLoad

public java.lang.Object getPayLoad()
Retrieves the payload associated to this file

Returns:
the interpreted contents of this data.

setPayLoad

public void setPayLoad(java.lang.Object pPayLoad)
Assigns the content of this file.

Parameters:
pPayLoad - the interpreted contents of this file.

clear

public void clear()
Clears all the current errors attached to this component.


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright null null. All Rights Reserved.