public class StreamConfigParser extends java.lang.Object implements StreamLookupEnvironment
Constructor and Description |
---|
StreamConfigParser(org.springframework.data.repository.CrudRepository<? extends BaseDefinition,java.lang.String> repository) |
Modifier and Type | Method and Description |
---|---|
static boolean |
isValidStreamName(java.lang.String streamname)
Verify the supplied name is a valid stream name.
|
StreamNode |
lookupStream(java.lang.String name)
Look up a previously defined stream by name, returns the parsed AST for it.
|
StreamNode |
parse(java.lang.String stream)
Parse a stream definition without supplying the stream name up front.
|
StreamNode |
parse(java.lang.String name,
java.lang.String stream)
Parse a stream definition.
|
java.lang.String |
toString() |
public StreamConfigParser(org.springframework.data.repository.CrudRepository<? extends BaseDefinition,java.lang.String> repository)
public StreamNode parse(java.lang.String stream)
mystream = http | file
public StreamNode parse(java.lang.String name, java.lang.String stream)
StreamDefinitionException
public static boolean isValidStreamName(java.lang.String streamname)
streamname
- the name to validatepublic java.lang.String toString()
toString
in class java.lang.Object
public StreamNode lookupStream(java.lang.String name)
StreamLookupEnvironment
lookupStream
in interface StreamLookupEnvironment
name
- name of the stream