Package ca.phon.project
Class ProjectEvent
java.lang.Object
ca.phon.project.ProjectEvent
Wrapper for project events.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Event propertiesstatic enum
Event type -
Method Summary
Modifier and TypeMethodDescriptionGet the event typeGet the value of the specified property.static ProjectEvent
newCorpusAddedEvent
(String corpus) Create a new corpus added event.static ProjectEvent
newCorpusDescriptionChangedEvent
(String corpus, String oldDescription, String newDescription) Create a new corpus description changed event.static ProjectEvent
newCorpusMediaFolderChangedEvent
(String corpus, String oldFolder, String newFolder) static ProjectEvent
newCorpusRemovedEvent
(String corpus) Create a new corpus removed eventstatic ProjectEvent
newNameChangedEvent
(String oldName, String newName) Create a new project name changed eventstatic ProjectEvent
newProjectMediaFolderChangedEvent
(String oldFolder, String newFolder) static ProjectEvent
newSessionAddedEvent
(String corpus, String session) Create a new session added eventstatic ProjectEvent
newSessionChangedEvent
(String corpus, String session) Create a new session chagned event.static ProjectEvent
newSessionRemovedEvent
(String corpus, String session) Create a new session removed event.static ProjectEvent
newUUIDChangedEvent
(String oldUUID, String newUUID) Create a new project uuid chagned eventvoid
setEventType
(ProjectEvent.ProjectEventType eventType) Set the event typevoid
setProperty
(ProjectEvent.ProjectEventProp prop, String value) Set the value of an event property
-
Method Details
-
newCorpusAddedEvent
Create a new corpus added event.- Parameters:
corpus
- the name of the added corpus- Returns:
-
newCorpusRemovedEvent
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
-
newSessionAddedEvent
Create a new session added event- Parameters:
corpus
-session
-- Returns:
-
newSessionRemovedEvent
Create a new session removed event.- Parameters:
corpus
-session
-- Returns:
-
newSessionChangedEvent
Create a new session chagned event.- Parameters:
corpus
-session
-- Returns:
-
newNameChangedEvent
Create a new project name changed event- Parameters:
oldName
-newName
-- Returns:
-
newUUIDChangedEvent
Create a new project uuid chagned event- Parameters:
oldUUID
-newUUID
-- Returns:
-
getEventType
Get the event type- Returns:
- the project event type
-
setEventType
Set the event type -
getProperty
Get the value of the specified property.- Parameters:
prop
-- Returns:
- value
-
setProperty
Set the value of an event property- Parameters:
prop
-value
-
-