defineClasses           package:XMLSchema           R Documentation

_D_e_f_i_n_e _R _c_l_a_s_s_e_s _c_o_r_r_e_s_p_o_n_d_i_n_g _t_o _X_M_L _s_c_h_e_m_a _t_y_p_e_s

_D_e_s_c_r_i_p_t_i_o_n:

     This function maps 'SOAPType-class' objects describing XML schema
     types to R class definitions within the existing R session.

_U_s_a_g_e:

     defineClasses(types, where = globalenv(), namespaceDefs = list(), verbose = FALSE, baseClass = "VirtualSOAPClass", force = FALSE)

_A_r_g_u_m_e_n_t_s:

   types: a list of 'SOAPType-class' objects describing the XML schema
          types.

   where: the environment in which the new R class definitions should
          be defined and assigned. This is passed as the value of the
          'where' parameter in the call to 'setClass'.

namespaceDefs: a character vector giving the 'prefix = URI' pairs which
          are used to compare the namespaces in the 'SOAPType-class'
          objects with those in the standard schema, i.e. XSD. 

 verbose: a logical value indicating whether to emit messages on the
          console as classes are defined.

baseClass: the name of  the base class which is added to the 'contains'
          vector for each new class. This allows all the newly defined
          classes to have a common base class, perhaps with multiple
          inheritance. This can be used to define methods for all these
          classes and instances. For example, we might provide a
          documentation method  that provides the help from the XML
          schema's annotation nodes. 

   force: a logical value.  By default, if there is an existing R class
           with a name corresponding to a 'SOAPType-class' object, this
          function does not redefine it. This means that when one runs
          the function a second time, the classes are not redefined. To
          override this, use 'force = TRUE'. 

_V_a_l_u_e:

     A list with the class definitions. This function is run more for
     its side-effect of defining new classes.

_A_u_t_h_o_r(_s):

     Duncan Temple Lang

