Java Doc for TabularType.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.TabularType

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



Constructor Summary
public  TabularType(String typeName, String description, CompositeType rowType, String[] indexNames)
     Constructs a TabularType instance, checking for the validity of the given parameters. The validity constraints are described below for each parameter.

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


Parameters:
  typeName - The name given to the tabular type this instance represents; cannot be a null or empty string.
 
Parameters:
  description - The human readable description of the tabular type this instance represents;cannot be a null or empty string.
 
Parameters:
  rowType - The type of the row elements of tabular data values described by this tabular type instance;cannot be null.
 
Parameters:
  indexNames - The names of the items the values of which are used to uniquely index each row element in thetabular data values described by this tabular type instance;cannot be null or empty.


Method Summary
public  booleanequals(Object obj)
     Compares the specified obj parameter with this TabularType instance for equality.

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

  • their type names are equal
  • their row types are equal
  • they use the same index names, in the same order

 
Parameters:
  obj - the object to be compared for equality with this TabularType instance;if obj is null, equals returns false.
public  ListgetIndexNames()
    
public  CompositeTypegetRowType()
     Returns the type of the row elements of tabular data values described by this TabularType instance.
public  inthashCode()
     Returns the hash code value for this TabularType instance.
public  booleanisValue(Object obj)
     Tests whether obj is a value which could be described by this TabularType instance.

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

public  StringtoString()
     Returns a string representation of this TabularType instance.


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

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


Parameters:
  typeName - The name given to the tabular type this instance represents; cannot be a null or empty string.
 
Parameters:
  description - The human readable description of the tabular type this instance represents;cannot be a null or empty string.
 
Parameters:
  rowType - The type of the row elements of tabular data values described by this tabular type instance;cannot be null.
 
Parameters:
  indexNames - The names of the items the values of which are used to uniquely index each row element in thetabular data values described by this tabular type instance;cannot be null or empty. Each element should be an item name defined in rowType(no null or empty string allowed).It is important to note that the order of the item names in indexNamesis used by the methods TabularData.get(java.lang.Object[]) get andTabularData.remove(java.lang.Object[]) remove of classTabularData to match their array of values parameter to items.
 
throws:
  IllegalArgumentException - if rowType is null,or indexNames is a null or empty array,or an element in indexNames is a null or empty string,or typeName or description is a null or empty string.
 
throws:
  OpenDataException - if an element's value of indexNamesis not an item name defined in rowType.





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

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

  • their type names are equal
  • their row types are equal
  • they use the same index names, in the same order

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



getIndexNames
public List getIndexNames()(Code)

Returns, in the same order as was given to this instance's constructor, an unmodifiable List of the names of the items the values of which are used to uniquely index each row element of tabular data values described by this TabularType instance.

a List of String representing the names of the indexitems.



getRowType
public CompositeType getRowType()(Code)
Returns the type of the row elements of tabular data values described by this TabularType instance. the type of each row.



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

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

As TabularType 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 TabularType instance




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

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




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

The string representation consists of the name of this class (ie javax.management.openmbean.TabularType), the type name for this instance, the row type string representation of this instance, and the index names of this instance.

As TabularType 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 TabularType 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.