org.sonar.api.batch
Class Event

java.lang.Object
  extended by org.sonar.api.database.BaseIdentifiable
      extended by org.sonar.api.batch.Event

public class Event
extends BaseIdentifiable

Since:
1.10

Field Summary
static String CATEGORY_ALERT
           
static String CATEGORY_PROFILE
           
static String CATEGORY_VERSION
           
 
Constructor Summary
Event()
           
Event(String name, String description, String category)
           
Event(String name, String description, String category, Date date, Integer resourceId)
          Deprecated. in 2.5
Event(String name, String description, String category, Snapshot snapshot)
          Deprecated. in 2.5
 
Method Summary
 String getCategory()
           
 Date getCreatedAt()
           
 String getData()
           
 Date getDate()
           
 String getDescription()
           
 String getName()
           
 Integer getResourceId()
           
 Snapshot getSnapshot()
           
 boolean isLinkedToSnapshot()
           
 boolean isProfileCategory()
           
 boolean isVersionCategory()
           
 void setCategory(String category)
           
 void setCreatedAt(Date createdAt)
           
 Event setData(String data)
           
 void setDate(Date date)
           
 void setDescription(String description)
           
 void setName(String name)
           
 Event setResourceId(Integer resourceId)
           
 void setSnapshot(Snapshot snapshot)
           
 String toString()
           
 
Methods inherited from class org.sonar.api.database.BaseIdentifiable
getId, setId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CATEGORY_VERSION

public static final String CATEGORY_VERSION
See Also:
Constant Field Values

CATEGORY_ALERT

public static final String CATEGORY_ALERT
See Also:
Constant Field Values

CATEGORY_PROFILE

public static final String CATEGORY_PROFILE
See Also:
Constant Field Values
Constructor Detail

Event

public Event()

Event

public Event(String name,
             String description,
             String category)

Event

@Deprecated
public Event(String name,
                        String description,
                        String category,
                        Date date,
                        Integer resourceId)
Deprecated. in 2.5


Event

@Deprecated
public Event(String name,
                        String description,
                        String category,
                        Snapshot snapshot)
Deprecated. in 2.5

Method Detail

getName

public String getName()

setName

public void setName(String name)

getDescription

public String getDescription()

setDescription

public void setDescription(String description)

getCategory

public String getCategory()

setCategory

public void setCategory(String category)

isVersionCategory

public boolean isVersionCategory()

isProfileCategory

public boolean isProfileCategory()

getDate

public Date getDate()

setDate

public void setDate(Date date)

getSnapshot

public Snapshot getSnapshot()

getCreatedAt

public Date getCreatedAt()

setCreatedAt

public void setCreatedAt(Date createdAt)

setSnapshot

public final void setSnapshot(Snapshot snapshot)

getResourceId

public Integer getResourceId()

setResourceId

public Event setResourceId(Integer resourceId)

getData

public String getData()

setData

public Event setData(String data)

toString

public String toString()
Overrides:
toString in class Object

isLinkedToSnapshot

public boolean isLinkedToSnapshot()


Copyright © 2009-2011 SonarSource. All Rights Reserved.