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
ConstructorsModifierConstructorDescriptionprotectedAbstractContentReferenceParser(Class<T> referenceClass, org.slf4j.Logger log, Context context) -
Method Summary
Modifier and TypeMethodDescriptionprotected Contextprotected org.slf4j.LoggergetLog()protected PrimaryKeygetPrimaryKey(String type, String pk) Get the class of the references this parser extracts.protected org.jsoup.select.ElementsSelect DOM elements in html by using Jsoup (http://jsoup.org/).Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ContentReferenceParser
parse
-
Constructor Details
-
AbstractContentReferenceParser
-
-
Method Details
-
getReferenceClass
Description copied from interface:ContentReferenceParserGet the class of the references this parser extracts.- Specified by:
getReferenceClassin interfaceContentReferenceParser<T extends ContentReference>- Returns:
- the class of the references.
-
getLog
protected org.slf4j.Logger getLog() -
getContext
-
select
-
getPrimaryKey
-