Class RequisitionInterface
- All Implemented Interfaces:
org.jvnet.jaxb2_commons.lang.Equals2
,org.jvnet.jaxb2_commons.lang.HashCode2
,org.jvnet.jaxb2_commons.lang.ToString2
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 Summary
Modifier and TypeFieldDescriptionprotected List<RequisitionCategory>
protected String
protected String
protected Boolean
protected List<RequisitionMonitoredService>
protected String
protected Integer
-
Constructor Summary
ConstructorDescriptionDefault no-arg constructorRequisitionInterface
(List<RequisitionMonitoredService> monitoredServices, List<RequisitionCategory> categories, List<MetaData> metaDatas, String ipAddr, String descr, Integer status, Boolean managed, String snmpPrimary) Fully-initialising value constructor -
Method Summary
Modifier and TypeMethodDescriptionappend
(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy) appendFields
(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy) boolean
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) Gets the value of the categories property.getDescr()
Gets the value of the descr property.Gets the value of the ipAddr property.boolean
Gets the value of the managed property.Gets the value of the metaDatas property.Gets the value of the monitoredServices property.Gets the value of the snmpPrimary property.int
Gets the value of the status property.int
hashCode()
int
hashCode
(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, org.jvnet.jaxb2_commons.lang.HashCodeStrategy2 strategy) boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
void
Sets the value of the descr property.void
Sets the value of the ipAddr property.void
setManaged
(boolean value) Sets the value of the managed property.void
setSnmpPrimary
(String value) Sets the value of the snmpPrimary property.void
setStatus
(int value) Sets the value of the status property.toString()
void
void
void
void
void
withCategories
(Collection<RequisitionCategory> values) withCategories
(RequisitionCategory... values) withIpAddr
(String value) withManaged
(boolean value) withMetaDatas
(Collection<MetaData> values) withMetaDatas
(MetaData... values) withMonitoredServices
(RequisitionMonitoredService... values) withSnmpPrimary
(String value) withStatus
(int value)
-
Field Details
-
monitoredServices
-
categories
-
metaDatas
-
ipAddr
-
descr
-
status
-
managed
-
snmpPrimary
-
-
Constructor Details
-
RequisitionInterface
public RequisitionInterface()Default no-arg constructor -
RequisitionInterface
public RequisitionInterface(List<RequisitionMonitoredService> monitoredServices, List<RequisitionCategory> categories, List<MetaData> metaDatas, String ipAddr, String descr, Integer status, Boolean managed, String snmpPrimary) Fully-initialising value constructor
-
-
Method Details
-
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
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
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
Gets the value of the ipAddr property.- Returns:
- possible object is
String
-
setIpAddr
Sets the value of the ipAddr property.- Parameters:
value
- allowed object isString
-
isSetIpAddr
public boolean isSetIpAddr() -
getDescr
Gets the value of the descr property.- Returns:
- possible object is
String
-
setDescr
Sets the value of the descr property.- Parameters:
value
- allowed object isString
-
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 isInteger
-
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 isBoolean
-
isSetManaged
public boolean isSetManaged() -
unsetManaged
public void unsetManaged() -
getSnmpPrimary
Gets the value of the snmpPrimary property.- Returns:
- possible object is
String
-
setSnmpPrimary
Sets the value of the snmpPrimary property.- Parameters:
value
- allowed object isString
-
isSetSnmpPrimary
public boolean isSetSnmpPrimary() -
toString
-
append
public StringBuilder append(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy) - Specified by:
append
in interfaceorg.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 interfaceorg.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 interfaceorg.jvnet.jaxb2_commons.lang.Equals2
-
equals
-
hashCode
public int hashCode(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, org.jvnet.jaxb2_commons.lang.HashCodeStrategy2 strategy) - Specified by:
hashCode
in interfaceorg.jvnet.jaxb2_commons.lang.HashCode2
-
hashCode
public int hashCode() -
withMonitoredServices
-
withMonitoredServices
-
withCategories
-
withCategories
-
withMetaDatas
-
withMetaDatas
-
withIpAddr
-
withDescr
-
withStatus
-
withManaged
-
withSnmpPrimary
-