- CLASS METHODS
- BUGS & CAVEATS
- SEE ALSO
XML::Pastor::Meta - Ancestor of the generated ::Pastor::Meta classes.
# please see the documentation of XML::Pastor
XML::Pastor::Meta is the ancestor of the generated ::Pastor::Meta classes.
Suppose you use XML::Pastor for code generation with a class prefix of MyApp::Data. Then, XML::Pastor will also generate a class that enables you to access meta information about the generated code under 'MyApp::Data::Pastor::Meta'.
Currently, the only information you can access is the 'Model' that was used to generate code. 'Model' is class data that references to an entire schema model object (of type XML::Schema::Model). With the help of the generated 'meta' class, you can access the Model which will in turn enable you to call methods such as 'xml_item_class()' which helps you determine the generated Perl class of a given global element or type in the schema.
Creates and initializes the object.
Returns the schema model object (of type XML::Schema::Model) associated with the set of schemas that were used for the code generation.
You can actually assign a model with this method as well, just by passing a reference as the only argument. But why would you want to do it.
BUGS & CAVEATS
There no known bugs at this time, but this doesn't mean there are aren't any. Note that, although some testing was done prior to releasing the module, this should still be considered alpha code. So use it at your own risk.
Note that there may be other bugs or limitations that the author is not aware of.
Ayhan Ulusoy <dev(at)ulusoy(dot)name>
Copyright (C) 2006-2008 Ayhan Ulusoy. All Rights Reserved.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
See also XML::Pastor