Home | History | Annotate | Download | only in text

Lines Matching refs:Attribute

40     public static class Attribute implements Serializable {
45 * This attribute marks segments from an input method. Most input
51 public static final Attribute INPUT_METHOD_SEGMENT = new Attribute("input_method_segment");
54 * The attribute describing the language of a character. The value
57 public static final Attribute LANGUAGE = new Attribute("language");
61 * Japanese), this attribute allows to define which reading should be
65 public static final Attribute READING = new Attribute("reading");
70 * The constructor for an {@code Attribute} with the name passed.
73 * the name of the new {@code Attribute}.
75 protected Attribute(String name) {
80 * Compares this attribute with the specified object. Checks if both
95 * Returns the name of this attribute.
97 * @return the name of this attribute.
104 * Calculates the hash code for objects of type {@code Attribute}. It
108 * @return the hash code for this instance of {@code Attribute}.
116 * Resolves a deserialized instance to the correct constant attribute.
118 * @return the {@code Attribute} this instance represents.
120 * if this instance is not of type {@code Attribute.class}
121 * or if it is not a known {@code Attribute}.
132 Attribute candidate = (Attribute) field.get(null);
145 * attribute, and a ")".
160 * @return a set of attribute keys; may be empty.
162 public Set<Attribute> getAllAttributeKeys();
165 * Returns the value stored in the attribute for the current character. If
166 * the attribute was not defined then {@code null} is returned.
168 * @param attribute the attribute for which the value should be returned.
169 * @return the value of the requested attribute for the current character or
172 public Object getAttribute(Attribute attribute);
182 public Map<Attribute, Object> getAttributes();
194 * attribute value for the given attribute as the current character.
196 * @param attribute
197 * the attribute which the run is based on.
200 public int getRunLimit(Attribute attribute);
204 * attribute values for the attributes in the set as the current character.
210 public int getRunLimit(Set<? extends Attribute> attributes);
222 * attribute value for the given attribute as the current character.
224 * @param attribute
225 * the attribute which the run is based on.
228 public int getRunStart(Attribute attribute);
232 * attribute values for the attributes in the set as the current character.
238 public int getRunStart(Set<? extends Attribute> attributes);