org.qi4j.library.eventsourcing.domain.source.helper
Class EventParameters
java.lang.Object
org.qi4j.library.eventsourcing.domain.source.helper.EventParameters
public class EventParameters
- extends Object
Utility class to pick out parameters by name or index as strings from a DomainEventValue
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EventParameters
public EventParameters()
getParameter
public static String getParameter(DomainEventValue eventValue,
String name)
- Get the named parameter from an eventValue.
- Parameters:
eventValue
- eventValue with parametersname
- name of parameter
- Returns:
- the parameter with the given name or null
getParameter
public static String getParameter(DomainEventValue eventValue,
int idx)
- Get parameter with given index.
- Parameters:
eventValue
- eventValue with parametersidx
- index of parameter
- Returns:
- the parameter with the given index or null
- Throws:
JSONException