public final class Rule extends Object
Class which represents rule which will be used during searching for the canonical page
| Constructor and Description |
|---|
Rule(String prefixPatternString,
String lookupPath,
boolean isStrict)
Constructor for Rule.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
String |
getLookupPath() |
int |
hashCode() |
boolean |
isStrict() |
Matcher |
match(String input)
Tests if input matches the prefix pattern.
|
String |
toString() |
public Rule(String prefixPatternString, String lookupPath, boolean isStrict)
Constructor for Rule.
prefixPatternString - pattern for matching page path OR page path (if rule is strict)lookupPath - path, where the canonical page will be searched forisStrict - marks this rule as a strict, so lookupPath will be treated as a path of the canonical pagepublic String getLookupPath()
public Matcher match(String input)
input - value to testpublic boolean isStrict()
Copyright © 2017. All rights reserved.