Package ch.tocco.nice2.dms.spi.reference
Class AbstractContentReferenceParser<T extends ContentReference>
java.lang.Object
ch.tocco.nice2.dms.spi.reference.AbstractContentReferenceParser<T>
- All Implemented Interfaces:
ContentReferenceParser<T>
- Direct Known Subclasses:
EntityUriContentReferenceParser
,WidgetConfigContentReferenceParser
,WidgetTemplateContentReferenceParser
public abstract class AbstractContentReferenceParser<T extends ContentReference>
extends Object
implements ContentReferenceParser<T>
Abstract class for reference parsers with some helper methods.
-
Constructor Summary
ModifierConstructorDescriptionprotected
AbstractContentReferenceParser
(Class<T> referenceClass, org.slf4j.Logger log, Context context) -
Method Summary
Modifier and TypeMethodDescriptionprotected Context
protected org.slf4j.Logger
getLog()
protected PrimaryKey
getPrimaryKey
(String type, String pk) Get the class of the references this parser extracts.protected org.jsoup.select.Elements
Select DOM elements in html by using Jsoup (http://jsoup.org/).Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface ch.tocco.nice2.dms.spi.reference.ContentReferenceParser
parse
-
Constructor Details
-
AbstractContentReferenceParser
-
-
Method Details
-
getReferenceClass
Description copied from interface:ContentReferenceParser
Get the class of the references this parser extracts.- Specified by:
getReferenceClass
in interfaceContentReferenceParser<T extends ContentReference>
- Returns:
- the class of the references.
-
getLog
protected org.slf4j.Logger getLog() -
getContext
-
select
Select DOM elements in html by using Jsoup (http://jsoup.org/).- Parameters:
html
- The html content.selector
- The selector for the elements to select.- Returns:
- the selected elements.
-
getPrimaryKey
-