| |
|
| java.lang.Object org.w3c.tools.resources.upgrade.Attribute org.w3c.tools.resources.upgrade.DoubleAttribute
DoubleAttribute | public class DoubleAttribute extends Attribute (Code) | | The generic description of an DoubleAttribute.
|
Method Summary | |
public boolean | checkValue(Object obj) Is the given object a valid DoubleAttribute value ?
Parameters: obj - The object to test. | final public int | getPickleLength(Object value) Get the number of bytes required to save that attribute value.
Parameters: The - value about to be pickled. | final public void | pickle(DataOutputStream out, Object d) Pickle an double to the given output stream. | final public Object | unpickle(DataInputStream in) Unpickle an integer from the given input stream.
Parameters: in - The input stream to unpickle from. |
DoubleAttribute | public DoubleAttribute(String name, Double def, Integer flags)(Code) | | Create a description for a generic Double attribute.
Parameters: name - The attribute name. Parameters: def - The default value for these attributes. Parameters: flags - The associated flags. |
checkValue | public boolean checkValue(Object obj)(Code) | | Is the given object a valid DoubleAttribute value ?
Parameters: obj - The object to test. A boolean true if okay. exception: IllegalAttributeAccess - If the provided value doesn't pass thetest. |
getPickleLength | final public int getPickleLength(Object value)(Code) | | Get the number of bytes required to save that attribute value.
Parameters: The - value about to be pickled. The number of bytes needed to pickle that value. |
pickle | final public void pickle(DataOutputStream out, Object d) throws IOException(Code) | | Pickle an double to the given output stream.
Parameters: out - The output stream to pickle to. Parameters: obj - The object to pickle. exception: IOException - If some IO error occured. |
unpickle | final public Object unpickle(DataInputStream in) throws IOException(Code) | | Unpickle an integer from the given input stream.
Parameters: in - The input stream to unpickle from. An instance of Double. exception: IOException - If some IO error occured. |
|
|
|