From 90728e65b138a384aeccd9a71684fe9a89200f43 Mon Sep 17 00:00:00 2001 From: "adrian.f.cole" Date: Thu, 4 Jun 2009 04:35:24 +0000 Subject: [PATCH] Issue 36: changed to java friendly names git-svn-id: http://jclouds.googlecode.com/svn/trunk@890 3d8758e0-26b5-11de-8745-db77d3ebf521 --- aws/src/main/bin/parse_ec2.pl | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/aws/src/main/bin/parse_ec2.pl b/aws/src/main/bin/parse_ec2.pl index 2ed4b47d95..4b21fa98e0 100755 --- a/aws/src/main/bin/parse_ec2.pl +++ b/aws/src/main/bin/parse_ec2.pl @@ -180,7 +180,7 @@ sub build_fields { chomp($state); $enum->{$code} = $state; } - $param{enum} = $enum; + $param{valueMap} = $enum; $param{desc} = ${row}[1]->look_down( '_tag', 'p' )->as_text(); } else { @@ -188,7 +188,7 @@ sub build_fields { foreach ( @{data} ) { $_ = $_->as_text(); if (s/Default: //) { - $param{default} = $_; + $param{defaultValue} = $_; } elsif (s/Type: //) { $param{type} = $_; @@ -203,7 +203,7 @@ sub build_fields { elsif (s/Constraints: //) { $param{constraints} = $_; if (m/.*default: ([0-9]+)/) { - $param{default} = $1; + $param{defaultValue} = $1; } } elsif (s/Valid Values: //) { @@ -213,7 +213,7 @@ sub build_fields { foreach my $value (@valid_values) { $enum->{$value} = $value; } - $param{enum} = $enum; + $param{valueMap} = $enum; } elsif (/([0-9]+) ?\-([0-9]+)/) { $param{constraints} = "$1-$2"; @@ -267,8 +267,8 @@ sub build_bean { my ${requestExampleDiv} = $tree->look_down( '_tag', 'h3', 'id', "$id" ) ->look_up( '_tag', 'div', 'class', 'section' ); - $bean->{example_html} = ${requestExampleDiv}->as_HTML(); - $bean->{example_code} = + $bean->{exampleHTML} = ${requestExampleDiv}->as_HTML(); + $bean->{exampleCode} = ${requestExampleDiv} ->look_down( '_tag', 'pre', 'class', 'programlisting' )->as_text(); $tree->eof;