D. Hageman > XForms-Generator-0.70 > XML::XForms::Generator::Model

Download:
XForms-Generator-0.70.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Module Version: 0.70   Source  

NAME ^

XML::XForms::Generator::Model

SYNOPSIS ^

 use XML::XForms::Generator;

 my $model = xforms_model( { id => 'MyFirstXForms' } );

DESCRIPTION ^

The XML::XForms::Generator::Model package is an implementation of the XForms model element. This package has a single convience function (xforms_model) that takes a parameter 'id' to uniquely identify that model element in the document. The result of calling this function is a object that has all the methods available to a XML::LibXML::Element object plus the methods listed below:

METHODS ^

appendBind ( { ATTRIBUTES }, @DATA )

Sets the binding information of a model. This method takes a hash refernce of name => value pairs for the attributes of the model's child. The attributes are attached on the basis of their legitamacy when compared to the XForms schema. If it isn't a recognized attribute then it won't get attached. This method also takes an array of XML::LibXML capable nodes and/or text data.

appendInstance ( { ATTRIBUTES }, @DATA )

Sets the instance data append of a model. This method takes a hash refernce of name => value pairs for the attributes of the model's child. The attributes are attached on the basis of their legitamacy when compared to the XForms schema. If it isn't a recognized attribute then it won't get attached. This method also takes an array of XML::LibXML capable nodes and/or text data.

appendExtension ( { ATTRIBUTES }, @DATA )

Sets the extensions of a model. This method takes a hash refernce of name => value pairs for the attributes of the model's child. The attributes are attached on the basis of their legitamacy when compared to the XForms schema. If it isn't a recognized attribute then it won't get attached. This method also takes an array of XML::LibXML capable nodes and/or text data.

appendSubmission ( { ATTRIBUTES }, @DATA )

Sets the submission data of a model. This method takes a hash refernce of name => value pairs for the attributes of the model's child. The attributes are attached on the basis of their legitamacy when compared to the XForms schema. If it isn't a recognized attribute then it won't get attached. This method also takes an array of XML::LibXML capable nodes and/or text data.

bindControl ( CONTROL, BIND, VALUE )

Method that allows you to bind a control to a model's instance data. This method is not necessarily needed if you use the setInstanceData method.

getBind ()

Returns the binding children of a model.

getInstance ()

Returns the instance data section associated with a model.

getExtension ()

Returns any extension children of a model.

getSubmission ()

Returns the submitInfo data.

setInstanceData ( REF, DATA )

Method to set the instance data.

AUTHOR ^

D. Hageman <dhageman@dracken.com>

SEE ALSO ^

 XML::XForms::Generator
 XML::XForms::Generator::Action
 XML::XForms::Generator::Control
 XML::XForms::Generator::UserInterface
 XML::LibXML
 XML::LibXML::DOM

COPYRIGHT AND LICENSE ^

Copyright (c) 2002-2004 D. Hageman (Dracken Technologies).

All rights reserved.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

syntax highlighting: