
/*
 * This file was generated by the SOM Compiler.
 * FileName: lnamec.xh.
 * Generated using:
 *     SOM Precompiler somipc: 2.29.1.19
 *     SOM Emitter emitxh.dll: 2.108
 */

/*
 *    COMPONENT_NAME: somnm
 * 
 *    ORIGINS: 27
 * 
 * 
 *     25H7912  (C)  COPYRIGHT International Business Machines Corp. 1992,1996,1996
 *    All Rights Reserved
 *    Licensed Materials - Property of IBM
 *    US Government Users Restricted Rights - Use, duplication or
 *    disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
 * 
 * 
 *    @(#) 1.7 @(#)lnamec.idl	1.7 1/24/94 10:34:13 [3/30/94 17:08:21]
 */


#ifndef SOM_LNameComponent_xh
#define SOM_LNameComponent_xh


#define LNameComponent_MajorVersion 3
#define LNameComponent_MinorVersion 0
class LNameComponent;

/* Parents */
#ifndef SOM_SOMObject_xh
#ifdef SOMLOCALINCLUDES
#include "somobj.xh"
#else
#include <somobj.xh>
#endif
#endif

/* Useful C++ SOM defs */
#include <somcls.xh>
#include <somcm.xh>

#ifndef LNameComponent_API
#define LNameComponent_API
/*
 * -- The Class API
 */
#ifndef SOM_IMPORTEXPORT_somnmf_lnamec
#ifdef SOM_DLL_somnmf
	/* export semantics */
	#if defined(SOM_DEFFILE_somnmf)\
	||(defined(SOM_DEFFILE_BY_DEFAULT)&&!defined(SOM_NODEFFILE_somnmf))\
	|| !defined(SOM_Module_lnamec_Source)
	#define SOM_IMPORTEXPORT_somnmf_lnamec
	#else
	#define SOM_IMPORTEXPORT_somnmf_lnamec SOMDLLEXPORT
	#endif
#else
	#define SOM_IMPORTEXPORT_somnmf_lnamec SOMDLLIMPORT
#endif
#endif

/*
 * Start of bindings for IDL types
 */

class SOMClass;
class SOMObject;
class ExtendedNaming_PropertyBindingIterator;
class ExtendedNaming_PropertyIterator;
class ExtendedNaming_IndexIterator;
#define ex_LNameComponent_NotSet "::LNameComponent::NotSet"
#define LNameComponent_NotSet NULL

#ifndef SOM_DONT_USE_SHORT_NAMES
#ifndef SOMTGD_ex_NotSet
    #ifdef ex_NotSet
        #undef ex_NotSet
        #define SOMTGD_ex_NotSet 1
    #else
        #define ex_NotSet ex_LNameComponent_NotSet
    #endif /* ex_NotSet */
#endif /* SOMTGD_ex_NotSet */
#ifndef SOMTGD_NotSet
    #ifdef NotSet
        #undef NotSet
        #define SOMTGD_NotSet 1
    #else
        #define NotSet LNameComponent_NotSet
    #endif /* NotSet */
#endif /* SOMTGD_NotSet */
#endif /* SOM_DONT_USE_SHORT_NAMES */

/*
 * End of bindings for IDL types.
 */

/*
 * A function to create the LNameComponent class object...
 */
SOMEXTERN SOM_IMPORTEXPORT_somnmf_lnamec SOMClass * SOMLINK LNameComponentNewClass(
		integer4 majorVersion,
		integer4 minorVersion);


/*
 * The API 2 ClassData Structures...
 */
SOMEXTERN struct LNameComponentClassDataStructure {
	SOMClass *classObject;
	somMToken get_id;
	somMToken set_id;
	somMToken get_kind;
	somMToken set_kind;
	somMToken destroy;
} SOMDLINK SOM_IMPORTEXPORT_somnmf_lnamec LNameComponentClassData;
SOMEXTERN struct LNameComponentCClassDataStructure {
	som3ClassDetailsPtr    parentMtab;
	somDToken              instanceDataToken;
} SOMDLINK SOM_IMPORTEXPORT_somnmf_lnamec LNameComponentCClassData;


