From a972089fecb01c62880c6a2a5bc5cbcb96105580 Mon Sep 17 00:00:00 2001 From: franck cuny Date: Mon, 13 Jun 2011 18:38:56 +0200 Subject: add Graph::GEXF while it's not on CPAN Signed-off-by: franck cuny --- lib/Graph/GEXF/Attribute.pm | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 lib/Graph/GEXF/Attribute.pm (limited to 'lib/Graph/GEXF/Attribute.pm') diff --git a/lib/Graph/GEXF/Attribute.pm b/lib/Graph/GEXF/Attribute.pm new file mode 100644 index 0000000..3360307 --- /dev/null +++ b/lib/Graph/GEXF/Attribute.pm @@ -0,0 +1,16 @@ +package Graph::GEXF::Attribute; + +use Moose; + +has id => (is => 'ro', isa => 'Int', required => 1,); +has title => (is => 'rw', isa => 'Str'); +has value => (is => 'rw', isa => 'Str'); +has type => ( + is => 'ro', + isa => enum([qw/string integer float double boolean date anyURI/]) +); + +no Moose; + +1; + -- cgit v1.2.3