| java.lang.Object com.rimfaxe.xml.extractor.Extractor
All known Subclasses: com.rimfaxe.xml.extractor.HTMLextractor,
Extractor | public class Extractor extends Object (Code) | | author: Lars Andersen |
Method Summary | |
public void | addData(com.rimfaxe.xml.datamodel.Container data) | protected String | blanks(int count) | protected String | cleantext(String in) | public int | csum(String in) | public String | dos2unix(String in) | public void | endList() | public void | endsection() | public boolean | fetchList(String id) | public String | genericBodyTag(String name, NamedNodeMap attrs, String body) | public String | genericSimpleTag(String name, NamedNodeMap attrs) | public String | genericTag(String name, NamedNodeMap attrs, String body) | protected String | literal(String id, String level) | public String | processEntity(String name) | public String | processTag(String name, NamedNodeMap attrs, String body, boolean simple) Process a Tag
This method is overridden by a concrete extractor (f.ex. | public void | resetList(String id) | public void | setContent(String template, String str) | public void | subsection(String id) | public String | traverse(Node node) |
Extractor | public Extractor()(Code) | | Creates new Extractor
|
blanks | protected String blanks(int count)(Code) | | Parameters: count - |
dos2unix | public String dos2unix(String in)(Code) | | Convert DOS string to UNIX
Parameters: in - String to convert Converted string |
endList | public void endList()(Code) | | |
endsection | public void endsection()(Code) | | |
fetchList | public boolean fetchList(String id)(Code) | | Parameters: id - |
processTag | public String processTag(String name, NamedNodeMap attrs, String body, boolean simple)(Code) | | Process a Tag
This method is overridden by a concrete extractor (f.ex. HTMLExtractor)
Parameters: name - name of tag Parameters: attrs - tag attributes Parameters: body - body of tag |
resetList | public void resetList(String id)(Code) | | Parameters: id - |
setContent | public void setContent(String template, String str)(Code) | | Sets the template for this extractor
Parameters: template - name of template (for caching) Parameters: str - xml with template content |
subsection | public void subsection(String id)(Code) | | Parameters: id - |
traverse | public String traverse(Node node)(Code) | | Traverse the template
Parameters: node - |
|
|