/*
 * Class Object and Method Token Macros
 */
#define _SOMCLASS_LNameComponent (LNameComponentClassData.classObject)
#ifndef SOMGD_LNameComponent
    #if (defined(_LNameComponent) || defined(__LNameComponent))
        #undef _LNameComponent
        #undef __LNameComponent
        #define SOMGD_LNameComponent 1
    #else
        #define _LNameComponent _SOMCLASS_LNameComponent
    #endif /* _LNameComponent */
#endif /* SOMGD_LNameComponent */
#define LNameComponent_classObj _SOMCLASS_LNameComponent
#define _SOMMTOKEN_LNameComponent(method) ((somMToken)LNameComponentClassData.method)

/*
 * -- Typedefs for LNameComponent Method Procedures
 */
SOMEXTERN {
typedef string   SOMLINK somTP_LNameComponent_get_id(LNameComponent *somSelf, Environment *ev);
typedef somTP_LNameComponent_get_id *somTD_LNameComponent_get_id;
typedef void   SOMLINK somTP_LNameComponent_set_id(LNameComponent *somSelf, Environment *ev, 
		string i);
typedef somTP_LNameComponent_set_id *somTD_LNameComponent_set_id;
typedef string   SOMLINK somTP_LNameComponent_get_kind(LNameComponent *somSelf, Environment *ev);
typedef somTP_LNameComponent_get_kind *somTD_LNameComponent_get_kind;
typedef void   SOMLINK somTP_LNameComponent_set_kind(LNameComponent *somSelf, Environment *ev, 
		string k);
typedef somTP_LNameComponent_set_kind *somTD_LNameComponent_set_kind;
typedef void   SOMLINK somTP_LNameComponent_destroy(LNameComponent *somSelf, Environment *ev);
typedef somTP_LNameComponent_destroy *somTD_LNameComponent_destroy;

/*
 * -- Typedefs for Reintroduced Wrapper Methods
 */
typedef void   SOMLINK somTP_LNameComponent_somDefaultInit(LNameComponent *somSelf, 
		som3InitCtrl* ctrl);
typedef somTP_LNameComponent_somDefaultInit *somTD_LNameComponent_somDefaultInit;
typedef void   SOMLINK somTP_LNameComponent_somDestruct(LNameComponent *somSelf, 
		octet doFree, 
		som3DestructCtrl* ctrl);
typedef somTP_LNameComponent_somDestruct *somTD_LNameComponent_somDestruct;
typedef void   SOMLINK somTP_LNameComponent_somDefaultCopyInit(LNameComponent *somSelf, 
		som3InitCtrl* ctrl, 
		SOMObject* fromObj);
typedef somTP_LNameComponent_somDefaultCopyInit *somTD_LNameComponent_somDefaultCopyInit;
typedef LNameComponent*   SOMLINK somTP_LNameComponent_somDefaultAssign(LNameComponent *somSelf, 
		som3AssignCtrl* ctrl, 
		SOMObject* fromObj);
typedef somTP_LNameComponent_somDefaultAssign *somTD_LNameComponent_somDefaultAssign;
typedef void   SOMLINK somTP_LNameComponent_somDefaultConstCopyInit(LNameComponent *somSelf, 
		som3InitCtrl* ctrl, 
		SOMObject* fromObj);
typedef somTP_LNameComponent_somDefaultConstCopyInit *somTD_LNameComponent_somDefaultConstCopyInit;
typedef void   SOMLINK somTP_LNameComponent_somDefaultVCopyInit(LNameComponent *somSelf, 
		som3InitCtrl* ctrl, 
		SOMObject* fromObj);
typedef somTP_LNameComponent_somDefaultVCopyInit *somTD_LNameComponent_somDefaultVCopyInit;
typedef void   SOMLINK somTP_LNameComponent_somDefaultConstVCopyInit(LNameComponent *somSelf, 
		som3InitCtrl* ctrl, 
		SOMObject* fromObj);
typedef somTP_LNameComponent_somDefaultConstVCopyInit *somTD_LNameComponent_somDefaultConstVCopyInit;
typedef LNameComponent*   SOMLINK somTP_LNameComponent_somDefaultConstAssign(LNameComponent *somSelf, 
		som3AssignCtrl* ctrl, 
		SOMObject* fromObj);
typedef somTP_LNameComponent_somDefaultConstAssign *somTD_LNameComponent_somDefaultConstAssign;
typedef LNameComponent*   SOMLINK somTP_LNameComponent_somDefaultVAssign(LNameComponent *somSelf, 
		som3AssignCtrl* ctrl, 
		SOMObject* fromObj);
typedef somTP_LNameComponent_somDefaultVAssign *somTD_LNameComponent_somDefaultVAssign;
typedef LNameComponent*   SOMLINK somTP_LNameComponent_somDefaultConstVAssign(LNameComponent *somSelf, 
		som3AssignCtrl* ctrl, 
		SOMObject* fromObj);
typedef somTP_LNameComponent_somDefaultConstVAssign *somTD_LNameComponent_somDefaultConstVAssign;
typedef void   SOMLINK somTP_LNameComponent_somInit(LNameComponent *somSelf);
typedef somTP_LNameComponent_somInit *somTD_LNameComponent_somInit;
typedef void   SOMLINK somTP_LNameComponent_somUninit(LNameComponent *somSelf);
typedef somTP_LNameComponent_somUninit *somTD_LNameComponent_somUninit;
typedef void   SOMLINK somTP_LNameComponent_somFree(LNameComponent *somSelf);
typedef somTP_LNameComponent_somFree *somTD_LNameComponent_somFree;
typedef SOMClass*   SOMLINK somTP_LNameComponent_somGetClass(LNameComponent *somSelf);
typedef somTP_LNameComponent_somGetClass *somTD_LNameComponent_somGetClass;
typedef string   SOMLINK somTP_LNameComponent_somGetClassName(LNameComponent *somSelf);
typedef somTP_LNameComponent_somGetClassName *somTD_LNameComponent_somGetClassName;
typedef long   SOMLINK somTP_LNameComponent_somGetSize(LNameComponent *somSelf);
typedef somTP_LNameComponent_somGetSize *somTD_LNameComponent_somGetSize;
typedef boolean   SOMLINK somTP_LNameComponent_somIsA(LNameComponent *somSelf, 
		SOMClass* aClassObj);
typedef somTP_LNameComponent_somIsA *somTD_LNameComponent_somIsA;
typedef boolean   SOMLINK somTP_LNameComponent_somIsInstanceOf(LNameComponent *somSelf, 
		SOMClass* aClassObj);
typedef somTP_LNameComponent_somIsInstanceOf *somTD_LNameComponent_somIsInstanceOf;
typedef boolean   SOMLINK somTP_LNameComponent_somRespondsTo(LNameComponent *somSelf, 
		somId mId);
typedef somTP_LNameComponent_somRespondsTo *somTD_LNameComponent_somRespondsTo;
typedef boolean   SOMLINK somTP_LNameComponent_somDispatch(LNameComponent *somSelf, 
		somToken* retValue, 
		somId methodId, 
		va_list ap);
typedef somTP_LNameComponent_somDispatch *somTD_LNameComponent_somDispatch;
typedef boolean   SOMLINK somTP_LNameComponent_somClassDispatch(LNameComponent *somSelf, 
		SOMClass* clsObj, 
		somToken* retValue, 
		somId methodId, 
		va_list ap);
typedef somTP_LNameComponent_somClassDispatch *somTD_LNameComponent_somClassDispatch;
typedef boolean   SOMLINK somTP_LNameComponent_somCastObj(LNameComponent *somSelf, 
		SOMClass* castedCls);
typedef somTP_LNameComponent_somCastObj *somTD_LNameComponent_somCastObj;
typedef boolean   SOMLINK somTP_LNameComponent_somResetObj(LNameComponent *somSelf);
typedef somTP_LNameComponent_somResetObj *somTD_LNameComponent_somResetObj;
typedef LNameComponent*   SOMLINK somTP_LNameComponent_somPrintSelf(LNameComponent *somSelf);
typedef somTP_LNameComponent_somPrintSelf *somTD_LNameComponent_somPrintSelf;
typedef void   SOMLINK somTP_LNameComponent_somDumpSelf(LNameComponent *somSelf, 
		long level);
typedef somTP_LNameComponent_somDumpSelf *somTD_LNameComponent_somDumpSelf;
typedef void   SOMLINK somTP_LNameComponent_somDumpSelfInt(LNameComponent *somSelf, 
		long level);
typedef somTP_LNameComponent_somDumpSelfInt *somTD_LNameComponent_somDumpSelfInt;
}

