@Override public K getKey(final Object value) { return decorated().getKey(value); }
/** * Gets the index in the actual PdfExtract string content for a PdfExtractLine index. * PdfExtract string content does not include draw operations in the index counting. */ public int getStringIndex(int pdfExtractLine) { return stringPositionMap.getKey(pdfExtractLine); } }
public Integer getNodeKey(ITracerObject node) { return traceTreeCache.getKey(node); } }
public static String getLinuxWebContainerByRuntimeStack(RuntimeStack runtimeStack) { return runtimeStackMap.getKey(runtimeStack); }
public static String getPricingTierStringByPricingTierObject(PricingTier pricingTier) { return pricingTierBidiMap.getKey(pricingTier); } }
public static String getPricingTierStringByPricingTierObject(PricingTier pricingTier) { return pricingTierBidiMap.getKey(pricingTier); } }
public Integer getNodeKey(ITracerObject node) { return traceTreeCache.getKey(node); } }
/** * Get the corresponding component class given the long or short name. * * @param componentName The long or short name of the component. * @return The class of the component. */ public Class<? extends Component> getComponentClass(String componentName) { // lookup by long name Class<? extends Component> componentClass = componentNames.getKey(componentName); // lookup by short name if(componentClass == null) { componentClass = componentNamesShort.getKey(componentName); } return componentClass; }
@Override public int getRowId(Object primaryKeyRowValue) { if(!pk_name.isEmpty()) { return rowPk.getKey(primaryKeyRowValue); } else { throw new IllegalStateException("The RowSet has not been initialised"); } }
private String xApiVerbToCaliperAction(String xapiVerbId) { Action caliperAction = verbActionMap.getKey(xapiVerbId); if (caliperAction == null) { return xapiVerbId; } return caliperAction.getValue(); }
@Override public String getColumnName(int i) throws SQLException { if(cachedColumnNames == null) { cacheColumnNames(); } return cachedColumnNames.getKey(i); }
@Override public String getColumnName(int i) throws SQLException { if(cachedColumnNames == null) { cacheColumnNames(); } return cachedColumnNames.getKey(i); }
private String xapiObjectTypeToCaliperEntityType(String xapiType) { Type caliperType = objectEntityMap.getKey(xapiType); if (caliperType == null) { return xapiType; } return caliperType.getValue(); }
/** * * @param tagName * @return The TagValue object for the given name, or null if there is no such tag. */ public TagValue getTagValue(String tagName){ Integer x = this.tagNameMappings.getKey(tagName); if(x == null) return null; return this.getTagValue(x); }
private String xApiVerbToCaliperAction(String xapiVerbId) { Action caliperAction = verbActionMap.getKey(xapiVerbId); if (caliperAction == null) { return xapiVerbId; } return caliperAction.getValue(); }
private String xapiObjectTypeToCaliperEntityType(String xapiType) { if (StringUtils.isBlank(xapiType)) { return EntityType.DIGITAL_RESOURCE.getValue(); } Type caliperType = objectEntityMap.getKey(xapiType); if (caliperType == null) { return xapiType; } return caliperType.getValue(); }
@Override public String undecorate(Object decoratedValue) { String result = cache.getKey(decoratedValue); if (result == null && decoratedValue != null) { if (decoratedValue instanceof Month) { result = "Month" + SEP + ((Month)decoratedValue).getMonthNumber(); } else if (decoratedValue instanceof TimeStep) { result = "TimeStep" + SEP + ((TimeStep)decoratedValue).getStep(); } else if (decoratedValue instanceof TopiaEntity) { result = ((TopiaEntity)decoratedValue).getTopiaId() + SEP + decoratedValue; } else { result = String.valueOf(decoratedValue); } // on retrouve souvent les memes semantiques dans les matrices // pour minimiser les chaines en memoire, on prend la representation // interne avant de l'utiliser comme cle. result = result.intern(); cache.put(result, decoratedValue); } return result; }
private String xapiToCaliperType(Statement statement) { // default to event String type = EventType.EVENT.getValue(); // change if there is something more specific XApiVerb xapiVerb = statement.getVerb(); if (xapiVerb != null) { String verbId = xapiVerb.getId(); Action caliperAction = verbActionMap.getKey(verbId); EventType eventType = actionEventMap.get(caliperAction); if (eventType != null) { type = eventType.getValue(); } } return type; }
private String xapiToCaliperType(Statement statement) { // default to event String type = EventType.EVENT.getValue(); // change if there is something more specific XApiVerb xapiVerb = statement.getVerb(); if (xapiVerb != null) { String verbId = xapiVerb.getId(); Action caliperAction = verbActionMap.getKey(verbId); EventType eventType = actionEventMap.get(caliperAction); if (eventType != null) { type = eventType.getValue(); } } return type; }
Main.this.set("coaps://" + Main.this.ip + "//" + DEVICES + "/" + id2device.getKey(entityName), payload); break; case "mood": String moodName = message.toString(); int roomID = id2room.getKey(entityName); Integer moodID = roomID2moods.get(roomID).getKey(moodName); if (moodID != null) { json.put(SCENE_ID, moodID); Main.this.set("coaps://" + Main.this.ip + "//" + GROUPS + "/" + id2room.getKey(entityName), payload); break;