com.lionbridge.content.sdk.models.LBLanguage Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of liox-content-sdk-java Show documentation
Show all versions of liox-content-sdk-java Show documentation
Client for Lionbridge Ondemand API
package com.lionbridge.content.sdk.models;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;
public abstract class LBLanguage {
@JacksonXmlProperty(localName="LanguageCode")
private String languageCode;
public LBLanguage() {}
public LBLanguage(String languageCode) {
this.setLanguageCode(languageCode);
}
public String getLanguageCode() {
return languageCode;
}
public void setLanguageCode(String languageCode) {
if (languageCode != null) {
this.languageCode = languageCode.trim();
}
}
public boolean equals(final LBLanguage other) {
return other.getLanguageCode().trim().equalsIgnoreCase(getLanguageCode().trim());
}
}