Annotation Type TargetUrl
Define the url patterns for class.
All urls matching the pattern will be crawled and extracted for new objects.
All urls matching the pattern will be crawled and extracted for new objects.
- Since:
- 0.2.0
- Author:
- code4crafter@gmail.com
-
Required Element Summary
-
Optional Element Summary
Modifier and TypeOptional ElementDescriptionDefine the region for url extracting.
-
Element Details
-
value
String[] valueThe url patterns for class.
Use regex expression with some changes:
"." stand for literal character "." instead of "any character".
"*" stand for any legal character for url in 0-n length ([^"'#]*) instead of "any length".- Returns:
- the url patterns for class
-
-
-
sourceRegion
String sourceRegionDefine the region for url extracting.
Only support XPath.
When sourceRegion is set, the urls will be extracted only from the region instead of entire content.- Returns:
- the region for url extracting
- Default:
- ""
-