com.projectdarkstar.tools.dtc.data
Class TestExecutionTagDTO

java.lang.Object
  extended by com.projectdarkstar.tools.dtc.data.AbstractDTO
      extended by com.projectdarkstar.tools.dtc.data.TestExecutionTagDTO
All Implemented Interfaces:
Serializable

public class TestExecutionTagDTO
extends AbstractDTO

Represents a tag entity used to categorize TestExecutionDTO objects.

See Also:
Serialized Form

Constructor Summary
TestExecutionTagDTO(Long id, String tag)
           
 
Method Summary
 boolean equals(Object o)
           
 List<TestExecutionDTO> getExecutions()
          Returns the list of TestExecutionDTO objects that are tagged with this tag.
 Long getId()
          Returns the id of the entity in persistent storage
 String getTag()
           
 int hashCode()
           
protected  void setExecutions(List<TestExecutionDTO> executions)
           
 void setId(Long id)
           
protected  void setTag(String tag)
           
 void updateExecutions(List<TestExecutionDTO> executions)
           
 void updateTag(String tag)
           
 void validate()
          Validates that each attribute and pending updated attribute (from the updatedAttributes Map) has a valid value in the context of the particular object.
 
Methods inherited from class com.projectdarkstar.tools.dtc.data.AbstractDTO
checkBlank, checkNull, getFullyPopulated, getUpdatedAttributes, updateAttribute, valueToValidate
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestExecutionTagDTO

public TestExecutionTagDTO(Long id,
                           String tag)
Method Detail

getId

public Long getId()
Returns the id of the entity in persistent storage

Specified by:
getId in class AbstractDTO
Returns:
id of the entity

setId

public void setId(Long id)

getTag

public String getTag()

setTag

protected void setTag(String tag)

updateTag

public void updateTag(String tag)
               throws DTCInvalidDataException
Throws:
DTCInvalidDataException

getExecutions

public List<TestExecutionDTO> getExecutions()
Returns the list of TestExecutionDTO objects that are tagged with this tag.

Returns:
test executions tagged with this tag.

setExecutions

protected void setExecutions(List<TestExecutionDTO> executions)

updateExecutions

public void updateExecutions(List<TestExecutionDTO> executions)
                      throws DTCInvalidDataException
Throws:
DTCInvalidDataException

validate

public void validate()
              throws DTCInvalidDataException
Description copied from class: AbstractDTO
Validates that each attribute and pending updated attribute (from the updatedAttributes Map) has a valid value in the context of the particular object.

Specified by:
validate in class AbstractDTO
Throws:
DTCInvalidDataException

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2013. All Rights Reserved.