public class ExtractorPatternTokenDefaults
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static ExtractorPatternTokenDefaults |
EMPTY_TOKEN_DEFAULTS
The defaults to use to indicate do nothing special
|
Constructor and Description |
---|
ExtractorPatternTokenDefaults()
Returns a defaults configuration that represents nothing special (no regex or checkbox settings)
|
ExtractorPatternTokenDefaults(java.lang.String name,
java.util.List<com.screenscraper.scraper.ExtractorPatternTokenDefaults.MatchCondition> conditions,
com.screenscraper.scraper.ExtractorPatternTokenDefaults.DefaultOptions options)
Creates a defaults setup
|
Modifier and Type | Method and Description |
---|---|
static java.util.List<ExtractorPatternTokenDefaults> |
getAllDefaults()
Returns all the defaults currently in use, in the order they will be applied.
|
java.lang.String |
getName()
Returns the Name for the object
|
java.lang.String |
getRegex()
Returns the Regex for the object
|
static ExtractorPatternTokenDefaults |
getTokenDefaults(java.lang.String name,
java.lang.String left,
java.lang.String right) |
boolean |
isConvertEntities()
Returns the ConvertEntities for the object
|
boolean |
isExcludeFromDataRecord()
Returns the ExcludeFromDataRecord for the object
|
boolean |
isMatch(java.lang.String name,
java.lang.String left,
java.lang.String right)
Checks if this defaults configuration is a match for the given extractor
|
boolean |
isNullSessionVariableOnNoMatch()
Returns the NullSessionVariableOnNoMatch for the object
|
boolean |
isResolveURLs()
Returns the ResolveURLs for the object
|
boolean |
isSaveInSessionVariable()
Returns the SaveInSessionVariable for the object
|
boolean |
isStripHTML()
Returns the StripHTML for the object
|
boolean |
isTrimWhiteSpace()
Returns the TrimWhiteSpace for the object
|
java.lang.String |
toString() |
public static final ExtractorPatternTokenDefaults EMPTY_TOKEN_DEFAULTS
public ExtractorPatternTokenDefaults(@NotNull java.lang.String name, @NotNull java.util.List<com.screenscraper.scraper.ExtractorPatternTokenDefaults.MatchCondition> conditions, @NotNull com.screenscraper.scraper.ExtractorPatternTokenDefaults.DefaultOptions options)
name
- The name to use for displayconditions
- The list of match conditionsoptions
- The options to setpublic ExtractorPatternTokenDefaults()
@NotNull public static ExtractorPatternTokenDefaults getTokenDefaults(@Nullable java.lang.String name, @Nullable java.lang.String left, @Nullable java.lang.String right)
public static java.util.List<ExtractorPatternTokenDefaults> getAllDefaults()
public boolean isMatch(@NotNull java.lang.String name, @Nullable java.lang.String left, @Nullable java.lang.String right)
name
- The name of the tokenleft
- The text to the left of the tokenright
- The text to the right of the token@NotNull public java.lang.String getName()
public boolean isStripHTML()
public boolean isResolveURLs()
public boolean isConvertEntities()
public boolean isTrimWhiteSpace()
public boolean isExcludeFromDataRecord()
public boolean isSaveInSessionVariable()
public boolean isNullSessionVariableOnNoMatch()
@NotNull public java.lang.String getRegex()
@NotNull public java.lang.String toString()
toString
in class java.lang.Object