Options
All
  • Public
  • Public/Protected
  • All
Menu

Class EventFactory

Factory for creation of Events from JSON objects.

Hierarchy

  • EventFactory

Index

Methods

Static Protected getEventType

  • Attempts to create a EventType from a string.

    Parameters

    • type: string

      string containing a EventType text.

    Returns EventType

Static parse

  • parse(jsonObject: Object): Event
  • Attempts to create an Event from a JSON object.

    Parameters

    • jsonObject: Object

      JSON Object representing the Event.

    Returns Event

Static Protected parseConnectorAddedEvent

  • Attempts to create an ConnectorAddedEvent.

    Parameters

    • jsonObject: Object

      JSON Object representing the Event.

    • keys: Dictionary<ValidationType>

      Keys of the jsonObject that will be validated against the matched ValidationTypes.

    Returns ConnectorAddedEvent

Static Protected parseConnectorDeletedEvent

  • Attempts to create an ConnectorDeletedEvent.

    Parameters

    • jsonObject: Object

      JSON Object representing the Event.

    • keys: Dictionary<ValidationType>

      Keys of the jsonObject that will be validated against the matched ValidationTypes.

    Returns ConnectorDeletedEvent

Static Protected parseConnectorPropertyDeletedEvent

Static Protected parseConnectorPropertySetEvent

  • Attempts to create a ConnectorPropertySetEvent.

    Parameters

    • jsonObject: Object

      JSON Object representing the Event.

    • keys: Dictionary<ValidationType>

      Keys of the jsonObject that will be validated against the matched ValidationTypes.

    Returns ConnectorPropertySetEvent

Static Protected parseEdgeAddedEvent

  • Attempts to create an EdgeAddedEvent.

    Parameters

    • jsonObject: Object

      JSON Object representing the Event.

    • keys: Dictionary<ValidationType>

      Keys of the jsonObject that will be validated against the matched ValidationTypes.

    Returns EdgeAddedEvent

Static Protected parseEdgeDeletedEvent

  • Attempts to create an EdgeDeletedEvent.

    Parameters

    • jsonObject: Object

      JSON Object representing the Event.

    • keys: Dictionary<ValidationType>

      Keys of the jsonObject that will be validated against the matched ValidationTypes.

    Returns EdgeDeletedEvent

Static Protected parseEdgePropertyDeletedEvent

  • Attempts to create a EdgePropertyDeletedEvent.

    Parameters

    • jsonObject: Object

      JSON Object representing the Event.

    • keys: Dictionary<ValidationType>

      Keys of the jsonObject that will be validated against the matched ValidationTypes.

    Returns EdgePropertyDeletedEvent

Static Protected parseEdgePropertySetEvent

  • Attempts to create a EdgePropertySetEvent.

    Parameters

    • jsonObject: Object

      JSON Object representing the Event.

    • keys: Dictionary<ValidationType>

      Keys of the jsonObject that will be validated against the matched ValidationTypes.

    Returns EdgePropertySetEvent

Static Protected parseModelAddedEvent

  • Attempts to create an ModelAddedEvent.

    Parameters

    • jsonObject: Object

      JSON Object representing the Event.

    • keys: Dictionary<ValidationType>

      Keys of the jsonObject that will be validated against the matched ValidationTypes.

    Returns ModelAddedEvent

Static Protected parseModelDeletedEvent

  • Attempts to create an ModelDeletedEvent.

    Parameters

    • jsonObject: Object

      JSON Object representing the Event.

    • keys: Dictionary<ValidationType>

      Keys of the jsonObject that will be validated against the matched ValidationTypes.

    Returns ModelDeletedEvent

Static Protected parseModelPropertyDeletedEvent

  • Attempts to create a ModelPropertyDeletedEvent.

    Parameters

    • jsonObject: Object

      JSON Object representing the Event.

    • keys: Dictionary<ValidationType>

      Keys of the jsonObject that will be validated against the matched ValidationTypes.

    Returns ModelPropertyDeletedEvent

Static Protected parseModelPropertySetEvent

  • Attempts to create a ModelPropertySetEvent.

    Parameters

    • jsonObject: Object

      JSON Object representing the Event.

    • keys: Dictionary<ValidationType>

      Keys of the jsonObject that will be validated against the matched ValidationTypes.

    Returns ModelPropertySetEvent

Static Protected parseNodeAddedEvent

  • Attempts to create an NodeAddedEvent.

    Parameters

    • jsonObject: Object

      JSON Object representing the Event.

    • keys: Dictionary<ValidationType>

      Keys of the jsonObject that will be validated against the matched ValidationTypes.

    Returns NodeAddedEvent

Static Protected parseNodeDeletedEvent

  • Attempts to create an NodeDeletedEvent.

    Parameters

    • jsonObject: Object

      JSON Object representing the Event.

    • keys: Dictionary<ValidationType>

      Keys of the jsonObject that will be validated against the matched ValidationTypes.

    Returns NodeDeletedEvent

Static Protected parseNodePropertyDeletedEvent

  • Attempts to create a NodePropertyDeletedEvent.

    Parameters

    • jsonObject: Object

      JSON Object representing the Event.

    • keys: Dictionary<ValidationType>

      Keys of the jsonObject that will be validated against the matched ValidationTypes.

    Returns NodePropertyDeletedEvent

Static Protected parseNodePropertySetEvent

  • Attempts to create a NodePropertySetEvent.

    Parameters

    • jsonObject: Object

      JSON Object representing the Event.

    • keys: Dictionary<ValidationType>

      Keys of the jsonObject that will be validated against the matched ValidationTypes.

    Returns NodePropertySetEvent

Static Protected parseProperties

  • parseProperties(properties: Object): Dictionary<any>
  • Parses a properties object and returns a valid properties object.

    Parameters

    • properties: Object

    Returns Dictionary<any>

Static Protected validateObject

  • validateObject(object: Object, keysWithType: Dictionary<ValidationType>): void
  • Validates the keys of the passed objects against the passed ValidationTypes.

    Parameters

    • object: Object

      Object that should be validated.

    • keysWithType: Dictionary<ValidationType>

      Dictionary of the keys that will be validated, with as value the type of validation.

    Returns void

Generated using TypeDoc