@Test public void testGetPipelineName() throws ResourceInitializationException { assertEquals("unknown", UimaUtils.getPipelineName(UimaContextFactory.createUimaContext())); assertEquals( "unknown", UimaUtils.getPipelineName( UimaContextFactory.createUimaContext(PipelineBuilder.PIPELINE_NAME, true))); assertEquals( "default", UimaUtils.getPipelineName( UimaContextFactory.createUimaContext(PipelineBuilder.PIPELINE_NAME, "default"))); }
public static String getPipelineName(UimaContext context) { Object pipelineNameValue = context.getConfigParameterValue(PipelineBuilder.PIPELINE_NAME); String pipelineName; if (pipelineNameValue == null || !(pipelineNameValue instanceof String)) { pipelineName = "unknown"; } else { pipelineName = (String) pipelineNameValue; } return pipelineName; }
UimaUtils { public static String getPipelineName(UimaContext context) { Object pipelineNameValue = context.getConfigParameterValue(PipelineBuilder.PIPELINE_NAME); String pipelineName; if (pipelineNameValue == null || !(pipelineNameValue instanceof String)) { pipelineName = "unknown"; } else { pipelineName = (String) pipelineNameValue; } return pipelineName; } }
UimaUtils { public static String getPipelineName(UimaContext context) { Object pipelineNameValue = context.getConfigParameterValue(PipelineBuilder.PIPELINE_NAME); String pipelineName; if (pipelineNameValue == null || !(pipelineNameValue instanceof String)) { pipelineName = "unknown"; } else { pipelineName = (String) pipelineNameValue; } return pipelineName; } private  UimaUtils(); }
UimaUtils { public static String getPipelineName(UimaContext context) { Object pipelineNameValue = context.getConfigParameterValue(PipelineBuilder.PIPELINE_NAME); String pipelineName; if (pipelineNameValue == null || !(pipelineNameValue instanceof String)) { pipelineName = "unknown"; } else { pipelineName = (String) pipelineNameValue; } return pipelineName; } private  UimaUtils(); static String getPipelineName(UimaContext context); static boolean isMergeDistinctEntities(UimaContext context); static String makePipelineSpecificName(String pipelineName, Class<?> clazz); }
UimaUtils { public static String getPipelineName(UimaContext context) { Object pipelineNameValue = context.getConfigParameterValue(PipelineBuilder.PIPELINE_NAME); String pipelineName; if (pipelineNameValue == null || !(pipelineNameValue instanceof String)) { pipelineName = "unknown"; } else { pipelineName = (String) pipelineNameValue; } return pipelineName; } private  UimaUtils(); static String getPipelineName(UimaContext context); static boolean isMergeDistinctEntities(UimaContext context); static String makePipelineSpecificName(String pipelineName, Class<?> clazz);  }