/** * Render the variable return array * * @return */ public StringBuilder renderVariables() { StringBuilder s = new StringBuilder(StaticStrings.STRING_SQUARE_BRACE_OPEN); getVariables().forEach(event -> s.append(StaticStrings.STRING_SINGLE_QUOTES) .append(event) .append(StaticStrings.STRING_SINGLE_QUOTES) .append(StaticStrings.STRING_COMMNA)); StringBuilder s2; if (s.indexOf(StaticStrings.STRING_COMMNA) > 0) { s2 = s.deleteCharAt(s.lastIndexOf(StaticStrings.STRING_COMMNA)); } else { s2 = s; } s2.append(StaticStrings.STRING_SQUARE_BRACE_CLOSED); s2.append(",'") .append(getID()) .append(StaticStrings.STRING_SINGLE_QUOTES); s2.append(",'") .append(getClassCanonicalName()) .append(StaticStrings.STRING_SINGLE_QUOTES); return s2; }
/** * Render the variable return array * * @return */ public StringBuilder renderVariables() { StringBuilder s = new StringBuilder(StaticStrings.STRING_SQUARE_BRACE_OPEN); getVariables().forEach(event -> s.append(StaticStrings.STRING_SINGLE_QUOTES) .append(event) .append(StaticStrings.STRING_SINGLE_QUOTES) .append(StaticStrings.STRING_COMMNA)); StringBuilder s2; if (s.indexOf(StaticStrings.STRING_COMMNA) > 0) { s2 = s.deleteCharAt(s.lastIndexOf(StaticStrings.STRING_COMMNA)); } else { s2 = s; } s2.append(StaticStrings.STRING_SQUARE_BRACE_CLOSED); s2.append(",'") .append(getID()) .append(StaticStrings.STRING_SINGLE_QUOTES); s2.append(",'") .append(getClassCanonicalName()) .append(StaticStrings.STRING_SINGLE_QUOTES); return s2; }
/** * Render the variable return array * * @return */ public StringBuilder renderVariables() { StringBuilder s = new StringBuilder(StaticStrings.STRING_SQUARE_BRACE_OPEN); getVariables().forEach(event -> s.append(StaticStrings.STRING_SINGLE_QUOTES) .append(event) .append(StaticStrings.STRING_SINGLE_QUOTES) .append(StaticStrings.STRING_COMMNA)); StringBuilder s2; if (s.indexOf(StaticStrings.STRING_COMMNA) > 0) { s2 = s.deleteCharAt(s.lastIndexOf(StaticStrings.STRING_COMMNA)); } else { s2 = s; } s2.append(StaticStrings.STRING_SQUARE_BRACE_CLOSED); s2.append(",'") .append(getID()) .append(StaticStrings.STRING_SINGLE_QUOTES); s2.append(",'") .append(getClassCanonicalName()) .append(StaticStrings.STRING_SINGLE_QUOTES); return s2; }
/** * Constructs an event with the given name * * @param name * The name of this event * @param eventType * The event type of this event * @param component * The component type of this event */ @SuppressWarnings("unchecked") public Event(String name, EventTypes eventType, ComponentHierarchyBase component) { super(ComponentTypes.Event); setID(getClassCanonicalName()); setName(name); setComponent(component); setEventType(eventType); returnVariable(StaticStrings.LOCAL_STORAGE_VARIABLE_KEY); }
/** * Constructs an event with the given name * * @param name * The name of this event * @param eventType * The event type of this event * @param component * The component type of this event */ @SuppressWarnings("unchecked") public Event(String name, EventTypes eventType, ComponentHierarchyBase component) { super(ComponentTypes.Event); setID(getClassCanonicalName()); setName(name); setComponent(component); setEventType(eventType); returnVariable(StaticStrings.LOCAL_STORAGE_VARIABLE_KEY); }
/** * Constructs an event with the given name * * @param name * The name of this event * @param eventType * The event type of this event * @param component * The component type of this event */ @SuppressWarnings("unchecked") public Event(String name, EventTypes eventType, ComponentHierarchyBase component) { super(ComponentTypes.Event); setID(getClassCanonicalName()); setName(name); setComponent(component); setEventType(eventType); returnVariable(StaticStrings.LOCAL_STORAGE_VARIABLE_KEY); }