public class DefaultScriptArchUtils extends AbstractScriptArchUtils
Constructor and Description |
---|
DefaultScriptArchUtils(@NotNull java.lang.Iterable<Pair<java.lang.Integer,java.lang.String>> eventTypes,
@NotNull java.lang.String subtypeAttribute,
int eventTypeNo)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
@NotNull java.lang.String |
getArchetypeNameForEventType(int eventType)
Returns the archetype for an event type.
|
addEventsToJList, getEventNames, getEventType, indexToEventType, typeName
public DefaultScriptArchUtils(@NotNull @NotNull java.lang.Iterable<Pair<java.lang.Integer,java.lang.String>> eventTypes, @NotNull @NotNull java.lang.String subtypeAttribute, int eventTypeNo)
eventTypes
- the event typessubtypeAttribute
- the attribute name for the subtype fieldeventTypeNo
- the object type for event objects@NotNull public @NotNull java.lang.String getArchetypeNameForEventType(int eventType) throws UndefinedEventArchetypeTypeException
ScriptArchUtils
eventType
- the event typeUndefinedEventArchetypeTypeException
- if the event type is
undefined