public class ManagedObject extends Object
The Managed object is the object within a managed device that is
a component of an Alarm
.
Managed object represents one element in the key:
/al:alarms/alarms/alarm-list/alarm/device
)
/al:alarms/alarms/alarm-list/alarm/type
/al:alarms/alarms/alarm-list/alarm/managed-object
/al:alarms/alarms/alarm-list/alarm/specific-problem
in the alarm list: /al:alarms/alarm-list/alarm
.
The ManagedObject
is a union of the types:
ConfObjectRef - Which is the YANG type instance-identifier
ConfOID - Which is the YANG type object-identifier
ConfBuf - Which is the YANG type string
Which means that there is a constructor for each of the above
types for creating an instance of ManagedObject
.
It is important to choose the correct type for the object being created. Specifically, the ConfBuf type MUST NOT be used if the type is really an instance-identifier or object-identifier. The reason for this is that when such an object is passed back-and-forth over text-based protocols such as NETCONF, WebUI, and REST, the conversion from the internal representation to string and then back to the internal representation MUST result in the same internal representation as the original object had.
Constructor and Description |
---|
ManagedObject(ConfBuf value)
Creates a ManagedObject as a general string.
|
ManagedObject(ConfObjectRef value)
Creates a ManagedObject as a ConfObjectRef.
|
ManagedObject(ConfOID value)
Creates a ManagedObject as a ConfOID.
|
ManagedObject(ConfPath value)
Creates a ManagedObject as a ConfObjectRef defined from a ConfPath.
|
ManagedObject(ConfValue value) |
ManagedObject(String value)
Constructor that takes a string representation of one of the below
listed types.
|
ManagedObject(String value,
MountIdInterface mountGetter) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
ConfValue |
getAsConfValue()
Get the ConfValue representation of this managedObject.
|
int |
hashCode() |
String |
toString() |
public ManagedObject(ConfBuf value)
value
- the ConfBuf representing the ManagedObjectpublic ManagedObject(ConfObjectRef value)
value
- the ConfObjectRef representing the ManagedObjectpublic ManagedObject(ConfOID value)
value
- the ConfOID representing the ManagedObjectpublic ManagedObject(ConfPath value) throws ConfException
value
- the ConfPath representing the ManagedObjectConfException
public ManagedObject(ConfValue value)
value
- A value matching the typedef managed-object-t
in tailf-ncs-alarms.yang. Specifically,
the value can have one of the following types:
ConfBuf
,
ConfObjectRef
,
ConfOID
IllegalArgumentException
- If the supplied value
is not of one of the types listed abovepublic ManagedObject(String value)
value
- String representation of typedef managed-object-t
in tailf-ncs-alarms.yang. Specifically, the value can be
a string representation of one of the following types:
ConfBuf
,
ConfObjectRef
,
ConfOID
public ManagedObject(String value, MountIdInterface mountGetter)
public ConfValue getAsConfValue()
public String toString()
toString
in class Object
Object.toString()