diff --git a/reference/componere/book.xml b/reference/componere/book.xml index 3d1840d00d..1ef0623fe3 100644 --- a/reference/componere/book.xml +++ b/reference/componere/book.xml @@ -18,6 +18,7 @@ &reference.componere.componere.patch; &reference.componere.componere.method; &reference.componere.componere.value; + &reference.componere.reference; + + + + Componere\cast + Casting + + + + &reftitle.description; + + objectComponere\cast + stringclass + objectinstance + + + Shall cast instance to class + + + + + + &reftitle.parameters; + + + class + + + A user defined class name + + + + + instance + + + An object with a user defined type + + + + + + + + &reftitle.returnvalues; + + A clone of instance, of type class + + + + + Exceptions + + + Shall throw InvalidArgumentException if instance is not of a user defined standard type + + + + + Shall throw InvalidArgumentException if class is an interface + + + + + Shall throw InvalidArgumentException if class is a trait + + + + + Shall throw InvalidArgumentException if class is an abstract + + + + + Shall throw InvalidArgumentException if class is not compatible with the type of instance + + + + + + diff --git a/reference/componere/reference.xml b/reference/componere/reference.xml new file mode 100644 index 0000000000..ba22b4bf90 --- /dev/null +++ b/reference/componere/reference.xml @@ -0,0 +1,30 @@ + + + + + Componere &Functions; + + &reference.componere.entities.functions; + + + + diff --git a/reference/componere/versions.xml b/reference/componere/versions.xml index 36f740eb34..1c631a4c70 100644 --- a/reference/componere/versions.xml +++ b/reference/componere/versions.xml @@ -55,6 +55,8 @@ + +