diff options
author | lresende <lresende@13f79535-47bb-0310-9956-ffa450edef68> | 2009-11-04 22:02:38 +0000 |
---|---|---|
committer | lresende <lresende@13f79535-47bb-0310-9956-ffa450edef68> | 2009-11-04 22:02:38 +0000 |
commit | f4a89e8eef219137bcfb625cbf770baa642312a8 (patch) | |
tree | a6cd3c63d7eaaf99dbcadbfef68870669a1becdf /sandbox/sca-cloud-tutorial/store-assets/src/main/java/services/Item.java | |
parent | 708d0819dea23a7e93d536e9eeb8122444cf3883 (diff) |
Updating item value object to allow better representation of monetary information
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@832883 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sandbox/sca-cloud-tutorial/store-assets/src/main/java/services/Item.java')
-rw-r--r-- | sandbox/sca-cloud-tutorial/store-assets/src/main/java/services/Item.java | 28 |
1 files changed, 24 insertions, 4 deletions
diff --git a/sandbox/sca-cloud-tutorial/store-assets/src/main/java/services/Item.java b/sandbox/sca-cloud-tutorial/store-assets/src/main/java/services/Item.java index 74e7239a20..c4397835ba 100644 --- a/sandbox/sca-cloud-tutorial/store-assets/src/main/java/services/Item.java +++ b/sandbox/sca-cloud-tutorial/store-assets/src/main/java/services/Item.java @@ -25,13 +25,17 @@ public class Item implements Serializable { private static final long serialVersionUID = -5847326138627338217L; private String name; - private String price; + private String currencyCode; + private String currencySymbol; + private double price; public Item() { } - public Item(String name, String price) { + public Item(String name, String currencyCode, String currencySymbol, double price) { this.name = name; + this.currencyCode = currencyCode; + this.currencySymbol = currencySymbol; this.price = price; } @@ -43,11 +47,27 @@ public class Item implements Serializable { this.name = name; } - public String getPrice() { + public String getCurrencyCode() { + return this.currencyCode; + } + + public void setCurrencyCode(String currencyCode) { + this.currencyCode = currencyCode; + } + + public String getCurrencySymbol() { + return this.currencySymbol; + } + + public void setCurrencySymbol(String currencySymbol) { + this.currencySymbol = currencySymbol; + } + + public double getPrice() { return price; } - public void setPrice(String price) { + public void setPrice(double price) { this.price = price; } } |