java.lang.Objectjavax.management.openmbean.OpenType
public abstract class OpenType
The OpenType class is the parent abstract class of all classes which describe the actual open type
of open data values.
An open type is defined by:
ALLOWED_CLASSNAMES),
| Field Summary | |
|---|---|
static String[] |
ALLOWED_CLASSNAMES
List of the fully qualified names of the Java classes allowed for open data values. |
| Constructor Summary | |
|---|---|
protected |
OpenType(String className,
String typeName,
String description)
Constructs an OpenType instance (actually a subclass instance as OpenType is abstract),
checking for the validity of the given parameters. |
| Method Summary | |
|---|---|
abstract boolean |
equals(Object obj)
Compares the specified obj parameter with this
open type instance for equality. |
String |
getClassName()
Returns the fully qualified Java class name of the open data values this open type describes. |
String |
getDescription()
Returns the text description of this OpenType instance. |
String |
getTypeName()
Returns the name of this OpenType instance. |
abstract int |
hashCode()
Returns a hash code value for the object. |
boolean |
isArray()
Returns true if the open data values this open
type describes are arrays, false otherwise. |
abstract boolean |
isValue(Object obj)
Tests whether obj is a value for this open type. |
abstract String |
toString()
Returns a string representation of this open type instance. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String[] ALLOWED_CLASSNAMES
ALLOWED_CLASSNAMES = { "java.lang.Void", "java.lang.Boolean", "java.lang.Character", "java.lang.Byte", "java.lang.Short", "java.lang.Integer", "java.lang.Long", "java.lang.Float", "java.lang.Double", "java.lang.String", "java.math.BigDecimal", "java.math.BigInteger", "java.util.Date", "javax.management.ObjectName",
| Constructor Detail |
|---|
protected OpenType(String className, String typeName, String description) throws OpenDataException
OpenType instance (actually a subclass instance as OpenType is abstract),
checking for the validity of the given parameters.
The validity constraints are described below for each parameter.
className - The fully qualified Java class name of the open data values this open type describes.
The valid Java class names allowed for open data values are listed in
ALLOWED_CLASSNAMES.
A multidimensional array of any one of these classes is also an allowed class,
in which case the class name follows the rules defined by the method
getName() of java.lang.Class.
For example, a 3-dimensional array of Strings has for class name
"[[[Ljava.lang.String;" (without the quotes).
typeName - The name given to the open type this instance represents; cannot be a null or empty string.
description - The human readable description of the open type this instance represents;
cannot be a null or empty string.
IllegalArgumentException - if className, typeName or description
is a null or empty string
OpenDataException - if className is not one of the allowed Java class names for open data| Method Detail |
|---|
public String getClassName()
ALLOWED_CLASSNAMES.
A multidimensional array of any one of these classes is also an allowed class,
in which case the class name follows the rules defined by the method
getName() of java.lang.Class.
For example, a 3-dimensional array of Strings has for class name
"[[[Ljava.lang.String;" (without the quotes).
public String getTypeName()
OpenType instance.
public String getDescription()
OpenType instance.
public boolean isArray()
true if the open data values this open
type describes are arrays, false otherwise.
public abstract boolean isValue(Object obj)
obj - the object to be tested for validity.
true if obj is a value for this
open type, false otherwise.public abstract boolean equals(Object obj)
obj parameter with this
open type instance for equality.
obj - the object to compare to.
obj are equal.Object.hashCode(),
Hashtablepublic abstract int hashCode()
Objectjava.util.Hashtable.
The general contract of hashCode is:
hashCode method on each of
the two objects must produce the same integer result.
Object.equals(java.lang.Object)
method, then calling the hashCode method on each of the
two objects must produce distinct integer results. However, the
programmer should be aware that producing distinct integer results
for unequal objects may improve the performance of hashtables.
As much as is reasonably practical, the hashCode method defined by class Object does return distinct integers for distinct objects. (This is typically implemented by converting the internal address of the object into an integer, but this implementation technique is not required by the JavaTM programming language.)
Object.equals(java.lang.Object),
Hashtablepublic abstract String toString()
Ces informations proviennent du site de http://java.sun.com
Le contenu de cette page provient du site de Sun, et est généré depuis un cache sur l'infobrol après certains traitements automatisés. La présentation peut donc différer du document original, mais le contenu aussi. Vous pouvez utiliser ce bouton pour afficher la page originale du site de Sun :
Maintenir les pages en cache sur différents sites peut offrir plus de disponibilité.
Chaque page est indexée dans la base de donnée, ce qui permet de retrouver facilement les informations, au moyen des sommaires, du moteur de recherche interne, etc.
Des facilités sont mises en place pour que les membres de l'infobrol puissent effectuer des traductions en français des différents documents. Ceci devrait permettre aux débutants en programmation Java de consulter les API en français s'ils maîtrisent moins bien la langue de Shakespeare. Dans le cas où une traduction a été soumise, elle est disponible au moyen d'un lien en bas de page. Si la traduction a été validée, la page s'affiche par défaut en français, et un lien en bas de page permet d'atteindre la version en anglais.
Le code sur l'infobrol est automatiquement coloré selon la syntaxe, et les différents mots clés sont transformés en liens pour accéder rapidement aux informations.
Vous avez la possibilité de partager vos expériences en proposant vos propres extraits de code en utilisant le bouton "ajouter un commentaire" en bas de page. Si vous visitez simplement l'infobrol, vous avez déjà accès à cette fonction, mais si vous étes membre du brol, vous pouvez en plus utiliser des boutons supplémentaires de mise en forme, dont la coloration automatique de vos extraits de codes.
Vous pouvez modifier vos préférences dans votre profil pour ne plus afficher les interactions avec les réseaux sociaux sur ces pages.
7 mots clés dont 0 définis manuellement (plus d'information...).
Avertissement
Cette page ne possède pas encore de mots clés manuels, ceci est donc un exemple automatique (les niveaux de pertinence sont fictifs, mais les liens sont valables). Pour tester le nuage avec une page qui contient des mots définis manuellement, vous pouvez cliquer ici.Vous pouvez modifier vos préférences dans votre profil pour ne plus afficher le nuage de mots clés.
Recherche (afficher)
Utilisateur (masquer)
Navigation (masquer)
Apparence (afficher)
Stats (afficher)
Citation (masquer)