public class DependencySetRecord extends Record
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PROP_FILE |
Constructor and Description |
---|
DependencySetRecord()
Construct a record with a default ID
|
DependencySetRecord(java.lang.String id)
Create a dependency set record with a specific ID
|
Modifier and Type | Method and Description |
---|---|
void |
addAllDependencies(java.util.List<PhysicalDependency> dependencies)
Add all physical dependencies to the record
|
void |
addDependency(PhysicalDependency dependency)
Add a physical dependency to the record
|
java.util.List<PhysicalDependency> |
getAllDependencies()
Retrieve all dependencies in this record
|
java.lang.String |
getFile()
Return the file to store the dependencies
|
Record |
parse(com.ibm.json.java.JSONObject jsonObj)
Create the record from JSON.
|
void |
setFile(java.lang.String file)
Set the file to store dependencies
|
com.ibm.json.java.JSONObject |
toJSON()
Returns the record in JSON format.
|
public static final java.lang.String PROP_FILE
public DependencySetRecord()
public DependencySetRecord(java.lang.String id)
id
- the ID of the recordpublic void addDependency(PhysicalDependency dependency)
dependency
- the dependency to be addedpublic void addAllDependencies(java.util.List<PhysicalDependency> dependencies)
dependencies
- the list of dependencies to be addedpublic java.util.List<PhysicalDependency> getAllDependencies()
public java.lang.String getFile()
public void setFile(java.lang.String file)
file
- the filepublic com.ibm.json.java.JSONObject toJSON()
<IBM Copyright © 2018 IBM Corp. All Rights Reserved.