All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.connectifier.xeroclient.models.Journal Maven / Gradle / Ivy


package com.connectifier.xeroclient.models;

import java.util.Date;
import java.util.List;

/** 
 * Schema fragment(s) for this class:
 * 
 * <xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema" name="Journal">
 *   <xs:all>
 *     <xs:element type="ArrayOfValidationError" name="ValidationErrors" minOccurs="0" maxOccurs="1"/>
 *     <xs:element type="ArrayOfWarning" name="Warnings" minOccurs="0" maxOccurs="1"/>
 *     <xs:element type="xs:string" name="Reference" minOccurs="0" maxOccurs="1"/>
 *     <xs:element type="xs:string" name="JournalID" minOccurs="1" maxOccurs="1"/>
 *     <xs:element type="xs:dateTime" nillable="true" name="JournalDate" minOccurs="1" maxOccurs="1"/>
 *     <xs:element type="xs:string" name="JournalNumber" minOccurs="1" maxOccurs="1"/>
 *     <xs:element type="xs:dateTime" nillable="true" name="CreatedDateUTC" minOccurs="1" maxOccurs="1"/>
 *     <xs:element type="ArrayOfJournalLine" name="JournalLines" minOccurs="1" maxOccurs="1"/>
 *   </xs:all>
 *   <xs:attribute type="entityValidationStatus" use="optional" name="status"/>
 * </xs:complexType>
 * 
*/ public class Journal { private ArrayOfValidationError validationErrors; private ArrayOfWarning warnings; private String reference; private String journalID; private Date journalDate; private String journalNumber; private Date createdDateUTC; private ArrayOfJournalLine journalLines; private EntityValidationStatus status; /** * Get the 'ValidationErrors' element value. * * @return value */ public ArrayOfValidationError getValidationErrors() { return validationErrors; } /** * Set the 'ValidationErrors' element value. * * @param validationErrors */ public void setValidationErrors(ArrayOfValidationError validationErrors) { this.validationErrors = validationErrors; } public List getValidationErrorsAsList() { if (validationErrors == null) validationErrors = new ArrayOfValidationError(); return validationErrors.getValidationErrorList(); } /** * Get the 'Warnings' element value. * * @return value */ public ArrayOfWarning getWarnings() { return warnings; } /** * Set the 'Warnings' element value. * * @param warnings */ public void setWarnings(ArrayOfWarning warnings) { this.warnings = warnings; } public List getWarningsAsList() { if (warnings == null) warnings = new ArrayOfWarning(); return warnings.getWarningList(); } /** * Get the 'Reference' element value. * * @return value */ public String getReference() { return reference; } /** * Set the 'Reference' element value. * * @param reference */ public void setReference(String reference) { this.reference = reference; } /** * Get the 'JournalID' element value. * * @return value */ public String getJournalID() { return journalID; } /** * Set the 'JournalID' element value. * * @param journalID */ public void setJournalID(String journalID) { this.journalID = journalID; } /** * Get the 'JournalDate' element value. * * @return value */ public Date getJournalDate() { return journalDate; } /** * Set the 'JournalDate' element value. * * @param journalDate */ public void setJournalDate(Date journalDate) { this.journalDate = journalDate; } /** * Get the 'JournalNumber' element value. * * @return value */ public String getJournalNumber() { return journalNumber; } /** * Set the 'JournalNumber' element value. * * @param journalNumber */ public void setJournalNumber(String journalNumber) { this.journalNumber = journalNumber; } /** * Get the 'CreatedDateUTC' element value. * * @return value */ public Date getCreatedDateUTC() { return createdDateUTC; } /** * Set the 'CreatedDateUTC' element value. * * @param createdDateUTC */ public void setCreatedDateUTC(Date createdDateUTC) { this.createdDateUTC = createdDateUTC; } /** * Get the 'JournalLines' element value. * * @return value */ public ArrayOfJournalLine getJournalLines() { return journalLines; } /** * Set the 'JournalLines' element value. * * @param journalLines */ public void setJournalLines(ArrayOfJournalLine journalLines) { this.journalLines = journalLines; } public List getJournalLinesAsList() { if (journalLines == null) journalLines = new ArrayOfJournalLine(); return journalLines.getJournalLineList(); } /** * Get the 'status' attribute value. * * @return value */ public EntityValidationStatus getStatus() { return status; } /** * Set the 'status' attribute value. * * @param status */ public void setStatus(EntityValidationStatus status) { this.status = status; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy