/** * Convenience method for getting a batchId from * an element if it's there. * * @param element element to get id from. * @return the id or {@code null} if it's not defined. */ public static String getIdFrom(Element element) { BatchId tag = element.getElement(KEY); return tag == null ? null : tag.getId(); }
/** * Convenience method for getting a batchId from * an element if it's there. * * @param element element to get id from. * @return the id or {@code null} if it's not defined. */ public static String getIdFrom(Element element) { BatchId tag = element.getElement(KEY); return tag == null ? null : tag.getId(); }
/** * Convenience method for getting a batchId from * an element if it's there. * * @param element element to get id from. * @return the id or {@code null} if it's not defined. */ public static String getIdFrom(Element element) { BatchId tag = element.getElement(KEY); return tag == null ? null : tag.getId(); }