Package org.opennms.pris.model
Class Requisition
java.lang.Object
org.opennms.pris.model.Requisition
- All Implemented Interfaces:
org.jvnet.jaxb2_commons.lang.Equals2
,org.jvnet.jaxb2_commons.lang.HashCode2
,org.jvnet.jaxb2_commons.lang.ToString2
public class Requisition
extends Object
implements org.jvnet.jaxb2_commons.lang.Equals2, org.jvnet.jaxb2_commons.lang.HashCode2, org.jvnet.jaxb2_commons.lang.ToString2
Use this configuration file as an import of nodes, interfaces, and services to OpenNMS by-passing several phases of discovery and capabilities polling.
Java class for model-import element declaration.
The following schema fragment specifies the expected content contained within this class.
<element name="model-import"> <complexType> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <sequence> <element ref="{http://xmlns.opennms.org/xsd/config/model-import}node" maxOccurs="unbounded" minOccurs="0"/> </sequence> <attribute name="date-stamp" type="{http://www.w3.org/2001/XMLSchema}dateTime" /> <attribute name="last-import" type="{http://www.w3.org/2001/XMLSchema}dateTime" /> <attribute name="foreign-source" type="{http://www.w3.org/2001/XMLSchema}string" default="imported:" /> </restriction> </complexContent> </complexType> </element>
-
Field Summary
Modifier and TypeFieldDescriptionprotected XMLGregorianCalendar
protected String
protected XMLGregorianCalendar
protected List<RequisitionNode>
-
Constructor Summary
ConstructorDescriptionDefault no-arg constructorRequisition
(List<RequisitionNode> nodes, XMLGregorianCalendar dateStamp, XMLGregorianCalendar lastImport, String foreignSource) 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 dateStamp property.Gets the value of the foreignSource property.Gets the value of the lastImport property.getNodes()
Gets the value of the nodes property.int
hashCode()
int
hashCode
(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, org.jvnet.jaxb2_commons.lang.HashCodeStrategy2 strategy) boolean
boolean
boolean
boolean
void
setDateStamp
(XMLGregorianCalendar value) Sets the value of the dateStamp property.void
setForeignSource
(String value) Sets the value of the foreignSource property.void
Sets the value of the lastImport property.toString()
void
withForeignSource
(String value) withNodes
(Collection<RequisitionNode> values) withNodes
(RequisitionNode... values)
-
Field Details
-
nodes
-
dateStamp
-
lastImport
-
foreignSource
-
-
Constructor Details
-
Requisition
public Requisition()Default no-arg constructor -
Requisition
public Requisition(List<RequisitionNode> nodes, XMLGregorianCalendar dateStamp, XMLGregorianCalendar lastImport, String foreignSource) Fully-initialising value constructor
-
-
Method Details
-
getNodes
Gets the value of the nodes 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 nodes property.For example, to add a new item, do as follows:
getNodes().add(newItem);
Objects of the following type(s) are allowed in the list
RequisitionNode
-
isSetNodes
public boolean isSetNodes() -
unsetNodes
public void unsetNodes() -
getDateStamp
Gets the value of the dateStamp property.- Returns:
- possible object is
XMLGregorianCalendar
-
setDateStamp
Sets the value of the dateStamp property.- Parameters:
value
- allowed object isXMLGregorianCalendar
-
isSetDateStamp
public boolean isSetDateStamp() -
getLastImport
Gets the value of the lastImport property.- Returns:
- possible object is
XMLGregorianCalendar
-
setLastImport
Sets the value of the lastImport property.- Parameters:
value
- allowed object isXMLGregorianCalendar
-
isSetLastImport
public boolean isSetLastImport() -
getForeignSource
Gets the value of the foreignSource property.- Returns:
- possible object is
String
-
setForeignSource
Sets the value of the foreignSource property.- Parameters:
value
- allowed object isString
-
isSetForeignSource
public boolean isSetForeignSource() -
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() -
withNodes
-
withNodes
-
withDateStamp
-
withLastImport
-
withForeignSource
-