Package com.commons

Examples of com.commons.Data


      NodeVisitor visitor = new NodeVisitor() {

        public void visitTag(Tag tag) {
          if (Div.class.equals(tag.getClass())
              && "p-img".equals(tag.getAttribute("class"))) {
            final Data data = new Data();
            tag.accept(new NodeVisitor() {
              public void visitTag(Tag tag) {
                if (ImageTag.class.equals(tag.getClass())) {
                  data.setName(tag.getAttribute("alt"));
                }
                if (LinkTag.class.equals(tag.getClass())) {
                  data.setUri(tag.getAttribute("href"));
                }
              };
            });
            getDataId(data);
            getPrice(data);
            try {
              LoggerUtils.log(CameraGetter.class.getName(),
                  data.toString());
            } catch (IOException e) {
              // TODO Auto-generated catch block
              e.printStackTrace();
            }
            dataList.add(data);
View Full Code Here


              System.out.println("===");
              if ("div".equals(qName)
                  && "p-img".equals(attributes
                      .getValue("class"))) {
                System.out.println("found one!");
                data = new Data();
              }
              if ("a".equals(qName)) {
                if (data != null)
                  data.setUri(attributes.getValue("href"));
              }
View Full Code Here

TOP

Related Classes of com.commons.Data

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.