public class SampleDataManager
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
SUBARRAY_SEPARATOR |
Constructor and Description |
---|
SampleDataManager() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getResourceNameFromSampleReference(java.lang.String sampleReference) |
java.lang.String |
getSampleDataLine(java.lang.String resourcePath,
com.google.common.collect.ImmutableList<java.lang.String> contentList)
Returns a line of sample data content from the given content and fileName.
|
public static final java.lang.String SUBARRAY_SEPARATOR
@NonNull public java.lang.String getSampleDataLine(@NonNull java.lang.String resourcePath, @NonNull com.google.common.collect.ImmutableList<java.lang.String> contentList)
resourcePath
- The resource path consists of the resource name plus an optional array
selector. Arrays selectors can point at specific elements [4] or use string matching
[biking.png] (this will match elements ending with "biking.png"). Selectors also allow
for sub-arrays like:
contentList
- The content of the data source@NonNull public static java.lang.String getResourceNameFromSampleReference(@NonNull java.lang.String sampleReference)