| Line 15... |
Line 15... |
| 15 |
object that returns \code{TRUE} or a description of the non-validity.
|
15 |
object that returns \code{TRUE} or a description of the non-validity.
|
| 16 |
}
|
16 |
}
|
| 17 |
\usage{
|
17 |
\usage{
|
| 18 |
validObject(object, test)
|
18 |
validObject(object, test)
|
| 19 |
|
19 |
|
| 20 |
getValidity(ClassDef)
|
- |
|
| 21 |
setValidity(Class, method, where = 1 )
|
20 |
setValidity(Class, method, where = 1 )
|
| 22 |
}
|
21 |
}
|
| 23 |
\arguments{
|
22 |
\arguments{
|
| 24 |
\item{object}{ Any object, but not much will happen unless the
|
23 |
\item{object}{ Any object, but not much will happen unless the
|
| 25 |
object's class has a formal definition.}
|
24 |
object's class has a formal definition.}
|
| Line 27... |
Line 26... |
| 27 |
function returns a vector of strings describing the problems. If
|
26 |
function returns a vector of strings describing the problems. If
|
| 28 |
\code{test} is \code{FALSE} (the default) validity failure generates
|
27 |
\code{test} is \code{FALSE} (the default) validity failure generates
|
| 29 |
an error.}
|
28 |
an error.}
|
| 30 |
\item{Class}{The name or class definition of the class whose validity method is to be
|
29 |
\item{Class}{The name or class definition of the class whose validity method is to be
|
| 31 |
set.}
|
30 |
set.}
|
| 32 |
\item{ClassDef}{The class definition of the class whose validity method is to be
|
- |
|
| 33 |
retrieved.}
|
- |
|
| 34 |
\item{method}{A validity method; that is, either \code{NULL} or a
|
31 |
\item{method}{A validity method; that is, either \code{NULL} or a
|
| 35 |
function of one argument (the \code{object}). Like
|
32 |
function of one argument (the \code{object}). Like
|
| 36 |
\code{validObject}, the function should return \code{TRUE} if the
|
33 |
\code{validObject}, the function should return \code{TRUE} if the
|
| 37 |
object is valid, and one or more descriptive strings if any problems
|
34 |
object is valid, and one or more descriptive strings if any problems
|
| 38 |
are found. Unlike \code{validObject}, it should never generate an
|
35 |
are found. Unlike \code{validObject}, it should never generate an
|