Java Doc for Attributes.java in  » Apache-Harmony-Java-SE » javax-package » javax » naming » directory » 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 » javax package » javax.naming.directory 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


javax.naming.directory.Attributes

All known Subclasses:   javax.naming.directory.BasicAttributes,
Attributes
public interface Attributes extends Cloneable,Serializable(Code)
This is the interface to a collection of attributes associated with a directory entry.

This interface defines the methods that are implemented by a collection of a particular directory entry's attributes.

A directory entry can have zero or more attributes comprising its attributes collection. The attributes are unordered within the collection. The attributes can be identified by name. The names of attributes are either case sensitive or case insensitive as indicated by the isCaseIgnored method. Method names refer to attribute ID (identity) rather than name, for brevity.

The attribute collection is created when the directory entry is created.





Method Summary
 Objectclone()
     Returns a deep copy of this Attributes instance.
 Attributeget(String id)
     Returns the attribute with the specified name (ID).
 NamingEnumeration<? extends javax.naming.directory.Attribute>getAll()
     Returns an enumeration containing the zero or more attributes in the collection.
 NamingEnumeration<String>getIDs()
     Returns an enumeration containing the zero or more names (IDs) of the attributes in the collection.
 booleanisCaseIgnored()
     Indicates whether case is ignored in the names of the attributes.
 Attributeput(Attribute attribute)
     Places a non-null attribute in the attribute collection.
 Attributeput(String id, Object obj)
     Places a new attribute with the supplied ID and value into the attribute collection.
 Attributeremove(String id)
     Removes the attribute with the specified ID.
 intsize()
     Returns the number of attributes.



Method Detail
clone
Object clone()(Code)
Returns a deep copy of this Attributes instance. The attribute objects are not cloned. a deep copy of this Attributes instance



get
Attribute get(String id)(Code)
Returns the attribute with the specified name (ID). The name is case insensitive if isCaseIgnored() is true. The return value is null if no match is found.
Parameters:
  id - attribute name (ID) the attribute with the specified name (ID)



getAll
NamingEnumeration<? extends javax.naming.directory.Attribute> getAll()(Code)
Returns an enumeration containing the zero or more attributes in the collection. The behaviour of the enumeration is not specified if the attribute collection is changed. an enumeration of all contained attributes



getIDs
NamingEnumeration<String> getIDs()(Code)
Returns an enumeration containing the zero or more names (IDs) of the attributes in the collection. The behaviour of the enumeration is not specified if the attribute collection is changed. an enumeration of the IDs of all contained attributes



isCaseIgnored
boolean isCaseIgnored()(Code)
Indicates whether case is ignored in the names of the attributes. true if case is ignored, otherwise false



put
Attribute put(Attribute attribute)(Code)
Places a non-null attribute in the attribute collection. If there is already an attribute with the same ID as the new attribute, the old one is removed from the collection and is returned by this method. If there was no attribute with the same ID the return value is null.
Parameters:
  attribute - the attribute to be put the old attribute with the same ID, if exists; otherwisenull



put
Attribute put(String id, Object obj)(Code)
Places a new attribute with the supplied ID and value into the attribute collection. If there is already an attribute with the same ID, the old one is removed from the collection and is returned by this method. If there was no attribute with the same ID the return value is null. The case of the ID is ignored if isCaseIgnored() is true. This method provides a mechanism to put an attribute with a null value: the value of obj may be null.
Parameters:
  id - the ID of the new attribute to be put
Parameters:
  obj - the value of the new attribute to be put the old attribute with the same ID, if exists; otherwisenull



remove
Attribute remove(String id)(Code)
Removes the attribute with the specified ID. The removed attribute is returned by this method. If there is no attribute with the specified ID, the return value is null. The case of the ID is ignored if isCaseIgnored() is true.
Parameters:
  id - the ID of the attribute to be removed the removed attribute, if exists; otherwise null



size
int size()(Code)
Returns the number of attributes. the number of attributes



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