Skip to content

Commit

Permalink
import generated files
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Prather committed Jun 19, 2009
0 parents commit 6b83f9f
Show file tree
Hide file tree
Showing 13 changed files with 882 additions and 0 deletions.
9 changes: 9 additions & 0 deletions MyApp/Any_element.pm
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package MyApp::Any_element;
use Moose;
use MooseX::AttributeHelpers;
use XML::Toolkit;


no Moose;
1;
__END__
48 changes: 48 additions & 0 deletions MyApp/Dependency.pm
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
package MyApp::Dependency;
use Moose;
use MooseX::AttributeHelpers;
use XML::Toolkit;

has 'any_attribute' => (
isa => 'Str',
is => 'ro',
traits => [ 'XML' ],
description => {
Prefix => "",
LocalName => "any_attribute",
node_type => "attribute",
Name => "any_attribute",
NamespaceURI => "",
sort_order => 0,
},
);
has 'any_element_collection' => (
isa => 'ArrayRef[MyApp::Any_element]',
is => 'ro',
traits => [ 'XML' ],
metaclass => 'Collection::Array',
lazy => 1,
auto_deref => 1,
default => sub { [] },
provides => { push => 'add_any_element' },
description => {
sort_order => 1,
},
);
has 'identifierref' => (
isa => 'Str',
is => 'ro',
traits => [ 'XML' ],
description => {
Prefix => "",
LocalName => "identifierref",
node_type => "attribute",
Name => "identifierref",
NamespaceURI => "",
sort_order => 2,
},
);

no Moose;
1;
__END__
61 changes: 61 additions & 0 deletions MyApp/File.pm
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
package MyApp::File;
use Moose;
use MooseX::AttributeHelpers;
use XML::Toolkit;

has 'any_attribute' => (
isa => 'Str',
is => 'ro',
traits => [ 'XML' ],
description => {
Prefix => "",
LocalName => "any_attribute",
node_type => "attribute",
Name => "any_attribute",
NamespaceURI => "",
sort_order => 0,
},
);
has 'any_element_collection' => (
isa => 'ArrayRef[MyApp::Any_element]',
is => 'ro',
traits => [ 'XML' ],
metaclass => 'Collection::Array',
lazy => 1,
auto_deref => 1,
default => sub { [] },
provides => { push => 'add_any_element' },
description => {
sort_order => 1,
},
);
has 'href' => (
isa => 'Str',
is => 'ro',
traits => [ 'XML' ],
description => {
Prefix => "",
LocalName => "href",
node_type => "attribute",
Name => "href",
NamespaceURI => "",
sort_order => 2,
},
);
has 'metadata_collection' => (
isa => 'ArrayRef[MyApp::Metadata]',
is => 'ro',
traits => [ 'XML' ],
metaclass => 'Collection::Array',
lazy => 1,
auto_deref => 1,
default => sub { [] },
provides => { push => 'add_metadata' },
description => {
sort_order => 3,
},
);

no Moose;
1;
__END__
126 changes: 126 additions & 0 deletions MyApp/Item.pm
Original file line number Diff line number Diff line change
@@ -0,0 +1,126 @@
package MyApp::Item;
use Moose;
use MooseX::AttributeHelpers;
use XML::Toolkit;

has 'any_attribute' => (
isa => 'Str',
is => 'ro',
traits => [ 'XML' ],
description => {
Prefix => "",
LocalName => "any_attribute",
node_type => "attribute",
Name => "any_attribute",
NamespaceURI => "",
sort_order => 0,
},
);
has 'any_element_collection' => (
isa => 'ArrayRef[MyApp::Any_element]',
is => 'ro',
traits => [ 'XML' ],
metaclass => 'Collection::Array',
lazy => 1,
auto_deref => 1,
default => sub { [] },
provides => { push => 'add_any_element' },
description => {
sort_order => 1,
},
);
has 'identifier' => (
isa => 'Str',
is => 'ro',
traits => [ 'XML' ],
description => {
Prefix => "",
LocalName => "identifier",
node_type => "attribute",
Name => "identifier",
NamespaceURI => "",
sort_order => 2,
},
);
has 'identifierref' => (
isa => 'Str',
is => 'ro',
traits => [ 'XML' ],
description => {
Prefix => "",
LocalName => "identifierref",
node_type => "attribute",
Name => "identifierref",
NamespaceURI => "",
sort_order => 3,
},
);
has 'isvisible' => (
isa => 'Str',
is => 'ro',
traits => [ 'XML' ],
description => {
Prefix => "",
LocalName => "isvisible",
node_type => "attribute",
Name => "isvisible",
NamespaceURI => "",
sort_order => 4,
},
);
has 'item_collection' => (
isa => 'ArrayRef[MyApp::Item]',
is => 'ro',
traits => [ 'XML' ],
metaclass => 'Collection::Array',
lazy => 1,
auto_deref => 1,
default => sub { [] },
provides => { push => 'add_item' },
description => {
sort_order => 5,
},
);
has 'metadata_collection' => (
isa => 'ArrayRef[MyApp::Metadata]',
is => 'ro',
traits => [ 'XML' ],
metaclass => 'Collection::Array',
lazy => 1,
auto_deref => 1,
default => sub { [] },
provides => { push => 'add_metadata' },
description => {
sort_order => 6,
},
);
has 'parameters' => (
isa => 'Str',
is => 'ro',
traits => [ 'XML' ],
description => {
Prefix => "",
LocalName => "parameters",
node_type => "attribute",
Name => "parameters",
NamespaceURI => "",
sort_order => 7,
},
);
has 'title_collection' => (
isa => 'ArrayRef[MyApp::Title]',
is => 'ro',
traits => [ 'XML' ],
metaclass => 'Collection::Array',
lazy => 1,
auto_deref => 1,
default => sub { [] },
provides => { push => 'add_title' },
description => {
sort_order => 8,
},
);

no Moose;
1;
__END__
Loading

0 comments on commit 6b83f9f

Please sign in to comment.