public class LogicalElement extends Element
A class representing a non-device, logical element, such as a cell. The
logical element will be returned as a "device" from a GetDeviceInfo (
Collector.GetDeviceInfo(int, String)) or GetDeviceList (
Collector.GetDeviceList(int, int, String, String)) XML-RPC call but
does not necessarily have all the attributes typically found on a device,
such as an address or a set of interfaces.
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
id
The unique identifier for this logical element
|
protected java.lang.String |
name
The name for this logical element
|
customData, extraInfo| Constructor and Description |
|---|
LogicalElement(java.lang.String id) |
| Modifier and Type | Method and Description |
|---|---|
void |
associate(Associatable a)
Associate this object with the given object.
|
java.lang.String |
getId()
Return the unique identifier for this element
|
java.lang.String |
getName()
Return the name of this element
|
boolean |
merge(Element e)
Merge the data from two different elements
|
void |
setId(java.lang.String id)
Set the unique ID for this logical element
|
void |
setName(java.lang.String name)
Set the name of this logical element
|
java.lang.String |
toXMLString()
Return the "device XML" string representation of this element
|
addCustomData, addExtraInfo, getCustomData, getExtraInfoprotected java.lang.String id
protected java.lang.String name
public java.lang.String getId()
Elementpublic java.lang.String getName()
Elementpublic boolean merge(Element e)
Elementpublic void setId(java.lang.String id)
id - The unique ID for this logical elementpublic void setName(java.lang.String name)
name - The name of this logical elementpublic java.lang.String toXMLString()
ElementtoXMLString in class Element
<device>
<id>10.1.230.3</id>
<ip>10.1.230.3</ip>
<addressSpace></addressSpace>
</device>
public void associate(Associatable a)
Associatablea - The object to associate with this object.