Package org.creativecommons.nutch
Class CCParseFilter.Walker
- java.lang.Object
-
- org.creativecommons.nutch.CCParseFilter.Walker
-
- Enclosing class:
- CCParseFilter
public static class CCParseFilter.Walker extends Object
Walks DOM tree, looking for RDF in comments and licenses in anchors.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidwalk(Node doc, URL base, Metadata metadata, Configuration conf)Scan the document adding attributes to metadata.
-
-
-
Method Detail
-
walk
public static void walk(Node doc, URL base, Metadata metadata, Configuration conf) throws ParseException
Scan the document adding attributes to metadata.- Parameters:
doc- theNodeto walk and processbase- canonical urlmetadata- urlMetadataconf- a populatedConfiguration- Throws:
ParseException- if there is a fatal error or ifcreativecommons.exclude.unlicensedis set to true
-
-