Class EPBaseNamedObject

java.lang.Object
com.espertech.esper.common.client.soda.EPBaseNamedObject
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
PatternGuardExpr, PatternObserverExpr, View

public abstract class EPBaseNamedObject extends Object implements Serializable
Base class for named runtime objects such as views, patterns guards and observers.
See Also:
  • Constructor Details

    • EPBaseNamedObject

      public EPBaseNamedObject()
      Ctor.
    • EPBaseNamedObject

      public EPBaseNamedObject(String namespace, String name, List<Expression> parameters)
      Ctor.
      Parameters:
      namespace - is the namespace of the object, i.e. view namespace or pattern object namespace
      name - is the name of the object, such as the view name
      parameters - is the optional parameters to the view or pattern object, or empty list for no parameters
  • Method Details

    • getNamespace

      public String getNamespace()
      Returns the object namespace name.
      Returns:
      namespace name
    • setNamespace

      public void setNamespace(String namespace)
      Sets the object namespace name
      Parameters:
      namespace - to set
    • getName

      public String getName()
      Returns the object name.
      Returns:
      object name
    • setName

      public void setName(String name)
      Sets the object name.
      Parameters:
      name - is the object name to set
    • getParameters

      public List<Expression> getParameters()
      Returns the object parameters.
      Returns:
      parameters for object, empty list for no parameters
    • setParameters

      public void setParameters(List<Expression> parameters)
      Sets the parameters for the object.
      Parameters:
      parameters - parameters for object, empty list for no parameters
    • toEPL

      public void toEPL(StringWriter writer)
      Writes the object in EPL-syntax in the format "namespace:name(parameter, parameter, ..., parameter)"
      Parameters:
      writer - to output to