/* * Copyright 2011 FatWire Corporation. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.fatwire.gst.foundation.html; /** * * @deprecated as of release 12.x * */ final class HtmlI18NAttr { private String lang; private String dir; /** * @return the lang */ public String getLang() { return lang; } /** * @param lang the lang to set */ public void setLang(final String lang) { this.lang = lang; } /** * @return the dir */ public String getDir() { return dir; } /** * @param dir the dir to set */ public void setDir(final String dir) { this.dir = dir; } /* * (non-Javadoc) * * @see java.lang.Object#hashCode() */ @Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + (dir == null ? 0 : dir.hashCode()); result = prime * result + (lang == null ? 0 : lang.hashCode()); return result; } /* * (non-Javadoc) * * @see java.lang.Object#equals(java.lang.Object) */ @Override public boolean equals(final Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (!(obj instanceof HtmlI18NAttr)) { return false; } final HtmlI18NAttr other = (HtmlI18NAttr) obj; if (dir == null) { if (other.dir != null) { return false; } } else if (!dir.equals(other.dir)) { return false; } if (lang == null) { if (other.lang != null) { return false; } } else if (!lang.equals(other.lang)) { return false; } return true; } }