public abstract class Modifier
extends java.lang.Object
implements java.lang.Cloneable, java.io.Serializable
Modifier class is the abstract base class for all
modifiers which define attributes and values for the modification.| 修飾子とタイプ | フィールドと説明 |
|---|---|
protected java.util.Hashtable |
description
the attributes and values for the modification.
|
static java.lang.String |
NULL
The constant for the value "NULL".
|
| コンストラクタと説明 |
|---|
Modifier()
Constructs an empty modifier.
|
Modifier(Modifier modifier)
Constructs a modifier that has the same attributes and values as
the specified modifier.
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
void |
clear()
Clears this modifier so that it contains no attributes.
|
java.lang.Object |
clone()
Returns a clone of this modifier.
|
boolean |
contains(java.lang.String name)
Tests if the attribute with the specified name is in this modifier.
|
boolean |
equals(java.lang.Object anObject)
Compares two objects for equality.
|
protected boolean |
equalsDescription(java.util.Hashtable desc)
Compares two descriptions in modifiers for equality.
|
java.lang.Object |
get(java.lang.String name)
Returns the value of the attribute with the specified name.
|
int |
hashCode()
Returns a hashcode for this modifier.
|
boolean |
isEmpty()
Tests if this modifier has no attributes.
|
Modifier |
modify(Modifier modifier)
Modifies the given modifier, i.e., Creates the modified version
of the given modifier by putting all attributes in this
modifier into the given modifier.
|
java.util.Enumeration |
names()
Returns an enumeration of the names of the attributes in this modifier.
|
java.lang.Object |
put(java.lang.String name,
boolean value)
Puts a new attribute with the specified name and boolean value.
|
java.lang.Object |
put(java.lang.String name,
byte value)
Puts a new attribute with the specified name and byte value.
|
java.lang.Object |
put(java.lang.String name,
char value)
Puts a new attribute with the specified name and character value.
|
java.lang.Object |
put(java.lang.String name,
double value)
Puts a new attribute with the specified name and double value.
|
java.lang.Object |
put(java.lang.String name,
float value)
Puts a new attribute with the specified name and float value.
|
java.lang.Object |
put(java.lang.String name,
int value)
Puts a new attribute with the specified name and integer value.
|
java.lang.Object |
put(java.lang.String name,
long value)
Puts a new attribute with the specified name and long value.
|
java.lang.Object |
put(java.lang.String name,
java.lang.Object value)
Puts a new attribute with the specified name and value.
|
java.lang.Object |
put(java.lang.String name,
short value)
Puts a new attribute with the specified name and short value.
|
java.lang.Object |
remove(java.lang.String name)
Removes the attribute with the specified name.
|
int |
size()
Returns the size of this modifier, i.e., the number of attributes
in this modifier.
|
java.lang.String |
toString()
Returns a string representation of this modifier.
|
java.util.Enumeration |
values()
Returns an enumeration of the values of the attributes in this modifier.
|
protected java.util.Hashtable description
public static final java.lang.String NULL
public Modifier()
public Modifier(Modifier modifier)
modifier - the modifier.public int size()
public boolean isEmpty()
true if this modifier has no attributes;
false otherwise.public java.util.Enumeration names()
public java.util.Enumeration values()
public boolean contains(java.lang.String name)
name - the name of the attribute.true if the attribute with the specified name
is in this modifier; false otherwise.public java.lang.Object get(java.lang.String name)
name - the name of the attribute.null if the attribute is not defined.public java.lang.Object remove(java.lang.String name)
name - the name of the attribute.null if the attribute is not defined.public java.lang.Object put(java.lang.String name,
java.lang.Object value)
name - the name of the attribute.value - the value of the attribute.null if the attribute is not defined.public java.lang.Object put(java.lang.String name,
boolean value)
public java.lang.Object put(java.lang.String name,
byte value)
public java.lang.Object put(java.lang.String name,
char value)
public java.lang.Object put(java.lang.String name,
int value)
public java.lang.Object put(java.lang.String name,
long value)
public java.lang.Object put(java.lang.String name,
short value)
public java.lang.Object put(java.lang.String name,
float value)
public java.lang.Object put(java.lang.String name,
double value)
public void clear()
public Modifier modify(Modifier modifier)
modifier - the given modifier.NULLpublic int hashCode()
hashCode クラス内 java.lang.Objectpublic boolean equals(java.lang.Object anObject)
equals クラス内 java.lang.Objectprotected boolean equalsDescription(java.util.Hashtable desc)
public java.lang.Object clone()
clone クラス内 java.lang.Objectpublic java.lang.String toString()
toString クラス内 java.lang.Object