| java.lang.Object org.w3c.tools.resources.upgrade.Attribute org.w3c.tools.resources.upgrade.ClassAttribute
ClassAttribute | public class ClassAttribute extends Attribute (Code) | | The generic description of an ClassAttribute.
|
Method Summary | |
public boolean | checkValue(Object obj) Is the given object a valid ClassAttribute 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. | public void | pickle(DataOutputStream out, Object c) Pickle an integer to the given output stream. | public String | stringify(Object value) Make a String out of a ClassAttribute value. | public Object | unpickle(DataInputStream in) Unpickle an integer from the given input stream.
Parameters: in - The input stream to unpickle from. |
checkValue | public boolean checkValue(Object obj)(Code) | | Is the given object a valid ClassAttribute value ?
Parameters: obj - The object to test. A boolean true if okay. |
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 | public void pickle(DataOutputStream out, Object c) throws IOException(Code) | | Pickle an integer 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. |
stringify | public String stringify(Object value)(Code) | | Make a String out of a ClassAttribute value.
The default toString method on classes doesn't work
for that purpose, since it will preceed the class name with
a class keyword.
The String name of the class. |
unpickle | 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 Integer. exception: IOException - If some IO error occured. |
|
|