19 package org.turro.financials.cart.delivery;
21 import java.util.ArrayList;
22 import java.util.HashSet;
23 import java.util.List;
25 import org.jdom.Element;
26 import org.turro.contacts.Address;
27 import org.turro.financials.entity.Product;
78 Set<String> values =
new HashSet<>();
88 List<StreetItem> streets =
new ArrayList<>();
102 List<Element> children = root.getChildren(
"DeliveryByStreetMap");
103 for(Element el : children) {
105 Long.valueOf(el.getAttributeValue(
"product")),
106 Long.valueOf(el.getAttributeValue(
"store")),
107 el.getAttributeValue(
"logistic")));
109 children = root.getChildren(
"DeliveryByZipcode");
110 for(Element el : children) {
112 Long.valueOf(el.getAttributeValue(
"product")),
113 Long.valueOf(el.getAttributeValue(
"store")),
114 el.getAttributeValue(
"logistic")));
116 children = root.getChildren(
"DeliveryByProvince");
117 for(Element el : children) {
119 Long.valueOf(el.getAttributeValue(
"product")),
120 Long.valueOf(el.getAttributeValue(
"store")),
121 el.getAttributeValue(
"logistic")));
123 children = root.getChildren(
"DeliveryByValue");
124 for(Element el : children) {
126 Long.valueOf(el.getAttributeValue(
"product")),
127 Long.valueOf(el.getAttributeValue(
"store")),
128 el.getAttributeValue(
"logistic")));
void readXML(Element root)
Set< String > getDeliveryValues()
List< StreetItem > getDeliveryStreets(String search)
Product getDeliveryProduct(String value)
Product getDeliveryProduct(Address address)
boolean match(String data)
Product getDeliveryProduct()