com.tszadel.qctools4j.model.metadata
Class Attachment

java.lang.Object
  extended by com.tszadel.qctools4j.model.metadata.Attachment
All Implemented Interfaces:
IQcModel

public class Attachment
extends Object
implements IQcModel

This class define an attachment in quality center.

Author:
tszadel

Constructor Summary
Attachment()
          Constructor without file
Attachment(File pContent)
          Constructor.
 
Method Summary
 File getContent()
          Returns content.
 String getDescription()
          Get the field CR_DESCRIPTION.
 String getEntity()
          Get the field CR_ENTITY.
 Date getLastModified()
          Returns lastModified.
 String getName()
          Returns the name of the attachment.
 Integer getRefId()
          Get the field CR_REF_ID.
 String getRefType()
          Get the field CR_REF_TYPE.
 void setContent(File pContent)
          Sets the content.
 void setDescription(String pDescription)
          Set the field CR_DESCRIPTION.
 void setEntity(String pEntity)
          Set the field CR_ENTITY.
 void setLastModified(Date lastModified)
          Sets the lastModified.
 void setRefId(Integer pRefId)
          Set the field CR_REF_ID.
 void setRefType(String pRefType)
          Set the field CR_REF_TYPE.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Attachment

public Attachment()
Constructor without file


Attachment

public Attachment(File pContent)
Constructor.

Parameters:
pContent - The content file.
Method Detail

getContent

public File getContent()
Returns content.

Returns:
The content.

getDescription

public String getDescription()
Get the field CR_DESCRIPTION.
Description:A description of the attachment.

Returns:
The field CR_DESCRIPTION.

getEntity

public String getEntity()
Get the field CR_ENTITY.
Description:The name of the table containing the item to which the file or URL is attached.

Returns:
The field CR_ENTITY.

getLastModified

public Date getLastModified()
Returns lastModified.

Returns:
The lastModified.

getName

public String getName()
Returns the name of the attachment.

Returns:
The name of the attachment.

getRefId

public Integer getRefId()
Get the field CR_REF_ID.
Description:The record ID.

Returns:
The field CR_REF_ID.

getRefType

public String getRefType()
Get the field CR_REF_TYPE.
Description:The type of attachment: either File or Internet Web Address.

Returns:
The field CR_REF_TYPE.

setContent

public void setContent(File pContent)
Sets the content.

Parameters:
pContent - The content.

setDescription

public void setDescription(String pDescription)
Set the field CR_DESCRIPTION.
Description:A description of the attachment.

Parameters:
pDescription - The value of the field CR_DESCRIPTION.

setEntity

public void setEntity(String pEntity)
Set the field CR_ENTITY.
Description:The name of the table containing the item to which the file or URL is attached.

Parameters:
pEntity - The value of the field CR_ENTITY.

setLastModified

public void setLastModified(Date lastModified)
Sets the lastModified.

Parameters:
lastModified - The lastModified.

setRefId

public void setRefId(Integer pRefId)
Set the field CR_REF_ID.
Description:The record ID.

Parameters:
pRefId - The value of the field CR_REF_ID.

setRefType

public void setRefType(String pRefType)
Set the field CR_REF_TYPE.
Description:The type of attachment: either File or Internet Web Address.

Parameters:
pRefType - The value of the field CR_REF_TYPE.