1 |
/* DynStructOperations.java -- |
/* DynStructOperations.java -- |
2 |
Copyright (C) 2005 Free Software Foundation, Inc. |
Copyright (C) 2005 Free Software Foundation, Inc. |
|
|
|
3 |
This file is part of GNU Classpath. |
This file is part of GNU Classpath. |
4 |
|
|
5 |
GNU Classpath is free software; you can redistribute it and/or modify |
GNU Classpath is free software; you can redistribute it and/or modify |
46 |
* |
* |
47 |
* @author Audrius Meskauskas, Lithuania (AudriusA@Bioinformatics.org) |
* @author Audrius Meskauskas, Lithuania (AudriusA@Bioinformatics.org) |
48 |
*/ |
*/ |
49 |
public interface DynStructOperations extends DynAnyOperations |
public interface DynStructOperations |
50 |
|
extends DynAnyOperations |
51 |
{ |
{ |
52 |
/** |
/** |
53 |
* Get the kind of the structure field at the current position. |
* Get the kind of the structure field at the current position. |
57 |
* @throws TypeMismatch for an empty structure (normally exception). |
* @throws TypeMismatch for an empty structure (normally exception). |
58 |
* @throws InvalidValue if the current position does not indicate a memeber. |
* @throws InvalidValue if the current position does not indicate a memeber. |
59 |
*/ |
*/ |
60 |
TCKind current_member_kind() throws TypeMismatch, InvalidValue; |
TCKind current_member_kind() |
61 |
|
throws TypeMismatch, InvalidValue; |
62 |
|
|
63 |
/** |
/** |
64 |
* Get the name of the structure field at the current position. |
* Get the name of the structure field at the current position. |
68 |
* @throws TypeMismatch for an empty structure (normally exception). |
* @throws TypeMismatch for an empty structure (normally exception). |
69 |
* @throws InvalidValue if the current position does not indicate a memeber. |
* @throws InvalidValue if the current position does not indicate a memeber. |
70 |
*/ |
*/ |
71 |
String current_member_name() throws TypeMismatch, InvalidValue; |
String current_member_name() |
72 |
|
throws TypeMismatch, InvalidValue; |
73 |
|
|
74 |
/** |
/** |
75 |
* Return array, describing describing the name and the value of each member |
* Return array, describing describing the name and the value of each member |
104 |
* @param an array of NameDynValuePair's, each defining a single field in the |
* @param an array of NameDynValuePair's, each defining a single field in the |
105 |
* structure. |
* structure. |
106 |
* |
* |
107 |
* @throws TypeMismatch if the member of the passed array has a different |
* @throws TypeMismatch if the member of the passed array has a different type |
108 |
* type than the corresponding structure field. |
* than the corresponding structure field. |
109 |
* |
* |
110 |
* @throws InvalidValue if the size of the passed array is not the same as the |
* @throws InvalidValue if the size of the passed array is not the same as the |
111 |
* number of fields in this structure. |
* number of fields in this structure. |
112 |
*/ |
*/ |
113 |
void set_members_as_dyn_any(NameDynAnyPair[] value) throws TypeMismatch, |
void set_members_as_dyn_any(NameDynAnyPair[] value) |
114 |
InvalidValue; |
throws TypeMismatch, InvalidValue; |
115 |
|
|
116 |
/** |
/** |
117 |
* Set the structure contend from the array, where each member defines the |
* Set the structure contend from the array, where each member defines the |
128 |
* @param an array of NameValuePair's, each defining a single field in the |
* @param an array of NameValuePair's, each defining a single field in the |
129 |
* structure. |
* structure. |
130 |
* |
* |
131 |
* @throws TypeMismatch if the member of the passed array has a different |
* @throws TypeMismatch if the member of the passed array has a different type |
132 |
* type than the corresponding structure field. |
* than the corresponding structure field. |
133 |
* |
* |
134 |
* @throws InvalidValue if the size of the passed array is not the same as the |
* @throws InvalidValue if the size of the passed array is not the same as the |
135 |
* number of fields in this structure. |
* number of fields in this structure. |
136 |
*/ |
*/ |
137 |
void set_members(NameValuePair[] value) throws TypeMismatch, InvalidValue; |
void set_members(NameValuePair[] value) |
138 |
|
throws TypeMismatch, InvalidValue; |
139 |
|
|
140 |
} |
} |