\HeaderA{isVersioned}{Determine whether object or class contains versioning information}{isVersioned}
\aliasA{isVersioned,ANY-method}{isVersioned}{isVersioned,ANY.Rdash.method}
\aliasA{isVersioned,character-method}{isVersioned}{isVersioned,character.Rdash.method}
\keyword{manip}{isVersioned}
\begin{Description}\relax
This generic function checks to see whether \code{\LinkA{Versioned-class}{Versioned.Rdash.class}} information
is present. When the argument to \code{isVersioned} is a character
string, the prototype of the class corresponding to the string is
consulted.

By default, \code{isVersioned} has the following behaviors:
\describe{
\item[\code{isVersioned(Versioned-instance)}] Returns \code{TRUE} when the instance have version information.
\item[\code{isCurrent("class-name")}] Returns \code{TRUE} when the named class extends \code{\LinkA{Versioned-class}{Versioned.Rdash.class}}.
\item[\code{isVersioned(ANY)}] Returns \code{FALSE}
}
\end{Description}
\begin{Usage}
\begin{verbatim}
isVersioned(object)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{object}] Object or class name to check for version information, as described above.
\end{ldescription}
\end{Arguments}
\begin{Value}
\code{isVersioned} returns a logical indicating whether version information is present.
\end{Value}
\begin{Author}\relax
Biocore team
\end{Author}
\begin{SeeAlso}\relax
\code{\LinkA{Versions-class}{Versions.Rdash.class}}
\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}

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")
\end{ExampleCode}
\end{Examples}

