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 SummaryFieldsModifier and TypeFieldDescriptionprotected XMLGregorianCalendarprotected Stringprotected XMLGregorianCalendarprotected List<RequisitionNode>
- 
Constructor SummaryConstructorsConstructorDescriptionDefault no-arg constructorRequisition(List<RequisitionNode> nodes, XMLGregorianCalendar dateStamp, XMLGregorianCalendar lastImport, String foreignSource) Fully-initialising value constructor
- 
Method SummaryModifier 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) booleanbooleanequals(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.inthashCode()inthashCode(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, org.jvnet.jaxb2_commons.lang.HashCodeStrategy2 strategy) booleanbooleanbooleanbooleanvoidsetDateStamp(XMLGregorianCalendar value) Sets the value of the dateStamp property.voidsetForeignSource(String value) Sets the value of the foreignSource property.voidSets the value of the lastImport property.toString()voidwithForeignSource(String value) withNodes(Collection<RequisitionNode> values) withNodes(RequisitionNode... values) 
- 
Field Details- 
nodes
- 
dateStamp
- 
lastImport
- 
foreignSource
 
- 
- 
Constructor Details- 
Requisitionpublic Requisition()Default no-arg constructor
- 
Requisitionpublic Requisition(List<RequisitionNode> nodes, XMLGregorianCalendar dateStamp, XMLGregorianCalendar lastImport, String foreignSource) Fully-initialising value constructor
 
- 
- 
Method Details- 
getNodesGets 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 setmethod 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
- 
isSetNodespublic boolean isSetNodes()
- 
unsetNodespublic void unsetNodes()
- 
getDateStampGets the value of the dateStamp property.- Returns:
- possible object is
     XMLGregorianCalendar
 
- 
setDateStampSets the value of the dateStamp property.- Parameters:
- value- allowed object is- XMLGregorianCalendar
 
- 
isSetDateStamppublic boolean isSetDateStamp()
- 
getLastImportGets the value of the lastImport property.- Returns:
- possible object is
     XMLGregorianCalendar
 
- 
setLastImportSets the value of the lastImport property.- Parameters:
- value- allowed object is- XMLGregorianCalendar
 
- 
isSetLastImportpublic boolean isSetLastImport()
- 
getForeignSourceGets the value of the foreignSource property.- Returns:
- possible object is
     String
 
- 
setForeignSourceSets the value of the foreignSource property.- Parameters:
- value- allowed object is- String
 
- 
isSetForeignSourcepublic boolean isSetForeignSource()
- 
toString
- 
appendpublic StringBuilder append(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy) - Specified by:
- appendin interface- org.jvnet.jaxb2_commons.lang.ToString2
 
- 
appendFieldspublic StringBuilder appendFields(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy) - Specified by:
- appendFieldsin interface- org.jvnet.jaxb2_commons.lang.ToString2
 
- 
equalspublic 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:
- equalsin interface- org.jvnet.jaxb2_commons.lang.Equals2
 
- 
equals
- 
hashCodepublic int hashCode(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, org.jvnet.jaxb2_commons.lang.HashCodeStrategy2 strategy) - Specified by:
- hashCodein interface- org.jvnet.jaxb2_commons.lang.HashCode2
 
- 
hashCodepublic int hashCode()
- 
withNodes
- 
withNodes
- 
withDateStamp
- 
withLastImport
- 
withForeignSource
 
-