
com.connectifier.xeroclient.models.TrackingCategory Maven / Gradle / Ivy
package com.connectifier.xeroclient.models;
import java.util.List;
/**
* Schema fragment(s) for this class:
*
* <xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema" name="TrackingCategory">
* <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="Name" minOccurs="1" maxOccurs="1"/>
* <xs:element type="xs:string" name="Status" minOccurs="0" maxOccurs="1"/>
* <xs:element type="xs:string" name="TrackingCategoryID" minOccurs="1" maxOccurs="1"/>
* <xs:element type="ArrayOfTrackingCategoryOption" name="Options" minOccurs="0" maxOccurs="1"/>
* <xs:element type="xs:string" name="Option" minOccurs="0" maxOccurs="1"/>
* </xs:all>
* <xs:attribute type="entityValidationStatus" use="optional" name="status"/>
* </xs:complexType>
*
*/
public class TrackingCategory
{
private ArrayOfValidationError validationErrors;
private ArrayOfWarning warnings;
private String name;
private String status;
private String trackingCategoryID;
private ArrayOfTrackingCategoryOption options;
private String option;
private EntityValidationStatus status1;
/**
* 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 'Name' element value.
*
* @return value
*/
public String getName() {
return name;
}
/**
* Set the 'Name' element value.
*
* @param name
*/
public void setName(String name) {
this.name = name;
}
/**
* Get the 'Status' element value.
*
* @return value
*/
public String getStatus() {
return status;
}
/**
* Set the 'Status' element value.
*
* @param status
*/
public void setStatus(String status) {
this.status = status;
}
/**
* Get the 'TrackingCategoryID' element value.
*
* @return value
*/
public String getTrackingCategoryID() {
return trackingCategoryID;
}
/**
* Set the 'TrackingCategoryID' element value.
*
* @param trackingCategoryID
*/
public void setTrackingCategoryID(String trackingCategoryID) {
this.trackingCategoryID = trackingCategoryID;
}
/**
* Get the 'Options' element value.
*
* @return value
*/
public ArrayOfTrackingCategoryOption getOptions() {
return options;
}
/**
* Set the 'Options' element value.
*
* @param options
*/
public void setOptions(ArrayOfTrackingCategoryOption options) {
this.options = options;
}
public List getOptionsAsList() {
if (options == null)
options = new ArrayOfTrackingCategoryOption();
return options.getOptionList();
}
/**
* Get the 'Option' element value.
*
* @return value
*/
public String getOption() {
return option;
}
/**
* Set the 'Option' element value.
*
* @param option
*/
public void setOption(String option) {
this.option = option;
}
/**
* Get the 'status' attribute value.
*
* @return value
*/
public EntityValidationStatus getStatus1() {
return status1;
}
/**
* Set the 'status' attribute value.
*
* @param status1
*/
public void setStatus1(EntityValidationStatus status1) {
this.status1 = status1;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy