public class Defect extends QTestBaseModel<Defect>
NL, properties, RESERVED_NAME| Constructor and Description |
|---|
Defect() |
| Modifier and Type | Method and Description |
|---|---|
Defect |
addAttachment(Attachment attachment)
Adds attachment to defect.
|
Defect |
addFieldValue(FieldValue value)
Adds the property value to defect and return itself.
|
Defect |
clone() |
java.lang.String |
elementName() |
java.util.List<Attachment> |
getAttachments() |
java.util.List<FieldValue> |
getFieldValues() |
java.lang.Long |
getId() |
java.lang.String |
getPid() |
Defect |
setAttachments(java.util.List<Attachment> attachments)
Sets the list of defect's attachments.
|
Defect |
setFieldValues(java.util.List<FieldValue> values)
Sets the list of field value objects.
|
Defect |
setId(java.lang.Long id)
Sets the defect identifier.
|
Defect |
setPid(java.lang.String pid)
Sets the defect pid value.
|
Defect |
withAttachments(java.util.List<Attachment> attachments)
Sets the list of defect's attachments.
|
Defect |
withFieldValues(java.util.List<FieldValue> values)
Sets the list of field value objects.
|
Defect |
withId(java.lang.Long id)
Sets the defect identifier and return itself.
|
Defect |
withPid(java.lang.String pid)
Sets the defect pid value.
|
getBinaryFromInputStream, getLinks, getWebUrl, setLinks, setWebUrl, validateInputStream, withLinks, withWebUrlappendPropertiesTo, appendPropertiesTo, asDate, asDate, asInteger, asInteger, asLong, asLong, asString, asString, getProperties, getProperty, getPropertyMap, hasProperties, hasProperty, isVisible, jsonElementName, removeProperty, setPropertiesFrom, setProperty, toJson, toStringpublic java.lang.Long getId()
public Defect setId(java.lang.Long id)
id - the given defect identifier.public Defect withId(java.lang.Long id)
id - the given defect identifier value to set.public java.lang.String getPid()
public Defect setPid(java.lang.String pid)
pid - the given defect pid value to set.public Defect withPid(java.lang.String pid)
pid - the given defect pid value to set.public java.util.List<FieldValue> getFieldValues()
public Defect setFieldValues(java.util.List<FieldValue> values)
values - the given field value objects to set.public Defect withFieldValues(java.util.List<FieldValue> values)
values - the given field value objects to set.public Defect addFieldValue(FieldValue value)
value - the given field value to add.public java.util.List<Attachment> getAttachments()
public Defect setAttachments(java.util.List<Attachment> attachments)
attachments - the given list of defect's attachment to set.public Defect withAttachments(java.util.List<Attachment> attachments)
attachments - the given list of defect's attachment to set.public Defect addAttachment(Attachment attachment)
attachment - the given attachment to add to defect.Defect object.public Defect clone()
clone in class PropertyContainerpublic java.lang.String elementName()
elementName in class PropertyContainer