#endif /* LNameComponent_API */


/*
 * -- The C++ Wrapper Class for LNameComponent
 */
class LNameComponent : public SOMObject
{
public:

// LNameComponent::new creates the class object if necessary, and then uses
// somNewNoInit to allocate memory and create the object.
// Initialization is in ctors.
void *operator new(size_t)
{
   if (!_LNameComponent) LNameComponentNewClass(LNameComponent_MajorVersion,LNameComponent_MinorVersion);
   return (void*)
   (((somTD_SOMClass_somNewNoInit)(SOMClassClassData.somNewNoInit))
         ((SOMClass *)((void*)_LNameComponent)));
}

// LNameComponent::delete uses somFree.
void operator delete(void * obj)
{
   if (obj && *(void**)obj)
      ((SOMObject*)obj)->somFree();
}

LNameComponent& operator=(LNameComponent& fromObj)
{
   this->somDefaultAssign(0,(SOMObject*)((void*)&fromObj));
   return *this;
}

LNameComponent()
{
   if (*(void**)this != (LNameComponentCClassData.parentMtab)->mtab)
      return;
   ((SOMObject*)((void*)this))->somDefaultInit(0);
}

LNameComponent(LNameComponent* fromObj)
{
   if (*(void**)this != (LNameComponentCClassData.parentMtab)->mtab)
      return;
   ((SOMObject*)((void*)this))->somDefaultCopyInit(0,((SOMObject*)((void*)fromObj)));
}


/* method: get_id */
string   get_id(Environment *ev)
{
   return 	(
	 SOM_TestCls(this,_SOMCLASS_LNameComponent),
	 ((somTD_LNameComponent_get_id)(LNameComponentClassData.get_id))(((LNameComponent *)((void *)this)), ev)
	);
}


/* method: set_id */
void   set_id(Environment *ev, 
		string i)
{
   	(
	 SOM_TestCls(this,_SOMCLASS_LNameComponent),
	 ((somTD_LNameComponent_set_id)(LNameComponentClassData.set_id))(((LNameComponent *)((void *)this)), ev,i)
	);
}


/* method: get_kind */
string   get_kind(Environment *ev)
{
   return 	(
	 SOM_TestCls(this,_SOMCLASS_LNameComponent),
	 ((somTD_LNameComponent_get_kind)(LNameComponentClassData.get_kind))(((LNameComponent *)((void *)this)), ev)
	);
}


/* method: set_kind */
void   set_kind(Environment *ev, 
		string k)
{
   	(
	 SOM_TestCls(this,_SOMCLASS_LNameComponent),
	 ((somTD_LNameComponent_set_kind)(LNameComponentClassData.set_kind))(((LNameComponent *)((void *)this)), ev,k)
	);
}


/* method: destroy */
void   destroy(Environment *ev)
{
   	(
	 SOM_TestCls(this,_SOMCLASS_LNameComponent),
	 ((somTD_LNameComponent_destroy)(LNameComponentClassData.destroy))(((LNameComponent *)((void *)this)), ev)
	);
}


/*
 * Reintroduce inherited methods
 */

/* initializer method: somDefaultInit */
void   somDefaultInit(som3InitCtrl* ctrl)
{
/*
 *  A default initializer for a SOM object. Passing a null ctrl
 *  indicates to the receiver that its class is the class of the
 *  object being initialized, whereby the initializer will determine
 *  an appropriate control structure.
 */
   	(
	 SOM_TestCls(this,_SOMCLASS_SOMObject),
	 ((somTD_LNameComponent_somDefaultInit)(SOMObjectClassData.somDefaultInit))(((LNameComponent *)((void *)this)),ctrl)
	);
}


/* method: somDestruct */
void   somDestruct(octet doFree, 
		som3DestructCtrl* ctrl)
{
/*
 *  The default destructor for a SOM object. A nonzero <doFree>
 *  indicates that the object storage should be freed by the
 *  object's class (via somDeallocate) after uninitialization.
 *  As with somDefaultInit, a null ctrl can be passed.
 */
   	(
	 SOM_TestCls(this,_SOMCLASS_SOMObject),
	 ((somTD_LNameComponent_somDestruct)(SOMObjectClassData.somDestruct))(((LNameComponent *)((void *)this)),doFree,ctrl)
	);
}


/* initializer method: somDefaultCopyInit */
void   somDefaultCopyInit(som3InitCtrl* ctrl, 
		SOMObject* fromObj)
{
/*
 *  A default copy constructor. Use this to make copies of objects for
 *  calling methods with "by-value" argument semantics.
 */
   	(
	 SOM_TestCls(this,_SOMCLASS_SOMObject),
	 ((somTD_LNameComponent_somDefaultCopyInit)(SOMObjectClassData.somDefaultCopyInit))(((LNameComponent *)((void *)this)),ctrl,fromObj)
	);
}


/* method: somDefaultAssign */
LNameComponent*  somDefaultAssign(som3AssignCtrl* ctrl, 
		SOMObject* fromObj)
{
/*
 *  A default assignment operator. Use this to "assign" the state of one
 *  object to another.
 */
   return 	(
	 SOM_TestCls(this,_SOMCLASS_SOMObject),
	 ((somTD_LNameComponent_somDefaultAssign)(SOMObjectClassData.somDefaultAssign))(((LNameComponent *)((void *)this)),ctrl,fromObj)
	);
}


/* initializer method: somDefaultConstCopyInit */
void   somDefaultConstCopyInit(som3InitCtrl* ctrl, 
		SOMObject* fromObj)
{
/*
 *  A default copy constructor that uses a const fromObj.
 */
   	(
	 SOM_TestCls(this,_SOMCLASS_SOMObject),
	 ((somTD_LNameComponent_somDefaultConstCopyInit)(SOMObjectClassData.somDefaultConstCopyInit))(((LNameComponent *)((void *)this)),ctrl,fromObj)
	);
}


/* initializer method: somDefaultVCopyInit */
void   somDefaultVCopyInit(som3InitCtrl* ctrl, 
		SOMObject* fromObj)
{
/*
 *  A default copy constructor that uses a volatile fromObj.
 */
   	(
	 SOM_TestCls(this,_SOMCLASS_SOMObject),
	 ((somTD_LNameComponent_somDefaultVCopyInit)(SOMObjectClassData.somDefaultVCopyInit))(((LNameComponent *)((void *)this)),ctrl,fromObj)
	);
}


/* initializer method: somDefaultConstVCopyInit */
void   somDefaultConstVCopyInit(som3InitCtrl* ctrl, 
		SOMObject* fromObj)
{
/*
 *  A default copy constructor that uses a const volatile fromObj.
 */
   	(
	 SOM_TestCls(this,_SOMCLASS_SOMObject),
	 ((somTD_LNameComponent_somDefaultConstVCopyInit)(SOMObjectClassData.somDefaultConstVCopyInit))(((LNameComponent *)((void *)this)),ctrl,fromObj)
	);
}


/* method: somDefaultConstAssign */
LNameComponent*  somDefaultConstAssign(som3AssignCtrl* ctrl, 
		SOMObject* fromObj)
{
/*
 *  A default assignment operator that uses a const fromObj.
 */
   return 	(
	 SOM_TestCls(this,_SOMCLASS_SOMObject),
	 ((somTD_LNameComponent_somDefaultConstAssign)(SOMObjectClassData.somDefaultConstAssign))(((LNameComponent *)((void *)this)),ctrl,fromObj)
	);
}


/* method: somDefaultVAssign */
LNameComponent*  somDefaultVAssign(som3AssignCtrl* ctrl, 
		SOMObject* fromObj)
{
/*
 *  A default assignment operator that uses a volatile fromObj.
 */
   return 	(
	 SOM_TestCls(this,_SOMCLASS_SOMObject),
	 ((somTD_LNameComponent_somDefaultVAssign)(SOMObjectClassData.somDefaultVAssign))(((LNameComponent *)((void *)this)),ctrl,fromObj)
	);
}


/* method: somDefaultConstVAssign */
LNameComponent*  somDefaultConstVAssign(som3AssignCtrl* ctrl, 
		SOMObject* fromObj)
{
/*
 *  A default assignment operator that uses a const volatile fromObj.
 */
   return 	(
	 SOM_TestCls(this,_SOMCLASS_SOMObject),
	 ((somTD_LNameComponent_somDefaultConstVAssign)(SOMObjectClassData.somDefaultConstVAssign))(((LNameComponent *)((void *)this)),ctrl,fromObj)
	);
}


/* method: somInit */
void   somInit()
{
/*
 *  Obsolete but still supported. Override somDefaultInit instead of somInit.
 */
   	(
	 SOM_TestCls(this,_SOMCLASS_SOMObject),
	 ((somTD_LNameComponent_somInit)(SOMObjectClassData.somInit))(((LNameComponent *)((void *)this)))
	);
}


/* method: somUninit */
void   somUninit()
{
/*
 *  Obsolete but still supported. Override somDestruct instead of somUninit.
 */
   	(
	 SOM_TestCls(this,_SOMCLASS_SOMObject),
	 ((somTD_LNameComponent_somUninit)(SOMObjectClassData.somUninit))(((LNameComponent *)((void *)this)))
	);
}


/* method: somFree */
void   somFree()
{
/*
 *  The default implementation just calls somDestruct.
 */
   	(
	 SOM_TestCls(this,_SOMCLASS_SOMObject),
	 ((somTD_LNameComponent_somFree)(SOMObjectClassData.somFree))(((LNameComponent *)((void *)this)))
	);
}


/* method: somGetClass */
SOMClass*   somGetClass()
{
/*
 *  Return the receiver's class.
 */
   return 	(
	 SOM_TestCls(this,_SOMCLASS_SOMObject),
	 ((somTD_LNameComponent_somGetClass)(SOMObjectClassData.somGetClass))(((LNameComponent *)((void *)this)))
	);
}


/* method: somGetClassName */
string   somGetClassName()
{
/*
 *  Return the name of the receiver's class.
 */
   return 	(
	 SOM_TestCls(this,_SOMCLASS_SOMObject),
	 ((somTD_LNameComponent_somGetClassName)(SOMObjectClassData.somGetClassName))(((LNameComponent *)((void *)this)))
	);
}


/* method: somGetSize */
long   somGetSize()
{
/*
 *  Return the size of the receiver.
 */
   return 	(
	 SOM_TestCls(this,_SOMCLASS_SOMObject),
	 ((somTD_LNameComponent_somGetSize)(SOMObjectClassData.somGetSize))(((LNameComponent *)((void *)this)))
	);
}


/* method: somIsA */
boolean   somIsA(SOMClass* aClassObj)
{
/*
 *  Returns 1 (true) if the receiver responds to methods
 *  introduced by <aClassObj>, and 0 (false) otherwise.
 */
   return 	(
	 SOM_TestCls(this,_SOMCLASS_SOMObject),
	 ((somTD_LNameComponent_somIsA)(SOMObjectClassData.somIsA))(((LNameComponent *)((void *)this)),aClassObj)
	);
}


/* method: somIsInstanceOf */
boolean   somIsInstanceOf(SOMClass* aClassObj)
{
/*
 *  Returns 1 (true) if the receiver is an instance of
 *  <aClassObj> and 0 (false) otherwise.
 */
   return 	(
	 SOM_TestCls(this,_SOMCLASS_SOMObject),
	 ((somTD_LNameComponent_somIsInstanceOf)(SOMObjectClassData.somIsInstanceOf))(((LNameComponent *)((void *)this)),aClassObj)
	);
}


/* method: somRespondsTo */
boolean   somRespondsTo(somId mId)
{
/*
 *  Returns 1 (true) if the indicated method can be invoked
 *  on the receiver and 0 (false) otherwise.
 */
   return 	(
	 SOM_TestCls(this,_SOMCLASS_SOMObject),
	 ((somTD_LNameComponent_somRespondsTo)(SOMObjectClassData.somRespondsTo))(((LNameComponent *)((void *)this)),mId)
	);
}


/* va_list method: somDispatch */

/*
 *  This method provides a generic, class-specific dispatch mechanism.
 *  It accepts as input <retValue> a pointer to the memory area to be
 *  loaded with the result of dispatching the method indicated by
 *  <methodId> using the arguments in <ap>. <ap> contains the object
 *  on which the method is to be invoked as the first argument.
 * 
 *  Default redispatch stubs invoke this method.
 */
/* the va_list invocation form */
boolean   SOMObject_somDispatch(somToken* retValue, 
		somId methodId, 
		va_list ap)
{   return 	(
	 SOM_TestCls(this,_SOMCLASS_SOMObject),
	 ((somTD_LNameComponent_somDispatch)(SOMObjectClassData.somDispatch))(((LNameComponent *)((void *)this)),retValue,methodId,ap)
	);
}

/* the varargs invocation form */
boolean   somDispatch(somToken* retValue, 
		somId methodId, 
		...)
{
/*
 *  This method provides a generic, class-specific dispatch mechanism.
 *  It accepts as input <retValue> a pointer to the memory area to be
 *  loaded with the result of dispatching the method indicated by
 *  <methodId> using the arguments in <ap>. <ap> contains the object
 *  on which the method is to be invoked as the first argument.
 * 
 *  Default redispatch stubs invoke this method.
 */
   va_list ap;
   va_start(ap, methodId);
   boolean __somResult = 
      	(
	 SOM_TestCls(this,_SOMCLASS_SOMObject),
	 ((somTD_LNameComponent_somDispatch)(SOMObjectClassData.somDispatch))(((LNameComponent *)((void *)this)),retValue,methodId,ap)
	);
   va_end(ap);
   return __somResult;
}


/* va_list method: somClassDispatch */

/*
 *  Like somDispatch, but method resolution for static methods is done
 *  according to the clsObj instance method table.
 */
/* the va_list invocation form */
boolean   SOMObject_somClassDispatch(SOMClass* clsObj, 
		somToken* retValue, 
		somId methodId, 
		va_list ap)
{   return 	(
	 SOM_TestCls(this,_SOMCLASS_SOMObject),
	 ((somTD_LNameComponent_somClassDispatch)(SOMObjectClassData.somClassDispatch))(((LNameComponent *)((void *)this)),clsObj,retValue,methodId,ap)
	);
}

/* the varargs invocation form */
boolean   somClassDispatch(SOMClass* clsObj, 
		somToken* retValue, 
		somId methodId, 
		...)
{
/*
 *  Like somDispatch, but method resolution for static methods is done
 *  according to the clsObj instance method table.
 */
   va_list ap;
   va_start(ap, methodId);
   boolean __somResult = 
      	(
	 SOM_TestCls(this,_SOMCLASS_SOMObject),
	 ((somTD_LNameComponent_somClassDispatch)(SOMObjectClassData.somClassDispatch))(((LNameComponent *)((void *)this)),clsObj,retValue,methodId,ap)
	);
   va_end(ap);
   return __somResult;
}


/* method: somCastObj */
boolean   somCastObj(SOMClass* castedCls)
{
/*
 *  Changes the behavior of the target object to that implemented
 *  by castedCls. This is possible when all concrete data in castedCls
 *  is also concrete in the true class of the target object.
 *  Returns true (1) on success, and false (0) otherwise.
 */
   return 	(
	 SOM_TestCls(this,_SOMCLASS_SOMObject),
	 ((somTD_LNameComponent_somCastObj)(SOMObjectClassData.somCastObj))(((LNameComponent *)((void *)this)),castedCls)
	);
}


/* method: somResetObj */
boolean   somResetObj()
{
/*
 *  reset an object to its true class. Returns true always.
 */
   return 	(
	 SOM_TestCls(this,_SOMCLASS_SOMObject),
	 ((somTD_LNameComponent_somResetObj)(SOMObjectClassData.somResetObj))(((LNameComponent *)((void *)this)))
	);
}


/* method: somPrintSelf */
LNameComponent*  somPrintSelf()
{
/*
 *  Uses <SOMOutCharRoutine> to write a brief string with identifying
 *  information about this object.  The default implementation just gives
 *  the object's class name and its address in memory.
 *  <self> is returned.
 */
   return 	(
	 SOM_TestCls(this,_SOMCLASS_SOMObject),
	 ((somTD_LNameComponent_somPrintSelf)(SOMObjectClassData.somPrintSelf))(((LNameComponent *)((void *)this)))
	);
}


/* method: somDumpSelf */
void   somDumpSelf(long level)
{
/*
 *  Uses <SOMOutCharRoutine> to write a detailed description of this object
 *  and its current state.
 * 
 *  <level> indicates the nesting level for describing compound objects
 *  it must be greater than or equal to zero.  All lines in the
 *  description will be preceeded by <2*level> spaces.
 * 
 *  This routine only actually writes the data that concerns the object
 *  as a whole, such as class, and uses <somDumpSelfInt> to describe
 *  the object's current state.  This approach allows readable
 *  descriptions of compound objects to be constructed.
 * 
 *  Generally it is not necessary to override this method, if it is
 *  overriden it generally must be completely replaced.
 */
   	(
	 SOM_TestCls(this,_SOMCLASS_SOMObject),
	 ((somTD_LNameComponent_somDumpSelf)(SOMObjectClassData.somDumpSelf))(((LNameComponent *)((void *)this)),level)
	);
}


/* method: somDumpSelfInt */
void   somDumpSelfInt(long level)
{
/*
 *  Uses <SOMOutCharRoutine> to write in the current state of this object.
 *  Generally this method will need to be overridden.  When overriding
 *  it, begin by calling the parent class form of this method and then
 *  write in a description of your class's instance data. This will
 *  result in a description of all the object's instance data going
 *  from its root ancestor class to its specific class.
 */
   	(
	 SOM_TestCls(this,_SOMCLASS_SOMObject),
	 ((somTD_LNameComponent_somDumpSelfInt)(SOMObjectClassData.somDumpSelfInt))(((LNameComponent *)((void *)this)),level)
	);
}



};   /* LNameComponent */



#endif       /* SOM_LNameComponent_xh */
