/*************************************************************************
 *
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
 *
 * Copyright 2000, 2010 Oracle and/or its affiliates.
 *
 * OpenOffice.org - a multi-platform office productivity suite
 *
 * This file is part of OpenOffice.org.
 *
 * OpenOffice.org is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License version 3
 * only, as published by the Free Software Foundation.
 *
 * OpenOffice.org is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Lesser General Public License version 3 for more details
 * (a copy is included in the LICENSE file that accompanied this code).
 *
 * You should have received a copy of the GNU Lesser General Public License
 * version 3 along with OpenOffice.org.  If not, see
 * <http://www.openoffice.org/license.html>
 * for a copy of the LGPLv3 License.
 *
 ************************************************************************/
#ifndef __com_sun_star_reflection_XUnionTypeDescription_idl__
#define __com_sun_star_reflection_XUnionTypeDescription_idl__

#include <com/sun/star/reflection/XTypeDescription.idl>


//=============================================================================

 module com {  module sun {  module star {  module reflection {

//=============================================================================

/** Deprecated.  Unions are not supported.
    Reflects a union type.
    The discriminant of a union switches between the current value types.
    In addition, there is also a default case, having no discriminant.

    @deprecated
*/
published interface XUnionTypeDescription: com::sun::star::reflection::XTypeDescription
{
    /** Returns the (ordinal) discriminant type.

        @return
                type of the discriminant
    */
    com::sun::star::reflection::XTypeDescription getDiscriminantType();

    /** Returns the default discriminant value.

        @return
                default discriminant value
    */
    any getDefaultDiscriminant();

    /** Returns the type of the default value.

        @return
                type of the default value
    */
    com::sun::star::reflection::XTypeDescription getDefaultMemberType();

    /** Returns discriminants of all members in order of IDL declaration.

        @return
                discriminants of all members
    */
    sequence< any > getDiscriminants();

    /** Returns types of all members in order of IDL declaration.

        @return
                types of all members
    */
    sequence< com::sun::star::reflection::XTypeDescription > getMemberTypes();

    /** Returns names of all members in order of IDL declaration.

        @return
                names of all members
    */
    sequence< string > getMemberNames();
};

//=============================================================================

}; }; }; };

/*=============================================================================

=============================================================================*/
#endif
