| java.lang.Object org.w3c.tools.resources.upgrade.Attribute org.w3c.tools.resources.upgrade.PropertiesAttribute
PropertiesAttribute | public class PropertiesAttribute extends Attribute (Code) | | The generic description of an PropertiesAttribute.
A PropertiesAttribute instance holds a String to String mapping, it
should be used only with care, since people may act on a reference to
it.
|
Method Summary | |
public boolean | checkValue(Object obj) Is the given object a valid PropertiesAttribute 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 o) Pickle a property list to the given output stream. | public Object | unpickle(DataInputStream in) Unpickle an string from the given input stream.
Parameters: in - The input stream to unpickle from. |
PropertiesAttribute | public PropertiesAttribute(String name, String def, Integer flags)(Code) | | Create a description for a generic property list 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 PropertiesAttribute value ?
Parameters: obj - The object to test. A boolean true if value is valid. |
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 o) throws IOException(Code) | | Pickle a property list 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 | public Object unpickle(DataInputStream in) throws IOException(Code) | | Unpickle an string from the given input stream.
Parameters: in - The input stream to unpickle from. An instance of String. exception: IOException - If some IO error occured. |
|
|