Examples of elementByID()


Examples of org.dom4j.Element.elementByID()

                String id = elementID(element);

                if ((id != null) && id.equals(elementID)) {
                    return element;
                } else {
                    element = element.elementByID(elementID);

                    if (element != null) {
                        return element;
                    }
                }
View Full Code Here

Examples of org.dom4j.Element.elementByID()

                String id = elementID(element);

                if ((id != null) && id.equals(elementID)) {
                    return element;
                } else {
                    element = element.elementByID(elementID);

                    if (element != null) {
                        return element;
                    }
                }
View Full Code Here

Examples of org.dom4j.Element.elementByID()

/* 270 */         String id = elementID(element);
/*     */
/* 272 */         if ((id != null) && (id.equals(elementID))) {
/* 273 */           return element;
/*     */         }
/* 275 */         element = element.elementByID(elementID);
/*     */
/* 277 */         if (element != null) {
/* 278 */           return element;
/*     */         }
/*     */       }
View Full Code Here

Examples of org.dom4j.Element.elementByID()

  private boolean isExisted(String issueNo, String type)
      throws DocumentException, IOException {
    Document root = getDocument(type);
    Element rootEl = root.getRootElement();
    if (rootEl.elementByID(issueNo) != null) {
      return true;
    }
    return false;
  }
View Full Code Here

Examples of org.dom4j.Element.elementByID()

  }

  public boolean addItem(DataItem item) throws DocumentException, IOException {
    Document root = getDocument(item.getType());
    Element rootEl = root.getRootElement();
    if (rootEl.elementByID(item.getId()) != null) {
      System.err.println(item.getType() + " number:" + item.getId()
          + " is existed.");
      writeLogs(item.getType() + " number:" + item.getId()
          + " is existed.", this.getClass(), null);
      return false;
View Full Code Here

Examples of org.dom4j.Element.elementByID()

  }
 
  public boolean addSSCItem(DataItem item) throws DocumentException, IOException {
    Document root = getDocumentComm(Config.DATA_FILE_PATH+item.getType()+".xml");
    Element rootEl = root.getRootElement();
    if (rootEl.elementByID(item.getId()) != null) {
//      System.err.println(item.getType() + " number:" + item.getId()
//          + " is existed.");
      writeLogs(item.getType() + " number:" + item.getId()
          + " is existed.", this.getClass(), null);
      return false;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.