Restructures demos.
This commit is contained in:
18
demos/java/src/app/TextData.java
Normal file
18
demos/java/src/app/TextData.java
Normal file
@@ -0,0 +1,18 @@
|
||||
package app;
|
||||
|
||||
public class TextData extends ExtractedData {
|
||||
private final String textValue;
|
||||
|
||||
public TextData(String text) {
|
||||
this.textValue = text;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected String[] getTags() {
|
||||
return new String[] { "text" };
|
||||
}
|
||||
|
||||
public String getText() {
|
||||
return this.textValue;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user