Class RequisitionInterface
- java.lang.Object
-
- org.opennms.netmgt.provision.persist.requisition.RequisitionInterface
-
- All Implemented Interfaces:
java.lang.Comparable<RequisitionInterface>
public class RequisitionInterface extends java.lang.Object implements java.lang.Comparable<RequisitionInterface>
RequisitionInterface class.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<RequisitionCategory>
m_categories
protected java.lang.String
m_description
protected java.lang.String
m_ipAddress
protected java.lang.Boolean
m_isManaged
protected java.util.List<RequisitionMetaData>
m_metaData
protected java.util.List<RequisitionMonitoredService>
m_monitoredServices
protected PrimaryType
m_snmpPrimary
protected java.lang.Integer
m_status
-
Constructor Summary
Constructors Constructor Description RequisitionInterface()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description int
compareTo(RequisitionInterface other)
void
deleteCategory(java.lang.String category)
deleteCategoryvoid
deleteCategory(RequisitionCategory category)
deleteCategoryvoid
deleteMonitoredService(java.lang.String service)
deleteMonitoredServicevoid
deleteMonitoredService(RequisitionMonitoredService service)
deleteMonitoredServiceboolean
equals(java.lang.Object obj)
java.util.List<RequisitionCategory>
getCategories()
getCategoriesRequisitionCategory
getCategory(java.lang.String category)
getCategoryjava.lang.String
getDescr()
getDescrjava.lang.String
getIpAddr()
getIpAddrjava.util.List<RequisitionMetaData>
getMetaData()
RequisitionMonitoredService[]
getMonitoredService()
getMonitoredServiceRequisitionMonitoredService
getMonitoredService(java.lang.String service)
getMonitoredServiceint
getMonitoredServiceCount()
getMonitoredServiceCountjava.util.List<RequisitionMonitoredService>
getMonitoredServices()
getMonitoredServicesPrimaryType
getSnmpPrimary()
Deprecated.It's not a good idea to have side-effects on a getter, like returning a value that does not exactly reflect the internal state of the object.java.lang.Integer
getStatus()
getStatusint
hashCode()
void
insertMonitoredService(RequisitionMonitoredService service)
insertMonitoredServiceboolean
isManaged()
isManagedvoid
putMonitoredService(RequisitionMonitoredService service)
putMonitoredServicevoid
setCategories(java.util.List<RequisitionCategory> categories)
setCategoriesvoid
setDescr(java.lang.String value)
setDescrvoid
setIpAddr(java.lang.String value)
setIpAddrvoid
setManaged(java.lang.Boolean value)
setManagedvoid
setMetaData(java.util.List<RequisitionMetaData> metaData)
void
setMonitoredServices(java.util.List<RequisitionMonitoredService> services)
setMonitoredServicesvoid
setSnmpPrimary(PrimaryType value)
setSnmpPrimaryvoid
setStatus(java.lang.Integer value)
setStatusjava.lang.String
toString()
void
validate()
-
-
-
Field Detail
-
m_monitoredServices
protected java.util.List<RequisitionMonitoredService> m_monitoredServices
-
m_categories
protected java.util.List<RequisitionCategory> m_categories
-
m_metaData
protected java.util.List<RequisitionMetaData> m_metaData
-
m_description
protected java.lang.String m_description
-
m_ipAddress
protected java.lang.String m_ipAddress
-
m_isManaged
protected java.lang.Boolean m_isManaged
-
m_snmpPrimary
protected PrimaryType m_snmpPrimary
-
m_status
protected java.lang.Integer m_status
-
-
Method Detail
-
getMonitoredServiceCount
public int getMonitoredServiceCount()
getMonitoredServiceCount
- Returns:
- a int.
-
getMonitoredService
public RequisitionMonitoredService[] getMonitoredService()
getMonitoredService
- Returns:
- an array of
RequisitionMonitoredService
objects.
-
getMonitoredServices
public java.util.List<RequisitionMonitoredService> getMonitoredServices()
getMonitoredServices
- Returns:
- a
List
object.
-
setMonitoredServices
public void setMonitoredServices(java.util.List<RequisitionMonitoredService> services)
setMonitoredServices
- Parameters:
services
- aList
object.
-
getMonitoredService
public RequisitionMonitoredService getMonitoredService(java.lang.String service)
getMonitoredService
- Parameters:
service
- aString
object.- Returns:
- a
RequisitionMonitoredService
object.
-
deleteMonitoredService
public void deleteMonitoredService(RequisitionMonitoredService service)
deleteMonitoredService
- Parameters:
service
- aRequisitionMonitoredService
object.
-
deleteMonitoredService
public void deleteMonitoredService(java.lang.String service)
deleteMonitoredService
- Parameters:
service
- aString
object.
-
insertMonitoredService
public void insertMonitoredService(RequisitionMonitoredService service)
insertMonitoredService
- Parameters:
service
- aRequisitionMonitoredService
object.
-
putMonitoredService
public void putMonitoredService(RequisitionMonitoredService service)
putMonitoredService
- Parameters:
service
- aRequisitionMonitoredService
object.
-
getCategories
public java.util.List<RequisitionCategory> getCategories()
getCategories
- Returns:
- a
List
object.
-
setCategories
public void setCategories(java.util.List<RequisitionCategory> categories)
setCategories
- Parameters:
categories
- aList
object.
-
getCategory
public RequisitionCategory getCategory(java.lang.String category)
getCategory
- Parameters:
category
- aString
object.- Returns:
- a
RequisitionCategory
object.
-
deleteCategory
public void deleteCategory(RequisitionCategory category)
deleteCategory
- Parameters:
category
- aRequisitionCategory
object.
-
deleteCategory
public void deleteCategory(java.lang.String category)
deleteCategory
- Parameters:
category
- aString
object.
-
getMetaData
public java.util.List<RequisitionMetaData> getMetaData()
-
setMetaData
public void setMetaData(java.util.List<RequisitionMetaData> metaData)
-
getDescr
public java.lang.String getDescr()
getDescr
- Returns:
- a
String
object.
-
setDescr
public void setDescr(java.lang.String value)
setDescr
- Parameters:
value
- aString
object.
-
getIpAddr
public java.lang.String getIpAddr()
getIpAddr
- Returns:
- a
String
object.
-
setIpAddr
public void setIpAddr(java.lang.String value)
setIpAddr
- Parameters:
value
- aString
object.
-
isManaged
public boolean isManaged()
isManaged
- Returns:
- a boolean.
-
setManaged
public void setManaged(java.lang.Boolean value)
setManaged
- Parameters:
value
- aBoolean
object.
-
getSnmpPrimary
public PrimaryType getSnmpPrimary()
Deprecated.It's not a good idea to have side-effects on a getter, like returning a value that does not exactly reflect the internal state of the object.getSnmpPrimary
- Returns:
- a
String
object.
-
setSnmpPrimary
public void setSnmpPrimary(PrimaryType value)
setSnmpPrimary
- Parameters:
value
- aString
object.
-
getStatus
public java.lang.Integer getStatus()
getStatus
- Returns:
- a int.
-
setStatus
public void setStatus(java.lang.Integer value)
setStatus
- Parameters:
value
- aInteger
object.
-
validate
public void validate() throws javax.xml.bind.ValidationException
- Throws:
javax.xml.bind.ValidationException
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
compareTo
public int compareTo(RequisitionInterface other)
- Specified by:
compareTo
in interfacejava.lang.Comparable<RequisitionInterface>
-
-