Package org.nuxeo.ecm.core.utils
Class StringsExtractor
java.lang.Object
org.nuxeo.ecm.core.utils.StringsExtractor
Finds the strings in a document (string properties).
This class is not thread-safe.
- Since:
- 10.3
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfindStrings(DocumentModel document, Set<String> includedPaths, Set<String> excludedPaths) Finds strings from the document for a given set of included and excluded paths.protected voidfindStrings(Property property, String path) protected booleanisInterestingPath(String path)
-
Field Details
-
document
-
includedPaths
-
excludedPaths
-
strings
-
-
Constructor Details
-
StringsExtractor
public StringsExtractor()
-
-
Method Details
-
findStrings
public List<String> findStrings(DocumentModel document, Set<String> includedPaths, Set<String> excludedPaths) Finds strings from the document for a given set of included and excluded paths.Paths must be specified with a schema prefix in all cases (normalized).
- Parameters:
document- the documentincludedPaths- the paths to include, ornullfor all pathsexcludedPaths- the paths to exclude, ornullfor none- Returns:
- a list of strings (each string is never
null)
-
isInterestingPath
-
findStrings
-