public void setExtension(Extension extension) { extPoint.setExtension(extension); }
/** * Set an extension. * @see ExtensionPoint#setExtension(Extension) */ public void setExtension(Extension extension) { extPoint.setExtension(extension); }
/** * Set an extension. * @see ExtensionPoint#setExtension(Extension) */ public void setExtension(Extension extension) { extPoint.setExtension(extension); }
public void setExtension(Extension extension) { extPoint.setExtension(extension); }
/** * Sets the value of the tag {@code <batch:id>}. * * @param extPoint extension point to put the id on * @param id the batch id or null to remove it */ public static void setBatchId(ExtensionPoint extPoint, String id) { if (id == null) { extPoint.removeExtension(BatchId.class); } else { extPoint.setExtension(new BatchId(id)); } }
/** * Sets the batch operation to execute in a {@link BaseEntry}. * * @param extPoint extension point to set the operation type on * @param op batch operation type or null to remove it */ public static void setBatchOperationType(ExtensionPoint extPoint, BatchOperationType op) { if (op == null) { extPoint.removeExtension(BatchOperation.class); } else { extPoint.setExtension(new BatchOperation(op)); } }
/** * Sets the value of the tag {@code <batch:id>}. * * @param extPoint extension point to put the id on * @param id the batch id or null to remove it */ public static void setBatchId(ExtensionPoint extPoint, String id) { if (id == null) { extPoint.removeExtension(BatchId.class); } else { extPoint.setExtension(new BatchId(id)); } }
/** * Sets the value of the tag {@code <batch:id>}. * * @param extPoint extension point to put the id on * @param id the batch id or null to remove it */ public static void setBatchId(ExtensionPoint extPoint, String id) { if (id == null) { extPoint.removeExtension(BatchId.class); } else { extPoint.setExtension(new BatchId(id)); } }
/** * Sets the batch operation to execute in a {@link BaseEntry}. * * @param extPoint extension point to set the operation type on * @param op batch operation type or null to remove it */ public static void setBatchOperationType(ExtensionPoint extPoint, BatchOperationType op) { if (op == null) { extPoint.removeExtension(BatchOperation.class); } else { extPoint.setExtension(new BatchOperation(op)); } }
/** * Sets the batch operation to execute in a {@link BaseEntry}. * * @param extPoint extension point to set the operation type on * @param op batch operation type or null to remove it */ public static void setBatchOperationType(ExtensionPoint extPoint, BatchOperationType op) { if (op == null) { extPoint.removeExtension(BatchOperation.class); } else { extPoint.setExtension(new BatchOperation(op)); } }
/** * Sets the geo point of the extension passed in. This will first try to * replace any existing point information. If there is no existing point, then * it will simply add the point extension. * * @param ext The extension point to add the Point to. * @param point The new point information. */ public static void setPoint(ExtensionPoint ext, Point point) { Point existing = getPointExtension(ext); if (existing != null) { Double lat = point != null ? point.getLatitude() : null; Double lon = point != null ? point.getLongitude() : null; existing.setGeoLocation(lat, lon); } else if (point != null) { ext.setExtension(point); } }
/** * Sets the geo point of the extension passed in. This will first try to * replace any existing point information. If there is no existing point, then * it will simply add the point extension. * * @param ext The extension point to add the Point to. * @param point The new point information. */ public static void setPoint(ExtensionPoint ext, Point point) { Point existing = getPointExtension(ext); if (existing != null) { Double lat = point != null ? point.getLatitude() : null; Double lon = point != null ? point.getLongitude() : null; existing.setGeoLocation(lat, lon); } else if (point != null) { ext.setExtension(point); } }
/** * Sets the geo point of the extension passed in. This will first try to * replace any existing point information. If there is no existing point, then * it will simply add the point extension. * * @param ext The extension point to add the Point to. * @param point The new point information. */ public static void setPoint(ExtensionPoint ext, Point point) { Point existing = getPointExtension(ext); if (existing != null) { Double lat = point != null ? point.getLatitude() : null; Double lon = point != null ? point.getLongitude() : null; existing.setGeoLocation(lat, lon); } else if (point != null) { ext.setExtension(point); } }
/** * Sets the geo bounding box of the extension passed in. This will first * try to replace any existing bounding box information. If there is no * existing bounding box, then it'll simply add the box extension. * * @param ext The extension point to add the Box to. * @param box The new box information. */ public static void setBox(ExtensionPoint ext, Box box) { Box existing = getBoxExtension(ext); if (existing != null) { Point lowerLeft = box != null ? box.getLowerLeft() : null; Point upperRight = box != null ? box.getUpperRight() : null; // If we have a box already, we copy the new points onto it if we can. existing.setGeoLocation(lowerLeft, upperRight); } else if (box != null) { // We don't have a box yet, so we set it directly here. We actually use // the passed-in extension in this case. ext.setExtension(box); } }
/** * Sets the geo bounding box of the extension passed in. This will first * try to replace any existing bounding box information. If there is no * existing bounding box, then it'll simply add the box extension. * * @param ext The extension point to add the Box to. * @param box The new box information. */ public static void setBox(ExtensionPoint ext, Box box) { Box existing = getBoxExtension(ext); if (existing != null) { Point lowerLeft = box != null ? box.getLowerLeft() : null; Point upperRight = box != null ? box.getUpperRight() : null; // If we have a box already, we copy the new points onto it if we can. existing.setGeoLocation(lowerLeft, upperRight); } else if (box != null) { // We don't have a box yet, so we set it directly here. We actually use // the passed-in extension in this case. ext.setExtension(box); } }
/** * Sets the geo bounding box of the extension passed in. This will first * try to replace any existing bounding box information. If there is no * existing bounding box, then it'll simply add the box extension. * * @param ext The extension point to add the Box to. * @param box The new box information. */ public static void setBox(ExtensionPoint ext, Box box) { Box existing = getBoxExtension(ext); if (existing != null) { Point lowerLeft = box != null ? box.getLowerLeft() : null; Point upperRight = box != null ? box.getUpperRight() : null; // If we have a box already, we copy the new points onto it if we can. existing.setGeoLocation(lowerLeft, upperRight); } else if (box != null) { // We don't have a box yet, so we set it directly here. We actually use // the passed-in extension in this case. ext.setExtension(box); } }