/[classpath]/classpath/org/omg/DynamicAny/DynUnionOperations.java
ViewVC logotype

Diff of /classpath/org/omg/DynamicAny/DynUnionOperations.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by audriusa, Thu Jul 28 14:38:13 2005 UTC revision 1.2 by audriusa, Sun Jul 31 18:21:30 2005 UTC
# Line 1  Line 1 
1  /* DynUnionOperations.java --  /* DynUnionOperations.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
# Line 57  import org.omg.DynamicAny.DynAnyPackage. Line 56  import org.omg.DynamicAny.DynAnyPackage.
56   * @author Audrius Meskauskas, Lithuania (AudriusA@Bioinformatics.org)   * @author Audrius Meskauskas, Lithuania (AudriusA@Bioinformatics.org)
57   */   */
58  public interface DynUnionOperations  public interface DynUnionOperations
59      extends DynAnyOperations
60  {  {
61    /**    /**
62     * Get the value of discriminator, defining which content variant (member) is     * Get the value of discriminator, defining which content variant (member) is
# Line 75  public interface DynUnionOperations Line 75  public interface DynUnionOperations
75     *     *
76     * @throws TypeMismatch if the discriminator has a wrong type of this union.     * @throws TypeMismatch if the discriminator has a wrong type of this union.
77     */     */
78    void set_discriminator(DynAny aDiscriminator) throws TypeMismatch;    void set_discriminator(DynAny aDiscriminator)
79        throws TypeMismatch;
80    
81    /**    /**
82     * Get the kind of the union descriminator.     * Get the kind of the union descriminator.
# Line 92  public interface DynUnionOperations Line 93  public interface DynUnionOperations
93     *     *
94     * @throws InvalidValue if the union has no active member.     * @throws InvalidValue if the union has no active member.
95     */     */
96    DynAny member() throws InvalidValue;    DynAny member()
97        throws InvalidValue;
98    
99    /**    /**
100     * Returns the kind of the currently active union member.     * Returns the kind of the currently active union member.
# Line 101  public interface DynUnionOperations Line 103  public interface DynUnionOperations
103     *     *
104     * @throws InvalidValue if the union has no active member.     * @throws InvalidValue if the union has no active member.
105     */     */
106    TCKind member_kind() throws InvalidValue;    TCKind member_kind()
107        throws InvalidValue;
108    
109    /**    /**
110     * Returns the name of the currently active union member.     * Returns the name of the currently active union member.
# Line 110  public interface DynUnionOperations Line 113  public interface DynUnionOperations
113     *     *
114     * @throws InvalidValue if the union has no active member.     * @throws InvalidValue if the union has no active member.
115     */     */
116    String member_name() throws InvalidValue;    String member_name()
117        throws InvalidValue;
118    
119    /**    /**
120     * Returns true if the union has no active member. This happens if If the     * Returns true if the union has no active member. This happens if If the
# Line 126  public interface DynUnionOperations Line 130  public interface DynUnionOperations
130     *     *
131     * @throws TypeMismatch if the default case is not defined for this union.     * @throws TypeMismatch if the default case is not defined for this union.
132     */     */
133    void set_to_default_member() throws TypeMismatch;    void set_to_default_member()
134        throws TypeMismatch;
135    
136    /**    /**
137     * Set the discriminator to value that does not correspond any content variant     * Set the discriminator to value that does not correspond any content variant
# Line 135  public interface DynUnionOperations Line 140  public interface DynUnionOperations
140     *     *
141     * @throws TypeMismatch if the union has explicit default case.     * @throws TypeMismatch if the union has explicit default case.
142     */     */
143    void set_to_no_active_member() throws TypeMismatch;    void set_to_no_active_member()
144        throws TypeMismatch;
145  }  }

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26