public interface DynStructOperations
DynStruct objects support the manipulation of IDL struct and exception values. Members of the exceptions are handled in the same way as members of a struct.
| Method Summary | |
|---|---|
TCKind |
current_member_kind()
Returns the TCKind associated with the member at the current position. |
String |
current_member_name()
Returns the name of the member at the current position. |
NameDynAnyPair[] |
get_members_as_dyn_any()
Returns a sequence of NameDynAnyPairs describing the name and the value of each member in the struct associated with a DynStruct object. |
NameValuePair[] |
get_members()
Returns a sequence of NameValuePairs describing the name and the value of each member in the struct associated with a DynStruct object. |
void |
set_members_as_dyn_any(NameDynAnyPair[] value)
Initializes the struct data value associated with a DynStruct object from a sequence of NameDynAnyPairs. |
void |
set_members(NameValuePair[] value)
Initializes the struct data value associated with a DynStruct object from a sequence of NameValuePairs. |
| Methods inherited from interface org.omg.DynamicAny.DynAnyOperations |
|---|
assign, component_count, copy, current_component, destroy, equal, from_any, get_any, get_boolean, get_char, get_double, get_dyn_any, get_float, get_long, get_longlong, get_octet, get_reference, get_short, get_string, get_typecode, get_ulong, get_ulonglong, get_ushort, get_val, get_wchar, get_wstring, insert_any, insert_boolean, insert_char, insert_double, insert_dyn_any, insert_float, insert_long, insert_longlong, insert_octet, insert_reference, insert_short, insert_string, insert_typecode, insert_ulong, insert_ulonglong, insert_ushort, insert_val, insert_wchar, insert_wstring, next, rewind, seek, to_any, type |
| Method Detail |
|---|
String current_member_name() throws TypeMismatch, InvalidValue
TypeMismatch - if the DynStruct represents an empty exception.
InvalidValue - if the current position does not indicate a memberTCKind current_member_kind() throws TypeMismatch, InvalidValue
TypeMismatch - if the DynStruct represents an empty exception.
InvalidValue - if the current position does not indicate a memberNameValuePair[] get_members()
void set_members(NameValuePair[] value) throws TypeMismatch, InvalidValue
Members must appear in the NameValuePairs in the order in which they appear in the IDL specification of the struct as indicated by the DynStruct's TypeCode or they must be empty strings. The operation makes no attempt to assign member values based on member names.
TypeMismatch - if the member names supplied in the passed sequence do not match the
corresponding member name in the DynStruct's TypeCode and they are not empty strings
InvalidValue - if the passed sequence has a number of elements that disagrees
with the number of members as indicated by the DynStruct's TypeCodeNameDynAnyPair[] get_members_as_dyn_any()
void set_members_as_dyn_any(NameDynAnyPair[] value) throws TypeMismatch, InvalidValue
Members must appear in the NameDynAnyPairs in the order in which they appear in the IDL specification of the struct as indicated by the DynStruct's TypeCode or they must be empty strings. The operation makes no attempt to assign member values based on member names.
TypeMismatch - if the member names supplied in the passed sequence do not match the
corresponding member name in the DynStruct's TypeCode and they are not empty strings
InvalidValue - if the passed sequence has a number of elements that disagrees
with the number of members as indicated by the DynStruct's TypeCodeCes 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)