Java Doc for CompositeType.java in  » JMX » jfoxmx » javax » management » openmbean » 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 » JMX » jfoxmx » javax.management.openmbean 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   javax.management.openmbean.OpenType
      javax.management.openmbean.CompositeType

CompositeType
public class CompositeType extends OpenType implements Serializable(Code)
The CompositeType class is the open type class whose instances describe the types of CompositeData CompositeData values.
author:
   Young Yang



Constructor Summary
public  CompositeType(String typeName, String description, String[] itemNames, String[] itemDescriptions, OpenType[] itemTypes)
     Constructs a CompositeType instance, checking for the validity of the given parameters.

Method Summary
public  booleancontainsKey(String itemName)
     Returns true if this CompositeType instance defines an item whose name is itemName.
Parameters:
  itemName - the name of the item.
public  booleanequals(Object obj)
     Compares the specified obj parameter with this CompositeType instance for equality.

Two CompositeType instances are equal if and only if all of the following statements are true:

  • their type names are equal
  • their items' names and types are equal

 
Parameters:
  obj - the object to be compared for equality with this CompositeType instance;if obj is null, equals returns false.
public  StringgetDescription(String itemName)
     Returns the description of the item whose name is itemName, or null if this CompositeType instance does not define any item whose name is itemName.
Parameters:
  itemName - the name of the item.
public  OpenTypegetType(String itemName)
     Returns the open type of the item whose name is itemName, or null if this CompositeType instance does not define any item whose name is itemName.
Parameters:
  itemName - the name of the time.
public  inthashCode()
     Returns the hash code value for this CompositeType instance.
public  booleanisValue(Object obj)
     Tests whether obj is a value which could be described by this CompositeType instance.

If obj is null or is not an instance of javax.management.openmbean.CompositeData, isValue returns false. If obj is an instance of javax.management.openmbean.CompositeData, its composite type is tested for equality with this CompositeType instance, and isValue returns true if and only if CompositeType.equals(java.lang.Object) equals returns true.
 
Parameters:
  obj - the value whose open type is to be tested for equality with this CompositeType instance.

public  SetkeySet()
     Returns an unmodifiable Set view of all the item names defined by this CompositeType instance.
public  StringtoString()
     Returns a string representation of this CompositeType instance.


Constructor Detail
CompositeType
public CompositeType(String typeName, String description, String[] itemNames, String[] itemDescriptions, OpenType[] itemTypes) throws OpenDataException(Code)
Constructs a CompositeType instance, checking for the validity of the given parameters. The validity constraints are described below for each parameter.

Note that the contents of the three array parameters itemNames, itemDescriptions and itemTypes are internally copied so that any subsequent modification of these arrays by the caller of this constructor has no impact on the constructed CompositeType instance.

The Java class name of composite data values this composite type represents (ie the class name returned by the OpenType.getClassName getClassName method) is set to the string value returned by CompositeData.class.getNameSpace().


Parameters:
  typeName - The name given to the composite type this instance represents; cannot be a null or empty string.
 
Parameters:
  description - The human readable description of the composite type this instance represents;cannot be a null or empty string.
 
Parameters:
  itemNames - The names of the items contained in thecomposite data values described by this CompositeType instance;cannot be null and should contain at least one element; no element can be a null or empty string.Note that the order in which the item names are given is not important to differentiate aCompositeType instance from another;the item names are internally stored sorted in ascending alphanumeric order.
 
Parameters:
  itemDescriptions - The descriptions, in the same order as itemNames, of the items contained in thecomposite data values described by this CompositeType instance;should be of the same size as itemNames;no element can be a null or empty string.
 
Parameters:
  itemTypes - The open type instances, in the same order as itemNames, describing the items containedin the composite data values described by this CompositeType instance;should be of the same size as itemNames;no element can be null.
 
throws:
  IllegalArgumentException - If typeName or description is a null or empty string,or itemNames or itemDescriptions or itemTypes is null,or any element of itemNames or itemDescriptionsis a null or empty string,or any element of itemTypes is null,or itemNames or itemDescriptions or itemTypesare not of the same size.
 
throws:
  OpenDataException - If itemNames contains duplicate item names(case sensitive, but leading and trailing whitespaces removed).





Method Detail
containsKey
public boolean containsKey(String itemName)(Code)
Returns true if this CompositeType instance defines an item whose name is itemName.
Parameters:
  itemName - the name of the item. true if an item of this name is present.



