public class StringsExtractor extends Object
This class is not thread-safe.
| Modifier and Type | Field and Description | 
|---|---|
protected DocumentModel | 
document  | 
protected Set<String> | 
excludedPaths  | 
protected Set<String> | 
includedPaths  | 
protected List<String> | 
strings  | 
| Constructor and Description | 
|---|
StringsExtractor()  | 
| Modifier and Type | Method and Description | 
|---|---|
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. 
 | 
protected void | 
findStrings(Property property,
           String path)  | 
protected boolean | 
isInterestingPath(String path)  | 
protected DocumentModel document
protected Set<String> includedPaths
protected Set<String> excludedPaths
public StringsExtractor()
public List<String> findStrings(DocumentModel document, Set<String> includedPaths, Set<String> excludedPaths)
Paths must be specified with a schema prefix in all cases (normalized).
document - the documentincludedPaths - the paths to include, or null for all pathsexcludedPaths - the paths to exclude, or null for nonenull)protected boolean isInterestingPath(String path)
protected void findStrings(Property property, String path)
Copyright © 2019 Nuxeo. All rights reserved.