public class LightningNode extends Message<LightningApi.LightningNode>
Message
,
LightningApi.LightningNode
Modifier and Type | Class and Description |
---|---|
static class |
LightningNode.CustomRecordsEntries
Wrapping class used for conversion between Map and XML notation.
|
static class |
LightningNode.CustomRecordsEntry
Inner class CustomRecordsEntry for class LightningNode.
|
static class |
LightningNode.FeaturesEntries
Wrapping class used for conversion between Map and XML notation.
|
static class |
LightningNode.FeaturesEntry
Inner class FeaturesEntry for class LightningNode.
|
Modifier and Type | Field and Description |
---|---|
protected LightningNode.CustomRecordsEntries |
customRecordsEntries |
protected LightningNode.FeaturesEntries |
featuresEntries |
builder, wrapperFactory
Constructor and Description |
---|
LightningNode()
Empty Constructor
|
LightningNode(javax.json.JsonReader jsonReader)
Json Parsing Constructor
|
LightningNode(LightningApi.LightningNode apiObject)
Constructor using underlying Lightning API Object
|
Modifier and Type | Method and Description |
---|---|
java.util.List<NodeAddress> |
getAddresses()
Getter for a list of addresses.
|
java.lang.String |
getAlias()
Getter for alias.
|
java.lang.String |
getColor()
Getter for color.
|
java.util.Map<java.lang.Long,byte[]> |
getCustomRecordsAsDetachedMap()
Returns customRecords as a detached map.
|
LightningNode.CustomRecordsEntries |
getCustomRecordsEntries()
Gets the map entries as a wrapped list, used for XML conversion.
|
java.util.Map<java.lang.Integer,Feature> |
getFeaturesAsDetachedMap()
Returns features as a detached map.
|
LightningNode.FeaturesEntries |
getFeaturesEntries()
Gets the map entries as a wrapped list, used for XML conversion.
|
int |
getLastUpdate()
Getter for lastUpdate.
|
java.lang.String |
getPubKey()
Getter for pubKey.
|
protected void |
populateRepeatedFields()
Method to be overrided by inherited messages that contains repeatable or mapped fields.
|
void |
setAddresses(java.util.List<NodeAddress> valueList)
Setter for list of addresses.
|
void |
setAlias(java.lang.String value)
Setter for alias.
|
void |
setColor(java.lang.String value)
Setter for color.
|
void |
setCustomRecords(java.util.Map<java.lang.Long,byte[]> valueMap)
Populates customRecords with all the values in the map.
|
void |
setCustomRecordsEntries(LightningNode.CustomRecordsEntries entries)
Sets a wrapped list of entries, used for XML conversion.
|
void |
setFeatures(java.util.Map<java.lang.Integer,Feature> valueMap)
Populates features with all the values in the map.
|
void |
setFeaturesEntries(LightningNode.FeaturesEntries entries)
Sets a wrapped list of entries, used for XML conversion.
|
void |
setLastUpdate(int value)
Setter for lastUpdate.
|
void |
setPubKey(java.lang.String value)
Setter for pubKey.
|
equals, getApiObject, getMessageName, hashCode, toJson, toJsonAsString, toString, validate
protected LightningNode.FeaturesEntries featuresEntries
protected LightningNode.CustomRecordsEntries customRecordsEntries
public LightningNode()
public LightningNode(javax.json.JsonReader jsonReader) throws javax.json.JsonException
javax.json.JsonException
- if problems was found with the supplied JSON data.public LightningNode(LightningApi.LightningNode apiObject)
public int getLastUpdate()
public void setLastUpdate(int value)
public java.lang.String getPubKey()
public void setPubKey(java.lang.String value)
public java.lang.String getAlias()
public void setAlias(java.lang.String value)
public java.util.List<NodeAddress> getAddresses() throws ClientSideException
ClientSideException
- if problems occurred constructing the wrapped object.public void setAddresses(java.util.List<NodeAddress> valueList)
public java.lang.String getColor()
public void setColor(java.lang.String value)
public java.util.Map<java.lang.Integer,Feature> getFeaturesAsDetachedMap()
public void setFeatures(java.util.Map<java.lang.Integer,Feature> valueMap)
public LightningNode.FeaturesEntries getFeaturesEntries()
public void setFeaturesEntries(LightningNode.FeaturesEntries entries)
public java.util.Map<java.lang.Long,byte[]> getCustomRecordsAsDetachedMap()
public void setCustomRecords(java.util.Map<java.lang.Long,byte[]> valueMap)
public LightningNode.CustomRecordsEntries getCustomRecordsEntries()
public void setCustomRecordsEntries(LightningNode.CustomRecordsEntries entries)
protected void populateRepeatedFields()
Message
populateRepeatedFields
in class Message<LightningApi.LightningNode>