Package org.odftoolkit.odfdom.dom.rdfa
Class BookmarkRDFMetadataExtractor
- java.lang.Object
-
- org.odftoolkit.odfdom.dom.DefaultElementVisitor
-
- org.odftoolkit.odfdom.dom.rdfa.BookmarkRDFMetadataExtractor
-
- All Implemented Interfaces:
ElementVisitor
public class BookmarkRDFMetadataExtractor extends DefaultElementVisitor
This is a sub class ofDefaultElementVisitor
, which is used to extract metadata from <text:bookmark-start> to <text:bookmark-end> pair.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
BookmarkRDFMetadataExtractor.ExtractorStringBuilder
This class is used to provide the string builder functions to extractor.
-
Field Summary
Fields Modifier and Type Field Description protected Map<TextBookmarkStartElement,BookmarkRDFMetadataExtractor.ExtractorStringBuilder>
builderMap
protected static char
NewLineChar
protected Map<TextBookmarkStartElement,String>
stringMap
protected static char
TabChar
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.jena.rdf.model.Model
getBookmarkRDFMetadata(TextBookmarkStartElement bookmarkstart)
org.apache.jena.rdf.model.Model
getBookmarkRDFMetadata(OdfFileDom dom)
Return the RDF metadata of specified ODF element as a Jena Model.static BookmarkRDFMetadataExtractor
newBookmarkTextExtractor()
Create a BookmarkRDFMetadataExtractor instance, which RDF metadata content of bookmarks can be extracted bygetBookmarkRDFMetadata()
.void
visit(OdfElement element)
The end users needn't to care of this method, if you don't want to override the text content handling strategy ofOdfElement
.-
Methods inherited from class org.odftoolkit.odfdom.dom.DefaultElementVisitor
visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit
-
-
-
-
Field Detail
-
NewLineChar
protected static final char NewLineChar
- See Also:
- Constant Field Values
-
TabChar
protected static final char TabChar
- See Also:
- Constant Field Values
-
builderMap
protected final Map<TextBookmarkStartElement,BookmarkRDFMetadataExtractor.ExtractorStringBuilder> builderMap
-
stringMap
protected final Map<TextBookmarkStartElement,String> stringMap
-
-
Method Detail
-
newBookmarkTextExtractor
public static BookmarkRDFMetadataExtractor newBookmarkTextExtractor()
Create a BookmarkRDFMetadataExtractor instance, which RDF metadata content of bookmarks can be extracted bygetBookmarkRDFMetadata()
.- Parameters:
element
- the ODF element whose text will be extracted.- Returns:
- an instance of BookmarkRDFMetadataExtractor
-
getBookmarkRDFMetadata
public org.apache.jena.rdf.model.Model getBookmarkRDFMetadata(OdfFileDom dom)
Return the RDF metadata of specified ODF element as a Jena Model.- Returns:
- the text content as a string
-
getBookmarkRDFMetadata
public org.apache.jena.rdf.model.Model getBookmarkRDFMetadata(TextBookmarkStartElement bookmarkstart)
-
visit
public void visit(OdfElement element)
The end users needn't to care of this method, if you don't want to override the text content handling strategy ofOdfElement
.- Specified by:
visit
in interfaceElementVisitor
- Specified by:
visit
in classDefaultElementVisitor
- Parameters:
element
- ODF element- See Also:
DefaultElementVisitor.visit(org.odftoolkit.odfdom.pkg.OdfElement)
-
-