equals
public boolean equals(Object obj)(Code)
Compares the specified obj parameter with this CompositeType instance for equality.

Two CompositeType instances are equal if and only if all of the following statements are true:

  • their type names are equal
  • their items' names and types are equal

 
Parameters:
  obj - the object to be compared for equality with this CompositeType instance;if obj is null, equals returns false. true if the specified object is equal to this CompositeType instance.



getDescription
public String getDescription(String itemName)(Code)
Returns the description of the item whose name is itemName, or null if this CompositeType instance does not define any item whose name is itemName.
Parameters:
  itemName - the name of the item. the description.



getType
public OpenType getType(String itemName)(Code)
Returns the open type of the item whose name is itemName, or null if this CompositeType instance does not define any item whose name is itemName.
Parameters:
  itemName - the name of the time. the type.



hashCode
public int hashCode()(Code)
Returns the hash code value for this CompositeType instance.

The hash code of a CompositeType instance is the sum of the hash codes of all elements of information used in equals comparisons (ie: name, items names, items types). This ensures that t1.equals(t2) implies that t1.hashCode()==t2.hashCode() for any two CompositeType instances t1 and t2, as required by the general contract of the method Object.hashCode .

As CompositeType instances are immutable, the hash code for this instance is calculated once, on the first call to hashCode, and then the same value is returned for subsequent calls. the hash code value for this CompositeType instance




isValue
public boolean isValue(Object obj)(Code)
Tests whether obj is a value which could be described by this CompositeType instance.

If obj is null or is not an instance of javax.management.openmbean.CompositeData, isValue returns false. If obj is an instance of javax.management.openmbean.CompositeData, its composite type is tested for equality with this CompositeType instance, and isValue returns true if and only if CompositeType.equals(java.lang.Object) equals returns true.
 
Parameters:
  obj - the value whose open type is to be tested for equality with this CompositeType instance. true if obj is a value for this composite type, false otherwise.




keySet
public Set keySet()(Code)
Returns an unmodifiable Set view of all the item names defined by this CompositeType instance. The set's iterator will return the item names in ascending order. a Set of String.



toString
public String toString()(Code)
Returns a string representation of this CompositeType instance.

The string representation consists of the name of this class (ie javax.management.openmbean.CompositeType), the type name for this instance, and the list of the items names and types string representation of this instance.

As CompositeType instances are immutable, the string representation for this instance is calculated once, on the first call to toString, and then the same value is returned for subsequent calls. a string representation of this CompositeType instance




Fields inherited from javax.management.openmbean.OpenType
final public static String[] ALLOWED_CLASSNAMES(Code)(Java Doc)
final protected static String BIGDECIMAL_CLASSNAME(Code)(Java Doc)
final protected static String BIGINTEGER_CLASSNAME(Code)(Java Doc)
final protected static String BOOLEAN_CLASSNAME(Code)(Java Doc)
final protected static String BYTE_CLASSNAME(Code)(Java Doc)
final protected static String CHARACTER_CLASSNAME(Code)(Java Doc)
final protected static String COMPOSITEDATA_CLASSNAME(Code)(Java Doc)
final protected static String DATE_CLASSNAME(Code)(Java Doc)
final protected static String DOUBLE_CLASSNAME(Code)(Java Doc)
final protected static String FLOAT_CLASSNAME(Code)(Java Doc)
final protected static String INTEGER_CLASSNAME(Code)(Java Doc)
final protected static String LONG_CLASSNAME(Code)(Java Doc)
final protected static String OBJECTNAME_CLASSNAME(Code)(Java Doc)
final protected static String SHORT_CLASSNAME(Code)(Java Doc)
final protected static String STRING_CLASSNAME(Code)(Java Doc)
final protected static String TABULARDATA_CLASSNAME(Code)(Java Doc)
final protected static String VOID_CLASSNAME(Code)(Java Doc)

Methods inherited from javax.management.openmbean.OpenType
abstract public boolean equals(Object obj)(Code)(Java Doc)
public String getClassName()(Code)(Java Doc)
public String getDescription()(Code)(Java Doc)
public String getTypeName()(Code)(Java Doc)
abstract public int hashCode()(Code)(Java Doc)
public boolean isArray()(Code)(Java Doc)
abstract public boolean isValue(Object obj)(Code)(Java Doc)
abstract public String toString()(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) 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.