Class RequisitionInterface

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

public class RequisitionInterface extends Object implements org.jvnet.jaxb2_commons.lang.Equals2, org.jvnet.jaxb2_commons.lang.HashCode2, org.jvnet.jaxb2_commons.lang.ToString2
A network interface.

Java class for interface element declaration.

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

 <element name="interface">
   <complexType>
     <complexContent>
       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
         <sequence>
           <element ref="{http://xmlns.opennms.org/xsd/config/model-import}monitored-service" maxOccurs="unbounded" minOccurs="0"/>
           <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="ip-addr" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
         <attribute name="descr" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" />
         <attribute name="status" type="{http://www.w3.org/2001/XMLSchema}int" default="1" />
         <attribute name="managed" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
         <attribute name="snmp-primary">
           <simpleType>
             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
               <enumeration value="P"/>
               <enumeration value="S"/>
               <enumeration value="C"/>
               <enumeration value="N"/>
             </restriction>
           </simpleType>
         </attribute>
       </restriction>
     </complexContent>
   </complexType>
 </element>
 
  • Field Details

  • Constructor Details

  • Method Details

    • getMonitoredServices

      public List<RequisitionMonitoredService> getMonitoredServices()
      Gets the value of the monitoredServices 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 monitoredServices property.

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

          getMonitoredServices().add(newItem);
       

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

    • isSetMonitoredServices

      public boolean isSetMonitoredServices()
    • unsetMonitoredServices

      public void unsetMonitoredServices()
    • 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()
    • getIpAddr

      public String getIpAddr()
      Gets the value of the ipAddr property.
      Returns:
      possible object is String
    • setIpAddr

      public void setIpAddr(String value)
      Sets the value of the ipAddr property.
      Parameters:
      value - allowed object is String
    • isSetIpAddr

      public boolean isSetIpAddr()
    • getDescr

      public String getDescr()
      Gets the value of the descr property.
      Returns:
      possible object is String
    • setDescr

      public void setDescr(String value)
      Sets the value of the descr property.
      Parameters:
      value - allowed object is String
    • isSetDescr

      public boolean isSetDescr()
    • getStatus

      public int getStatus()
      Gets the value of the status property.
      Returns:
      possible object is Integer
    • setStatus

      public void setStatus(int value)
      Sets the value of the status property.
      Parameters:
      value - allowed object is Integer
    • isSetStatus

      public boolean isSetStatus()
    • unsetStatus

      public void unsetStatus()
    • getManaged

      public boolean getManaged()
      Gets the value of the managed property.
      Returns:
      possible object is Boolean
    • setManaged

      public void setManaged(boolean value)
      Sets the value of the managed property.
      Parameters:
      value - allowed object is Boolean
    • isSetManaged

      public boolean isSetManaged()
    • unsetManaged

      public void unsetManaged()
    • getSnmpPrimary

      public String getSnmpPrimary()
      Gets the value of the snmpPrimary property.
      Returns:
      possible object is String
    • setSnmpPrimary

      public void setSnmpPrimary(String value)
      Sets the value of the snmpPrimary property.
      Parameters:
      value - allowed object is String
    • isSetSnmpPrimary

      public boolean isSetSnmpPrimary()
    • 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
    • withMonitoredServices

      public RequisitionInterface withMonitoredServices(RequisitionMonitoredService... values)
    • withMonitoredServices

      public RequisitionInterface withMonitoredServices(Collection<RequisitionMonitoredService> values)
    • withCategories

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

      public RequisitionInterface withCategories(Collection<RequisitionCategory> values)
    • withMetaDatas

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

      public RequisitionInterface withMetaDatas(Collection<MetaData> values)
    • withIpAddr

      public RequisitionInterface withIpAddr(String value)
    • withDescr

      public RequisitionInterface withDescr(String value)
    • withStatus

      public RequisitionInterface withStatus(int value)
    • withManaged

      public RequisitionInterface withManaged(boolean value)
    • withSnmpPrimary

      public RequisitionInterface withSnmpPrimary(String value)