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")

