
com.connectifier.xeroclient.models.Phone 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="Phone">
* <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="phoneTypeCodeType" name="PhoneType" minOccurs="0" maxOccurs="1"/>
* <xs:element type="xs:string" name="PhoneNumber" minOccurs="0" maxOccurs="1"/>
* <xs:element type="xs:string" name="PhoneAreaCode" minOccurs="0" maxOccurs="1"/>
* <xs:element type="xs:string" name="PhoneCountryCode" minOccurs="0" maxOccurs="1"/>
* </xs:all>
* <xs:attribute type="entityValidationStatus" use="optional" name="status"/>
* </xs:complexType>
*
*/
public class Phone
{
private ArrayOfValidationError validationErrors;
private ArrayOfWarning warnings;
private PhoneTypeCodeType phoneType;
private String phoneNumber;
private String phoneAreaCode;
private String phoneCountryCode;
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 'PhoneType' element value.
*
* @return value
*/
public PhoneTypeCodeType getPhoneType() {
return phoneType;
}
/**
* Set the 'PhoneType' element value.
*
* @param phoneType
*/
public void setPhoneType(PhoneTypeCodeType phoneType) {
this.phoneType = phoneType;
}
/**
* Get the 'PhoneNumber' element value.
*
* @return value
*/
public String getPhoneNumber() {
return phoneNumber;
}
/**
* Set the 'PhoneNumber' element value.
*
* @param phoneNumber
*/
public void setPhoneNumber(String phoneNumber) {
this.phoneNumber = phoneNumber;
}
/**
* Get the 'PhoneAreaCode' element value.
*
* @return value
*/
public String getPhoneAreaCode() {
return phoneAreaCode;
}
/**
* Set the 'PhoneAreaCode' element value.
*
* @param phoneAreaCode
*/
public void setPhoneAreaCode(String phoneAreaCode) {
this.phoneAreaCode = phoneAreaCode;
}
/**
* Get the 'PhoneCountryCode' element value.
*
* @return value
*/
public String getPhoneCountryCode() {
return phoneCountryCode;
}
/**
* Set the 'PhoneCountryCode' element value.
*
* @param phoneCountryCode
*/
public void setPhoneCountryCode(String phoneCountryCode) {
this.phoneCountryCode = phoneCountryCode;
}
/**
* 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