Class ContentReferenceParseServiceImpl
java.lang.Object
ch.tocco.nice2.dms.impl.reference.ContentReferenceParseServiceImpl
- All Implemented Interfaces:
ContentReferenceParseService
@Component
public class ContentReferenceParseServiceImpl
extends Object
implements ContentReferenceParseService
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionparseReferences
(String html) Find references in the given html string.final Set
<ContentReference> parseReferences
(String html, Class<? extends ContentReference>... referenceClasses) Find references in the given html string.parseReferences
(String html, Set<Class<? extends ContentReference>> referenceClasses) Find references in the given html string.void
setContentReferenceParsers
(List<ContentReferenceParser> contentReferenceParsers)
-
Constructor Details
-
ContentReferenceParseServiceImpl
public ContentReferenceParseServiceImpl()
-
-
Method Details
-
setContentReferenceParsers
@Autowired public void setContentReferenceParsers(List<ContentReferenceParser> contentReferenceParsers) -
parseReferences
Description copied from interface:ContentReferenceParseService
Find references in the given html string.- Specified by:
parseReferences
in interfaceContentReferenceParseService
- Parameters:
html
- The html string to parse.- Returns:
- the found references.
-
parseReferences
@SafeVarargs public final Set<ContentReference> parseReferences(String html, Class<? extends ContentReference>... referenceClasses) Description copied from interface:ContentReferenceParseService
Find references in the given html string.- Specified by:
parseReferences
in interfaceContentReferenceParseService
- Parameters:
html
- The html string to parse.referenceClasses
- The reference types to find.- Returns:
- the found references.
-
parseReferences
public Set<ContentReference> parseReferences(String html, Set<Class<? extends ContentReference>> referenceClasses) Description copied from interface:ContentReferenceParseService
Find references in the given html string.- Specified by:
parseReferences
in interfaceContentReferenceParseService
- Parameters:
html
- The html string to parse.referenceClasses
- The reference types to find.- Returns:
- the found references.
-