public class FileResource extends Object
Modifier and Type | Field and Description |
---|---|
String |
fileContent |
boolean |
fileContentIsModified |
String |
sourceFileName |
boolean |
sourceFileNameIsModified |
Constructor and Description |
---|
FileResource() |
Modifier and Type | Method and Description |
---|---|
static FileResource |
fromProxy(BroadWorksServer bws,
FileResourceProxy proxy)
Re-inserts non-serializable information into a Proxy class in order to regain the source DataType class
|
String |
getFileContent() |
static FileResource |
getFromNode(Node node)
Retrieves an elements of type FileResource by parsing an XML node.
|
static FileResource[] |
getListFromNode(Node[] nodeList)
Retrieves an Array of elements of type FileResource by parsing the XML node.
|
static FileResource[] |
getListFromNode(Node node,
String elementName)
Retrieves an Array of elements of type FileResource by parsing the XML node.
|
FileResourceProxy |
getProxy()
Retrieves the Serializable version of this DataType
|
String |
getSourceFileName() |
FileResource |
setFileContent(String fileContent) |
FileResource |
setSourceFileName(String sourceFileName) |
String |
toString() |
@Size(min=1) public String sourceFileName
public transient boolean sourceFileNameIsModified
public String fileContent
public transient boolean fileContentIsModified
public String getSourceFileName()
public FileResource setSourceFileName(String sourceFileName)
public String getFileContent()
public FileResource setFileContent(String fileContent)
public static FileResource getFromNode(Node node)
node
- The source node to parse.public static FileResource[] getListFromNode(Node node, String elementName)
node
- The source node to retrieve the array.elementName
- The element name to iterate through.public static FileResource[] getListFromNode(Node[] nodeList)
nodeList
- The source node array to retrieve the elements.public FileResourceProxy getProxy()
public static FileResource fromProxy(BroadWorksServer bws, FileResourceProxy proxy)
bws
- The current active BroadWorks Server connection.proxy
- The proxy object to inject.Copyright © 2016 ECG, Inc. All rights reserved.