isVersioned             package:Biobase             R Documentation

_D_e_t_e_r_m_i_n_e _w_h_e_t_h_e_r _o_b_j_e_c_t _o_r _c_l_a_s_s _c_o_n_t_a_i_n_s _v_e_r_s_i_o_n_i_n_g _i_n_f_o_r_m_a_t_i_o_n

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

     This generic function checks to see whether 'Versioned-class'
     information is present. When the argument to 'isVersioned' is a
     character string, the prototype of the class corresponding to the
     string is consulted.

     By default, 'isVersioned' has the following behaviors:

     '_i_s_V_e_r_s_i_o_n_e_d(_V_e_r_s_i_o_n_e_d-_i_n_s_t_a_n_c_e)' Returns 'TRUE' when the instance
          have version information.

     '_i_s_C_u_r_r_e_n_t("_c_l_a_s_s-_n_a_m_e")' Returns 'TRUE' when the named class
          extends 'Versioned-class'.

     '_i_s_V_e_r_s_i_o_n_e_d(_A_N_Y)' Returns 'FALSE'

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

     isVersioned(object)

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

  object: Object or class name to check for version information, as
          described above.

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

     'isVersioned' returns a logical indicating whether version
     information is present.

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

     Biocore team

_S_e_e _A_l_s_o:

     'Versions-class'

_E_x_a_m_p_l_e_s:

     obj <- new("VersionedBiobase")
     isVersioned(obj)

     isVersioned(1:10) # FALSE

     setClass("A", contains="VersionedBiobase",
              prototype=prototype(new("VersionedBiobase", versions=c(A="1.0.0"))))
     a <- new("A")
     isVersioned(a)

     removeClass("A")

