public class FileResource extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
protected String |
fileContent |
protected String |
sourceFileName |
Constructor and Description |
---|
FileResource() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
static Element |
formRequest(Request<?> request,
FileResource datatype,
String elementName)
Appends this DataType to the given Request
|
static FileResource[] |
getArrayFromNode(Node node,
String elementName)
Retrieves an array of elements of type FileResource by parsing the XML node.
|
String |
getFileContent() |
static FileResource |
getFromNode(Node node)
Retrieves an elements of type FileResource by parsing an XML node.
|
String |
getSourceFileName() |
int |
hashCode() |
FileResource |
setFileContent(String fileContent) |
FileResource |
setSourceFileName(String sourceFileName) |
@Size(min=1) protected String sourceFileName
protected String fileContent
public String getSourceFileName()
public FileResource setSourceFileName(String sourceFileName)
public String getFileContent()
public FileResource setFileContent(String fileContent)
@GwtIncompatible public static Element formRequest(Request<?> request, FileResource datatype, String elementName)
request
- The request to append the DataType to.datatype
- The datatype to parse.@GwtIncompatible public static FileResource getFromNode(Node node)
node
- The source node to parse.@GwtIncompatible public static FileResource[] getArrayFromNode(Node node, String elementName)
node
- The source node to retrieve the array.elementName
- The element name to iterate through.Copyright © 2017 ECG. All rights reserved.