Class RequisitionMonitoredService
- java.lang.Object
-
- org.opennms.netmgt.provision.persist.requisition.RequisitionMonitoredService
-
- All Implemented Interfaces:
java.lang.Comparable<RequisitionMonitoredService>
public class RequisitionMonitoredService extends java.lang.Object implements java.lang.Comparable<RequisitionMonitoredService>
RequisitionMonitoredService class.
- Version:
- $Id: $
- Author:
- ranger
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<RequisitionCategory>
m_categories
protected java.util.List<RequisitionMetaData>
m_metaData
protected java.lang.String
m_serviceName
-
Constructor Summary
Constructors Constructor Description RequisitionMonitoredService()
Constructor for RequisitionMonitoredService.RequisitionMonitoredService(java.lang.String serviceName)
Constructor for RequisitionMonitoredService.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(RequisitionMonitoredService other)
void
deleteCategory(java.lang.String category)
deleteCategoryvoid
deleteCategory(RequisitionCategory category)
deleteCategoryboolean
equals(java.lang.Object obj)
java.util.List<RequisitionCategory>
getCategories()
getCategoriesRequisitionCategory[]
getCategory()
getCategoryint
getCategoryCount()
getCategoryCountjava.util.List<RequisitionMetaData>
getMetaData()
java.lang.String
getServiceName()
getServiceNameint
hashCode()
void
insertCategory(RequisitionCategory category)
insertCategoryvoid
setCategories(java.util.List<RequisitionCategory> categories)
setCategoriesvoid
setMetaData(java.util.List<RequisitionMetaData> metaData)
void
setServiceName(java.lang.String value)
setServiceNamejava.lang.String
toString()
void
validate()
-
-
-
Field Detail
-
m_categories
protected java.util.List<RequisitionCategory> m_categories
-
m_metaData
protected java.util.List<RequisitionMetaData> m_metaData
-
m_serviceName
protected java.lang.String m_serviceName
-
-
Constructor Detail
-
RequisitionMonitoredService
public RequisitionMonitoredService()
Constructor for RequisitionMonitoredService.
-
RequisitionMonitoredService
public RequisitionMonitoredService(java.lang.String serviceName)
Constructor for RequisitionMonitoredService.
- Parameters:
serviceName
- aString
object.
-
-
Method Detail
-
getCategoryCount
public int getCategoryCount()
getCategoryCount
- Returns:
- a int.
-
getCategory
public RequisitionCategory[] getCategory()
getCategory
- Returns:
- an array of
RequisitionCategory
objects.
-
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.
-
deleteCategory
public void deleteCategory(RequisitionCategory category)
deleteCategory
- Parameters:
category
- aRequisitionCategory
object.
-
deleteCategory
public void deleteCategory(java.lang.String category)
deleteCategory
- Parameters:
category
- aString
object.
-
insertCategory
public void insertCategory(RequisitionCategory category)
insertCategory
- Parameters:
category
- aRequisitionCategory
object.
-
getMetaData
public java.util.List<RequisitionMetaData> getMetaData()
-
setMetaData
public void setMetaData(java.util.List<RequisitionMetaData> metaData)
-
getServiceName
public java.lang.String getServiceName()
getServiceName
- Returns:
- a
String
object.
-
setServiceName
public void setServiceName(java.lang.String value)
setServiceName
- Parameters:
value
- aString
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(RequisitionMonitoredService other)
- Specified by:
compareTo
in interfacejava.lang.Comparable<RequisitionMonitoredService>
-
-