Class EPBaseNamedObject
java.lang.Object
com.espertech.esper.common.client.soda.EPBaseNamedObject
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
PatternGuardExpr
,PatternObserverExpr
,View
Base class for named runtime objects such as views, patterns guards and observers.
- See Also:
-
Constructor Summary
ConstructorDescriptionCtor.EPBaseNamedObject
(String namespace, String name, List<Expression> parameters) Ctor. -
Method Summary
Modifier and TypeMethodDescriptiongetName()
Returns the object name.Returns the object namespace name.Returns the object parameters.void
Sets the object name.void
setNamespace
(String namespace) Sets the object namespace namevoid
setParameters
(List<Expression> parameters) Sets the parameters for the object.void
toEPL
(StringWriter writer) Writes the object in EPL-syntax in the format "namespace:name(parameter, parameter, ..., parameter)"
-
Constructor Details
-
EPBaseNamedObject
public EPBaseNamedObject()Ctor. -
EPBaseNamedObject
Ctor.- Parameters:
namespace
- is the namespace of the object, i.e. view namespace or pattern object namespacename
- is the name of the object, such as the view nameparameters
- is the optional parameters to the view or pattern object, or empty list for no parameters
-
-
Method Details
-
getNamespace
Returns the object namespace name.- Returns:
- namespace name
-
setNamespace
Sets the object namespace name- Parameters:
namespace
- to set
-
getName
Returns the object name.- Returns:
- object name
-
setName
Sets the object name.- Parameters:
name
- is the object name to set
-
getParameters
Returns the object parameters.- Returns:
- parameters for object, empty list for no parameters
-
setParameters
Sets the parameters for the object.- Parameters:
parameters
- parameters for object, empty list for no parameters
-
toEPL
Writes the object in EPL-syntax in the format "namespace:name(parameter, parameter, ..., parameter)"- Parameters:
writer
- to output to
-