| java.lang.Object java.util.jar.Attributes
Attributes | public class Attributes implements Cloneable,Map<Object, Object>(Code) | | The Attributes class is used to store values for Manifest entries. Attributes
keys are generally instances of Attributes.Name. Values associated with
Attributes keys are of type String.
|
Inner Class :public static class Name | |
Method Summary | |
public void | clear() Removes all key/value pairs from this Attributes. | public Object | clone() | public boolean | containsKey(Object key) Determines whether this Attributes contains the specified key
Parameters: key - The key to search for. | public boolean | containsValue(Object value) Determines whether this Attributes contains the specified value
Parameters: value - The value to search for. | public Set<Map.Entry<Object, Object>> | entrySet() Returns a set containing MapEntry's for each of the key/value pairs
contained in this Attributes. | public boolean | equals(Object obj) Determines if this Attributes and the parameter Attributes are equal. | public Object | get(Object key) Returns the value associated with the parameter key
Parameters: key - The key to search for. | public String | getValue(Attributes.Name name) Returns the value associated with the parameter Attributes.Name key.
Parameters: name - The key to obtain the value for. | public String | getValue(String name) Returns the String associated with the parameter name.
Parameters: name - The key to obtain the value for. | public int | hashCode() | public boolean | isEmpty() | public Set<Object> | keySet() Returns a Set containing all the keys found in this Attributes. | public Object | put(Object key, Object value) Store value in this Attributes and associate it with key. | public void | putAll(Map, ?> attrib) Store all the key.value pairs in the argument in this Attributes. | public String | putValue(String name, String val) | public Object | remove(Object key) Deletes the key/value pair with key key from this Attributes. | public int | size() Returns the number of key.value pairs associated with this Attributes. | public Collection<Object> | values() Returns a Collection of all the values present in this Attributes. |
Attributes | public Attributes()(Code) | | Constructs an Attributes instance
|
Attributes | public Attributes(Attributes attrib)(Code) | | Constructs an Attributes instance obtaining keys and values from the
parameter Attributes, attrib
Parameters: attrib - The Attributes to obtain entries from. |
Attributes | public Attributes(int size)(Code) | | Constructs an Attributes instance with initial capacity of size size
Parameters: size - Initial size of this Attributes instance. |
clear | public void clear()(Code) | | Removes all key/value pairs from this Attributes.
|
containsKey | public boolean containsKey(Object key)(Code) | | Determines whether this Attributes contains the specified key
Parameters: key - The key to search for. true if the key is found, false otherwise |
containsValue | public boolean containsValue(Object value)(Code) | | Determines whether this Attributes contains the specified value
Parameters: value - The value to search for. true if the value is found, false otherwise |
entrySet | public Set<Map.Entry<Object, Object>> entrySet()(Code) | | Returns a set containing MapEntry's for each of the key/value pairs
contained in this Attributes.
a set of MapEntry's |
equals | public boolean equals(Object obj)(Code) | | Determines if this Attributes and the parameter Attributes are equal. Two
Attributes instances are equal if they contain the same keys and values.
true if the Attributes are equals, false otherwise |
get | public Object get(Object key)(Code) | | Returns the value associated with the parameter key
Parameters: key - The key to search for. Object associated with key, or null if key does not exist. |
getValue | public String getValue(Attributes.Name name)(Code) | | Returns the value associated with the parameter Attributes.Name key.
Parameters: name - The key to obtain the value for. the String associated with name, or null if name is not a validkey |
getValue | public String getValue(String name)(Code) | | Returns the String associated with the parameter name.
Parameters: name - The key to obtain the value for. the String associated with name, or null if name is not a validkey |
hashCode | public int hashCode()(Code) | | Returns the hashCode of this Attributes
the hashCode of this Object. |
isEmpty | public boolean isEmpty()(Code) | | Determines whether this Attributes contains any keys
true if one or more keys exist, false otherwise |
keySet | public Set<Object> keySet()(Code) | | Returns a Set containing all the keys found in this Attributes.
a Set of all keys |
put | public Object put(Object key, Object value)(Code) | | Store value in this Attributes and associate it with key.
Parameters: key - The key to associate with value. Parameters: value - The value to store in this Attributes The value being stored exception: ClassCastException - when key is not an Attributes.Name or value is not aString |
putAll | public void putAll(Map, ?> attrib)(Code) | | Store all the key.value pairs in the argument in this Attributes.
Parameters: attrib - the associations to store (must be of type Attributes). |
putValue | public String putValue(String name, String val)(Code) | | Stores value val against key name in this Attributes
Parameters: name - The key to store against. Parameters: val - The value to store in this Attributes the Value being stored |
remove | public Object remove(Object key)(Code) | | Deletes the key/value pair with key key from this Attributes.
Parameters: key - The key to remove the values associated with the removed key, null if not present. |
size | public int size()(Code) | | Returns the number of key.value pairs associated with this Attributes.
the size of this Attributes |
values | public Collection<Object> values()(Code) | | Returns a Collection of all the values present in this Attributes.
a Collection of all values present |
|
|