public interface SyntaxIdentifier
The contract for this interface is such that
isThisSyntax(String)
should only return true, if and only
if ALL the configured patterns are matched within the document.
SyntaxRoutingService
Modifier and Type | Method and Description |
---|---|
void |
addPattern(java.lang.String pattern)
Add a pattern to the list of configured patterns used to match a
document.
|
java.lang.String |
getDestination()
Get the configured destination.
|
java.util.List<java.lang.String> |
getPatterns()
Get a list of configured patterns.
|
boolean |
isThisSyntax(java.lang.String message)
Determine if this SyntaxIdentifer considers the message to
match all the configured patterns.
|
void |
setDestination(java.lang.String dest)
Set the configured destination.
|
void |
setPatterns(java.util.List<java.lang.String> l)
Set a list of configured patterns.
|
void setDestination(java.lang.String dest)
This is the value that will be stored against the metadata key specified by SyntaxRoutingService.
dest
- the destination.java.lang.String getDestination()
void addPattern(java.lang.String pattern) throws ServiceException
pattern
- a pattern.ServiceException
- if the pattern could not be added.java.util.List<java.lang.String> getPatterns()
void setPatterns(java.util.List<java.lang.String> l)
l
- the list.boolean isThisSyntax(java.lang.String message) throws ServiceException
message
- the message to identify against.ServiceException
- if there was an error with the pattern.