|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ParsingRule
A rule that is part of a software discovery process.
Nested Class Summary | |
---|---|
static class |
ParsingRule.RuleType
Rule types. |
Method Summary | |
---|---|
java.lang.String |
getId()
Returns the ID of this ParsingRule object. |
ParsingRule.RuleType |
getRuleType()
Returns the type of this rule. |
ParsingRule |
ofType(ParsingRule.RuleType ruleType)
Sets the type of this ParsingRule. |
void |
setRegularExpression(java.lang.String regExpStr)
Sets a regular expression to this ParsingRule. |
void |
setRuleType(ParsingRule.RuleType ruleType)
Sets the type of this ParsingRule. |
ParsingRule |
withRegularExpression(java.lang.String regExpStr)
Sets the rule to be the specified regular expression. |
Method Detail |
---|
java.lang.String getId()
void setRuleType(ParsingRule.RuleType ruleType)
ruleType
- the type of this rule.ParsingRule ofType(ParsingRule.RuleType ruleType)
ruleType
- the type of this rule
ParsingRule.RuleType getRuleType()
void setRegularExpression(java.lang.String regExpStr)
setRuleType(ParsingRule.RuleType.PORT); setRegularExpression("80??"); setRuleType(ParsingRule.RuleType.COMMAND_LINE); setRegularExpression(".+\\s+(\\s+)$");A literal string can be passed instead of a regular expression is required. A call to this method overrides a previous call to it or to withRegularExpression(String regExpStr).
regExpStr
- the regular expression which should be set.ParsingRule withRegularExpression(java.lang.String regExpStr)
setRuleType(ParsingRule.RuleType.PORT); ParsingRule myPRule = withRegularExpression("80??"); setRuleType(ParsingRule.RuleType.COMMAND_LINE); setRegularExpression(".+\\s+(\\s+)$");A literal string can be passed instead of a regular expression is required. A call to this method overrides a previous call to it or to setRegularExpression(String regExpStr).
regExpStr
- the regular expression which should be set.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |