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

getAction ()

Returns the action child of a model.

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.

getPrivacy ()

Returns the privary elements.

getSchema ()

Returns the schema child of a model.

getSubmitInfo ()

Returns the submitInfo data.

setAction ( { ATTRIBUTES }, @DATA )

Sets the action 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 ana array of XML::LibXML capable nodes and/or text data.

setBind ( { 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 ana array of XML::LibXML capable nodes and/or text data.

setInstance ( { ATTRIBUTES }, @DATA )

Sets the instance data set 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 ana array of XML::LibXML capable nodes and/or text data.

setExtension ( { 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 ana array of XML::LibXML capable nodes and/or text data.

setPrivacy ( { ATTRIBUTES }, @DATA )

Sets the privacy methodology 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 ana array of XML::LibXML capable nodes and/or text data.

setSchema ( { ATTRIBUTES }, @DATA )

Sets the schema 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 ana array of XML::LibXML capable nodes and/or text data.

setSubmitInfo ( { ATTRIBUTES }, @DATA )

Sets the submitInfo 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 ana array of XML::LibXML capable nodes and/or text data.

AUTHOR

D. Hageman <dhageman@dracken.com>

SEE ALSO

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

COPYRIGHT AND LICENSE

Copyright (c) 2000-2001 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.