public class LabeledFileResource extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
protected String |
content |
protected String |
description |
protected String |
sourceFileName |
Constructor and Description |
---|
LabeledFileResource()
Serializable Constructor
|
LabeledFileResource(String description) |
Modifier and Type | Method and Description |
---|---|
static Element |
formRequest(Request<?> request,
LabeledFileResource datatype,
String elementName)
Appends this DataType to the given Request
|
static LabeledFileResource[] |
getArrayFromNode(Node node,
String elementName)
Retrieves an array of elements of type LabeledFileResource by parsing the XML node.
|
String |
getContent() |
String |
getDescription() |
static LabeledFileResource |
getFromNode(Node node)
Retrieves an elements of type LabeledFileResource by parsing an XML node.
|
String |
getSourceFileName() |
LabeledFileResource |
setContent(String content) |
LabeledFileResource |
setDescription(String description) |
LabeledFileResource |
setSourceFileName(String sourceFileName) |
@Size(min=1, max=256) protected String description
@Size(min=1) protected String sourceFileName
protected String content
public LabeledFileResource(String description)
public LabeledFileResource()
public String getDescription()
public LabeledFileResource setDescription(String description)
public String getSourceFileName()
public LabeledFileResource setSourceFileName(String sourceFileName)
public String getContent()
public LabeledFileResource setContent(String content)
@GwtIncompatible public static Element formRequest(Request<?> request, LabeledFileResource datatype, String elementName)
request
- The request to append the DataType to.datatype
- The datatype to parse.@GwtIncompatible public static LabeledFileResource getFromNode(Node node)
node
- The source node to parse.@GwtIncompatible public static LabeledFileResource[] getArrayFromNode(Node node, String elementName)
node
- The source node to retrieve the array.elementName
- The element name to iterate through.Copyright © 2016 ECG. All rights reserved.