Class RequisitionMonitoredService

java.lang.Object
org.opennms.pris.model.RequisitionMonitoredService
All Implemented Interfaces:
org.jvnet.jaxb2_commons.lang.Equals2, org.jvnet.jaxb2_commons.lang.HashCode2, org.jvnet.jaxb2_commons.lang.ToString2

public class RequisitionMonitoredService extends Object implements org.jvnet.jaxb2_commons.lang.Equals2, org.jvnet.jaxb2_commons.lang.HashCode2, org.jvnet.jaxb2_commons.lang.ToString2
This element is defined outside of the interface element for future use where it is expected that services on other network entities will be able to be defined (i.e. networks, nodes and applications)

Java class for monitored-service element declaration.

The following schema fragment specifies the expected content contained within this class.

 <element name="monitored-service">
   <complexType>
     <complexContent>
       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
         <sequence>
           <element ref="{http://xmlns.opennms.org/xsd/config/model-import}category" maxOccurs="unbounded" minOccurs="0"/>
           <element ref="{http://xmlns.opennms.org/xsd/config/model-import}meta-data" maxOccurs="unbounded" minOccurs="0"/>
         </sequence>
         <attribute name="service-name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
       </restriction>
     </complexContent>
   </complexType>
 </element>
 
  • Field Details

  • Constructor Details

    • RequisitionMonitoredService

      public RequisitionMonitoredService()
      Default no-arg constructor
    • RequisitionMonitoredService

      public RequisitionMonitoredService(List<RequisitionCategory> categories, List<MetaData> metaDatas, String serviceName)
      Fully-initialising value constructor
  • Method Details

    • getCategories

      public List<RequisitionCategory> getCategories()
      Gets the value of the categories property.

      This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the categories property.

      For example, to add a new item, do as follows:

          getCategories().add(newItem);
       

      Objects of the following type(s) are allowed in the list RequisitionCategory

    • isSetCategories

      public boolean isSetCategories()
    • unsetCategories

      public void unsetCategories()
    • getMetaDatas

      public List<MetaData> getMetaDatas()
      Gets the value of the metaDatas property.

      This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the metaDatas property.

      For example, to add a new item, do as follows:

          getMetaDatas().add(newItem);
       

      Objects of the following type(s) are allowed in the list MetaData

    • isSetMetaDatas

      public boolean isSetMetaDatas()
    • unsetMetaDatas

      public void unsetMetaDatas()
    • getServiceName

      public String getServiceName()
      Gets the value of the serviceName property.
      Returns:
      possible object is String
    • setServiceName

      public void setServiceName(String value)
      Sets the value of the serviceName property.
      Parameters:
      value - allowed object is String
    • isSetServiceName

      public boolean isSetServiceName()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • append

      public StringBuilder append(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy)
      Specified by:
      append in interface org.jvnet.jaxb2_commons.lang.ToString2
    • appendFields

      public StringBuilder appendFields(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy)
      Specified by:
      appendFields in interface org.jvnet.jaxb2_commons.lang.ToString2
    • equals

      public boolean equals(org.jvnet.jaxb2_commons.locator.ObjectLocator thisLocator, org.jvnet.jaxb2_commons.locator.ObjectLocator thatLocator, Object object, org.jvnet.jaxb2_commons.lang.EqualsStrategy2 strategy)
      Specified by:
      equals in interface org.jvnet.jaxb2_commons.lang.Equals2
    • equals

      public boolean equals(Object object)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, org.jvnet.jaxb2_commons.lang.HashCodeStrategy2 strategy)
      Specified by:
      hashCode in interface org.jvnet.jaxb2_commons.lang.HashCode2
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • withCategories

      public RequisitionMonitoredService withCategories(RequisitionCategory... values)
    • withCategories

    • withMetaDatas

      public RequisitionMonitoredService withMetaDatas(MetaData... values)
    • withMetaDatas

      public RequisitionMonitoredService withMetaDatas(Collection<MetaData> values)
    • withServiceName

      public RequisitionMonitoredService withServiceName(String value)