public class LabeledFileResource extends Object
Modifier and Type | Field and Description |
---|---|
String |
content |
boolean |
contentIsModified |
String |
description |
boolean |
descriptionIsModified |
String |
sourceFileName |
boolean |
sourceFileNameIsModified |
Modifier | Constructor and Description |
---|---|
protected |
LabeledFileResource()
Protected Call for Use by Node Construction Methods
|
|
LabeledFileResource(String description) |
Modifier and Type | Method and Description |
---|---|
static LabeledFileResource |
fromProxy(BroadWorksServer bws,
LabeledFileResourceProxy proxy)
Re-inserts non-serializable information into a Proxy class in order to regain the source DataType class
|
String |
getContent() |
String |
getDescription() |
static LabeledFileResource |
getFromNode(Node node)
Retrieves an elements of type LabeledFileResource by parsing an XML node.
|
static LabeledFileResource[] |
getListFromNode(Node[] nodeList)
Retrieves an Array of elements of type LabeledFileResource by parsing the XML node.
|
static LabeledFileResource[] |
getListFromNode(Node node,
String elementName)
Retrieves an Array of elements of type LabeledFileResource by parsing the XML node.
|
LabeledFileResourceProxy |
getProxy()
Retrieves the Serializable version of this DataType
|
String |
getSourceFileName() |
LabeledFileResource |
setContent(String content) |
LabeledFileResource |
setDescription(String description) |
LabeledFileResource |
setSourceFileName(String sourceFileName) |
String |
toString() |
@Size(min=1, max=256) public String description
public transient boolean descriptionIsModified
@Size(min=1) public String sourceFileName
public transient boolean sourceFileNameIsModified
public String content
public transient boolean contentIsModified
public LabeledFileResource(String description)
protected 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)
public static LabeledFileResource getFromNode(Node node)
node
- The source node to parse.public static LabeledFileResource[] getListFromNode(Node node, String elementName)
node
- The source node to retrieve the array.elementName
- The element name to iterate through.public static LabeledFileResource[] getListFromNode(Node[] nodeList)
nodeList
- The source node array to retrieve the elements.public LabeledFileResourceProxy getProxy()
public static LabeledFileResource fromProxy(BroadWorksServer bws, LabeledFileResourceProxy proxy)
bws
- The current active BroadWorks Server connection.proxy
- The proxy object to inject.Copyright © 2016 ECG, Inc. All rights reserved.