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
This is a sub class of
DefaultElementVisitor
, which is used to extract metadata from
<text:bookmark-start> to <text:bookmark-end> pair.-
Nested Class Summary
Modifier and TypeClassDescriptionprotected static class
This class is used to provide the string builder functions to extractor. -
Field Summary
Modifier and TypeFieldDescriptionprotected static final char
protected final Map<TextBookmarkStartElement,
String> protected static final char
-
Method Summary
Modifier and TypeMethodDescriptionorg.apache.jena.rdf.model.Model
getBookmarkRDFMetadata
(TextBookmarkStartElement bookmarkstart) org.apache.jena.rdf.model.Model
Return the RDF metadata of specified ODF element as a Jena Model.static BookmarkRDFMetadataExtractor
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 Details
-
NewLineChar
protected static final char NewLineChar- See Also:
-
TabChar
protected static final char TabChar- See Also:
-
builderMap
protected final Map<TextBookmarkStartElement,BookmarkRDFMetadataExtractor.ExtractorStringBuilder> builderMap -
stringMap
-
-
Method Details
-
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
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
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:
-