Class ProjectEvent

java.lang.Object
ca.phon.project.ProjectEvent

public class ProjectEvent extends Object
Wrapper for project events.
  • Method Details

    • newCorpusAddedEvent

      public static ProjectEvent newCorpusAddedEvent(String corpus)
      Create a new corpus added event.
      Parameters:
      corpus - the name of the added corpus
      Returns:
    • newCorpusRemovedEvent

      public static ProjectEvent newCorpusRemovedEvent(String corpus)
      Create a new corpus removed event
      Parameters:
      corpus - the name of the removed corpus
      Returns:
    • newCorpusDescriptionChangedEvent

      public static ProjectEvent newCorpusDescriptionChangedEvent(String corpus, String oldDescription, String newDescription)
      Create a new corpus description changed event.
      Parameters:
      corpus -
      newDescription -
      olddescription -
      Returns:
    • newCorpusMediaFolderChangedEvent

      public static ProjectEvent newCorpusMediaFolderChangedEvent(String corpus, String oldFolder, String newFolder)
    • newProjectMediaFolderChangedEvent

      public static ProjectEvent newProjectMediaFolderChangedEvent(String oldFolder, String newFolder)
    • newSessionAddedEvent

      public static ProjectEvent newSessionAddedEvent(String corpus, String session)
      Create a new session added event
      Parameters:
      corpus -
      session -
      Returns:
    • newSessionRemovedEvent

      public static ProjectEvent newSessionRemovedEvent(String corpus, String session)
      Create a new session removed event.
      Parameters:
      corpus -
      session -
      Returns:
    • newSessionChangedEvent

      public static ProjectEvent newSessionChangedEvent(String corpus, String session)
      Create a new session chagned event.
      Parameters:
      corpus -
      session -
      Returns:
    • newNameChangedEvent

      public static ProjectEvent newNameChangedEvent(String oldName, String newName)
      Create a new project name changed event
      Parameters:
      oldName -
      newName -
      Returns:
    • newUUIDChangedEvent

      public static ProjectEvent newUUIDChangedEvent(String oldUUID, String newUUID)
      Create a new project uuid chagned event
      Parameters:
      oldUUID -
      newUUID -
      Returns:
    • getEventType

      public ProjectEvent.ProjectEventType getEventType()
      Get the event type
      Returns:
      the project event type
    • setEventType

      public void setEventType(ProjectEvent.ProjectEventType eventType)
      Set the event type
    • getProperty

      public String getProperty(ProjectEvent.ProjectEventProp prop)
      Get the value of the specified property.
      Parameters:
      prop -
      Returns:
      value
    • setProperty

      public void setProperty(ProjectEvent.ProjectEventProp prop, String value)
      Set the value of an event property
      Parameters:
      prop -
      value -