com.sonyericsson.hudson.plugins.gerrit.gerritevents.dto.attr
Class Approval

java.lang.Object
  extended by com.sonyericsson.hudson.plugins.gerrit.gerritevents.dto.attr.Approval
All Implemented Interfaces:
GerritJsonDTO

public class Approval
extends Object
implements GerritJsonDTO

Represents a Gerrit JSON Approval DTO.

Author:
James E. Blair <jeblair@hp.com>

Constructor Summary
Approval()
          Default constructor.
Approval(net.sf.json.JSONObject json)
          Constructor that fills with data directly.
 
Method Summary
 boolean equals(Object obj)
           
 void fromJson(net.sf.json.JSONObject json)
          Takes a JSON object and fills its internal data-structure.
 String getType()
          The approval category.
 String getValue()
          The approval value.
 int hashCode()
           
 void setType(String type)
          The approval category.
 void setValue(String value)
          Set the approval value.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Approval

public Approval()
Default constructor.


Approval

public Approval(net.sf.json.JSONObject json)
Constructor that fills with data directly.

Parameters:
json - the JSON object with corresponding data.
Method Detail

fromJson

public void fromJson(net.sf.json.JSONObject json)
Description copied from interface: GerritJsonDTO
Takes a JSON object and fills its internal data-structure.

Specified by:
fromJson in interface GerritJsonDTO
Parameters:
json - the JSON Object.

getType

public String getType()
The approval category.

Returns:
the type.

setType

public void setType(String type)
The approval category.

Parameters:
type - the type.

getValue

public String getValue()
The approval value.

Returns:
the approval value.

setValue

public void setValue(String value)
Set the approval value.

Parameters:
value - the approval value.

toString

public String toString()
Overrides:
toString in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

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


Copyright © 2004-2012 Hudson. All Rights Reserved.