
com.connectifier.xeroclient.models.Attachment Maven / Gradle / Ivy
package com.connectifier.xeroclient.models;
import java.math.BigInteger;
import java.util.List;
/**
* Schema fragment(s) for this class:
*
* <xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema" name="Attachment">
* <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="AttachmentID" minOccurs="1" maxOccurs="1"/>
* <xs:element type="xs:string" name="FileName" minOccurs="1" maxOccurs="1"/>
* <xs:element type="xs:string" name="Url" minOccurs="0" maxOccurs="1"/>
* <xs:element type="xs:string" name="MimeType" minOccurs="0" maxOccurs="1"/>
* <xs:element type="xs:integer" name="ContentLength" minOccurs="0" maxOccurs="1"/>
* </xs:all>
* <xs:attribute type="entityValidationStatus" use="optional" name="status"/>
* </xs:complexType>
*
*/
public class Attachment
{
private ArrayOfValidationError validationErrors;
private ArrayOfWarning warnings;
private String attachmentID;
private String fileName;
private String url;
private String mimeType;
private BigInteger contentLength;
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 'AttachmentID' element value.
*
* @return value
*/
public String getAttachmentID() {
return attachmentID;
}
/**
* Set the 'AttachmentID' element value.
*
* @param attachmentID
*/
public void setAttachmentID(String attachmentID) {
this.attachmentID = attachmentID;
}
/**
* Get the 'FileName' element value.
*
* @return value
*/
public String getFileName() {
return fileName;
}
/**
* Set the 'FileName' element value.
*
* @param fileName
*/
public void setFileName(String fileName) {
this.fileName = fileName;
}
/**
* Get the 'Url' element value.
*
* @return value
*/
public String getUrl() {
return url;
}
/**
* Set the 'Url' element value.
*
* @param url
*/
public void setUrl(String url) {
this.url = url;
}
/**
* Get the 'MimeType' element value.
*
* @return value
*/
public String getMimeType() {
return mimeType;
}
/**
* Set the 'MimeType' element value.
*
* @param mimeType
*/
public void setMimeType(String mimeType) {
this.mimeType = mimeType;
}
/**
* Get the 'ContentLength' element value.
*
* @return value
*/
public BigInteger getContentLength() {
return contentLength;
}
/**
* Set the 'ContentLength' element value.
*
* @param contentLength
*/
public void setContentLength(BigInteger contentLength) {
this.contentLength = contentLength;
}
/**
* 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