Java Code Examples for org.jclouds.compute.domain.Image#getName()
The following examples show how to use
org.jclouds.compute.domain.Image#getName() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: BrooklynImageChooser.java From brooklyn-server with Apache License 2.0 | 4 votes |
protected static boolean imageNameContains(Image img, String pattern) { if (img.getName()==null) return false; return img.getName().contains(pattern); }
Example 2
Source File: BrooklynImageChooser.java From brooklyn-server with Apache License 2.0 | 4 votes |
protected static boolean imageNameContainsCaseInsensitive(Image img, String pattern) { if (img.getName()==null) return false; return img.getName().toLowerCase().contains(pattern.toLowerCase()); }
Example 3
Source File: BrooklynImageChooser.java From brooklyn-server with Apache License 2.0 | 4 votes |
protected static boolean imageNameContainsWordCaseInsensitive(Image img, String pattern) { if (img.getName()==null) return false; return img.getName().toLowerCase().matches("(.*[^a-z])?"+pattern.toLowerCase()+"([^a-z].*)?"); }