/** * Returns the mapping for the given resource type.<p> * * @param resourceType the resource type name to check * @return the mapping or null, if no mapping is specified */ public String getMappingForResourceType(String resourceType) { String[] resourceTypeParams = getResourceTypes().get(resourceType); if (resourceTypeParams == null) { return null; } else { return resourceTypeParams[1]; } }
/** * Returns the mapping for the given resource type.<p> * * @param resourceType the resource type name to check * @return the mapping or null, if no mapping is specified */ public String getMappingForResourceType(String resourceType) { String[] resourceTypeParams = (String[])getResourceTypes().get(resourceType); if (resourceTypeParams == null) { return null; } else { return resourceTypeParams[1]; } }
/** * Returns the ranking value for the given resource type.<p> * * @param resourceType the current resource type * @return the ranking (the higher the better) */ public float getRankingForResourceType(String resourceType) { String[] resourceTypeParams = getResourceTypes().get(resourceType); if (resourceTypeParams == null) { return -1.0f; } else { return Float.parseFloat(resourceTypeParams[0]); } }
/** * Returns the ranking value for the given resource type.<p> * * @param resourceType the current resource type * @return the ranking (the higher the better) */ public float getRankingForResourceType(String resourceType) { String[] resourceTypeParams = (String[])getResourceTypes().get(resourceType); if (resourceTypeParams == null) { return -1.0f; } else { return Float.parseFloat(resourceTypeParams[0]); } }
CmsWorkplaceEditorConfiguration currentConfig = (CmsWorkplaceEditorConfiguration)i.next(); Iterator k = currentConfig.getResourceTypes().keySet().iterator(); while (k.hasNext()) {
CmsWorkplaceEditorConfiguration currentConfig = i.next(); Iterator<String> k = currentConfig.getResourceTypes().keySet().iterator(); while (k.hasNext()) {