Java Doc for Descriptor.java in  » EJB-Server-JBoss-4.2.1 » jmx » javax » management » 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 » EJB Server JBoss 4.2.1 » jmx » javax.management 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


javax.management.Descriptor

All known Subclasses:   javax.management.modelmbean.DescriptorSupport,
Descriptor
public interface Descriptor extends Serializable,Cloneable(Code)
This interface defines behavioral and runtime metadata for ModelMBeans. A descriptor is a set of name-value pairs.

The DescriptorAccess interface defines how to get and set Descriptors for a ModelMBean's metadata classes.

The implementation must implement the following constructors.

Descriptor() returns an empty descriptor.

Descriptor(Descriptor) returns a copy of the decriptor.

Descriptor(String[], Object[]) a constructor that verifies the field names include a descriptorType and that predefined fields contain valid values.


See Also:   javax.management.DescriptorAccess
See Also:   javax.management.modelmbean.ModelMBean
author:
   Adrian Brock.
version:
   $Revision: 57200 $





Method Summary
public  java.lang.Objectclone()
     Returns a descriptor that is a duplicate of this one.
public  String[]getFieldNames()
     Retrieves all the field names in this descriptor.
public  ObjectgetFieldValue(String fieldName)
     Retrieves the value of a field.
Parameters:
  fieldName - the name of the field.
public  Object[]getFieldValues(String[] fieldNames)
     Retrieves all the field values for the passed field names.
public  String[]getFields()
     Retrieves all the fields in this descriptor.
public  booleanisValid()
     Checks to see that this descriptor is valid.
public  voidremoveField(String fieldName)
     Remove a field from the descriptor.
Parameters:
  fieldName - the field to remove.
public  voidsetField(String fieldName, Object fieldValue)
     Sets the value of a field.
public  voidsetFields(String[] fieldNames, Object[] fieldValues)
     Set multiple fields in this descriptor.



Method Detail
clone
public java.lang.Object clone() throws RuntimeOperationsException(Code)
Returns a descriptor that is a duplicate of this one.
exception:
  RuntimeOperationsException - for invalid fieldNames,fieldValues or the contructor fails for any reason.



getFieldNames
public String[] getFieldNames()(Code)
Retrieves all the field names in this descriptor. an array of field name strings.



getFieldValue
public Object getFieldValue(String fieldName) throws RuntimeOperationsException(Code)
Retrieves the value of a field.
Parameters:
  fieldName - the name of the field. the value of the field.
exception:
  RuntimeOperationsException - when the field name is notvalid.



getFieldValues
public Object[] getFieldValues(String[] fieldNames)(Code)
Retrieves all the field values for the passed field names. The array of object values returned is in the same order as the field names passed to the method.

When a fieldName does not exist, the corresponding element of the returned array is null.


Parameters:
  fieldNames - the array of field names to retrieve. Pass nullto retrieve all fields. an array of field values.




getFields
public String[] getFields()(Code)
Retrieves all the fields in this descriptor. The format is fieldName=fieldValue for String values and fieldName=(fieldValue.toString()) for other value types.

an array of fieldName=fieldValue strings.




isValid
public boolean isValid() throws RuntimeOperationsException(Code)
Checks to see that this descriptor is valid. true when the fieldValues are legal for the fieldNames,false otherwise.
exception:
  RuntimeOperationsException - for any error performingthe validation.



removeField
public void removeField(String fieldName)(Code)
Remove a field from the descriptor.
Parameters:
  fieldName - the field to remove. No exception is thrownwhen the field is not in the descriptor.



setField
public void setField(String fieldName, Object fieldValue) throws RuntimeOperationsException(Code)
Sets the value of a field.
Parameters:
  fieldName - the name of the field.
Parameters:
  fieldValue - the value of the field.
exception:
  RuntimeOperationsException - when the field name or valueis not valid.



setFields
public void setFields(String[] fieldNames, Object[] fieldValues) throws RuntimeOperationsException(Code)
Set multiple fields in this descriptor. The field in the fieldNames array is set to the value of the corresponding fieldValues array. The two arrays must be the same size.
Parameters:
  fieldNames - an array of fieldNames to set. Neither the arrayor array elements can be null. The fieldName must exist.
Parameters:
  fieldValues - an array of fieldValues to set. Neither the arrayor array elements can be null. The fieldValue must be valid forthe corresponding fieldName.
exception:
  RuntimeOperationsException - for not existent or fieldNames,invalid or null fieldValues, the two arrays are different sizes orthe contructor fails for any reason.



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