Java Doc for Attributes.java in  » Apache-Harmony-Java-SE » java-package » java » util » jar » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Apache Harmony Java SE » java package » java.util.jar 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


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

Field Summary
protected  Map<Object, Object>map
    

Constructor Summary
public  Attributes()
    
public  Attributes(Attributes attrib)
    
public  Attributes(int size)
    

Method Summary
public  voidclear()
     Removes all key/value pairs from this Attributes.
public  Objectclone()
    
public  booleancontainsKey(Object key)
     Determines whether this Attributes contains the specified key
Parameters:
  key - The key to search for.
public  booleancontainsValue(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  booleanequals(Object obj)
     Determines if this Attributes and the parameter Attributes are equal.
public  Objectget(Object key)
     Returns the value associated with the parameter key
Parameters:
  key - The key to search for.
public  StringgetValue(Attributes.Name name)
     Returns the value associated with the parameter Attributes.Name key.
Parameters:
  name - The key to obtain the value for.
public  StringgetValue(String name)
     Returns the String associated with the parameter name.
Parameters:
  name - The key to obtain the value for.
public  inthashCode()
    
public  booleanisEmpty()
    
public  Set<Object>keySet()
     Returns a Set containing all the keys found in this Attributes.
public  Objectput(Object key, Object value)
     Store value in this Attributes and associate it with key.
public  voidputAll(Map attrib)
     Store all the key.value pairs in the argument in this Attributes.
public  StringputValue(String name, String val)
    
public  Objectremove(Object key)
     Deletes the key/value pair with key key from this Attributes.
public  intsize()
     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.

Field Detail
map
protected Map<Object, Object> map(Code)




Constructor Detail
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.




Method Detail
clear
public void clear()(Code)
Removes all key/value pairs from this Attributes.



clone
public Object clone()(Code)



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



Methods inherited from java.lang.Object
protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object object)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final public Class<? extends Object> getClass()(Code)(Java Doc)
public int hashCode()(Code)(Java Doc)
final public void notify()(Code)(Java Doc)
final public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final public void wait(long millis, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait(long millis) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.