home *** CD-ROM | disk | FTP | other *** search
- package java.text;
-
- import java.io.InvalidObjectException;
- import java.io.Serializable;
- import java.util.HashMap;
- import java.util.Map;
-
- public class AttributedCharacterIterator$Attribute implements Serializable {
- private String name;
- private static final Map instanceMap = new HashMap(7);
- public static final AttributedCharacterIterator$Attribute LANGUAGE = new AttributedCharacterIterator$Attribute("language");
- public static final AttributedCharacterIterator$Attribute READING = new AttributedCharacterIterator$Attribute("reading");
- public static final AttributedCharacterIterator$Attribute INPUT_METHOD_SEGMENT = new AttributedCharacterIterator$Attribute("input_method_segment");
- // $FF: synthetic field
- static Class class$java$text$AttributedCharacterIterator$Attribute;
-
- protected AttributedCharacterIterator$Attribute(String var1) {
- this.name = var1;
- if (this.getClass() == (class$java$text$AttributedCharacterIterator$Attribute == null ? (class$java$text$AttributedCharacterIterator$Attribute = class$("java.text.AttributedCharacterIterator$Attribute")) : class$java$text$AttributedCharacterIterator$Attribute)) {
- instanceMap.put(var1, this);
- }
-
- }
-
- public final boolean equals(Object var1) {
- return super.equals(var1);
- }
-
- public final int hashCode() {
- return super.hashCode();
- }
-
- public String toString() {
- return this.getClass().getName() + "(" + this.name + ")";
- }
-
- protected String getName() {
- return this.name;
- }
-
- protected Object readResolve() throws InvalidObjectException {
- if (this.getClass() != (class$java$text$AttributedCharacterIterator$Attribute == null ? (class$java$text$AttributedCharacterIterator$Attribute = class$("java.text.AttributedCharacterIterator$Attribute")) : class$java$text$AttributedCharacterIterator$Attribute)) {
- throw new InvalidObjectException("subclass didn't correctly implement readResolve");
- } else {
- AttributedCharacterIterator$Attribute var1 = (AttributedCharacterIterator$Attribute)instanceMap.get(this.getName());
- if (var1 != null) {
- return var1;
- } else {
- throw new InvalidObjectException("unknown attribute name");
- }
- }
- }
-
- // $FF: synthetic method
- static Class class$(String var0) {
- try {
- return Class.forName(var0);
- } catch (ClassNotFoundException var2) {
- throw new NoClassDefFoundError(((Throwable)var2).getMessage());
- }
- }
- }
-