Modifier and Type | Class and Description |
---|---|
static class |
Topic.DescriptorImpl
The Descriptor for the Topic.
|
Constructor and Description |
---|
Topic()
Default empty constructor.
|
Topic(CompareType compareType,
String pattern)
Default DataBound constructor.
|
Modifier and Type | Method and Description |
---|---|
CompareType |
getCompareType()
The CompareType used.
|
String |
getPattern()
The pattern to match on.
|
boolean |
isInteresting(String topic)
Tells if the given topic are matched by this rule.
|
void |
setCompareType(CompareType compareType)
The CompareType used.
|
void |
setPattern(String pattern)
The pattern to match on.
|
public Topic()
@DataBoundConstructor public Topic(CompareType compareType, String pattern)
compareType
- the CompareType to use when comparing with the pattern.pattern
- the pattern to match on.public CompareType getCompareType()
public void setCompareType(CompareType compareType)
compareType
- the compareType.public String getPattern()
public void setPattern(String pattern)
pattern
- the pattern.public boolean isInteresting(String topic)
topic
- the topic in change.Copyright © 2004-2016. All Rights Reserved.