Tabnine Logo
LookupTableRowType.getValue
Code IndexAdd Tabnine to your IDE (free)

How to use
getValue
method
in
com.evolveum.midpoint.xml.ns._public.common.common_3.LookupTableRowType

Best Java code snippets using com.evolveum.midpoint.xml.ns._public.common.common_3.LookupTableRowType.getValue (Showing top 4 results out of 315)

origin: Evolveum/midpoint

private void checkLookupTable(PrismObject<LookupTableType> lookupTable, String name, OperationResult subresult) {
  checkObjectPropertyPolyString(lookupTable, LookupTableType.F_NAME, subresult, name);
  checkObjectProperty(lookupTable, LookupTableType.F_DESCRIPTION, subresult, SelfTestData.POLICIJA);
  LookupTableType lookupTableType = lookupTable.asObjectable();
  assertEquals("Unexpected number of rows", 1, lookupTableType.getRow().size(), subresult);
  LookupTableRowType rowType = lookupTableType.getRow().get(0);
  assertEquals("Unexpected key value", INSANE_NATIONAL_STRING, rowType.getKey(), subresult);
  assertEquals("Unexpected 'value' value", INSANE_NATIONAL_STRING, rowType.getValue(), subresult);
  assertPolyStringType("Unexpected label value", INSANE_NATIONAL_STRING, rowType.getLabel(), subresult);
}
origin: Evolveum/midpoint

private static RLookupTableRow toRepo(LookupTableRowType row) throws SchemaException {
  RLookupTableRow rRow = new RLookupTableRow();
  rRow.setId(RUtil.toInteger(row.getId()));
  if (row.getKey() == null) {
    throw new SchemaException("Attempt to insert a row with no key");
  }
  rRow.setKey(row.getKey());
  rRow.setLabel(RPolyString.copyFromJAXB(row.getLabel()));
  rRow.setLastChangeTimestamp(row.getLastChangeTimestamp());
  if (rRow.getLastChangeTimestamp() == null) {
    XMLGregorianCalendar cal = XMLGregorianCalendarType.asXMLGregorianCalendar(new Date());
    rRow.setLastChangeTimestamp(cal);
    row.setLastChangeTimestamp(cal);
  }
  rRow.setValue(row.getValue());
  return rRow;
}
origin: Evolveum/midpoint

private void assertRow(PrismContainerValue<LookupTableRowType> tableContainerValue, String key, String value, PolyStringType label, XMLGregorianCalendar lastChangeTimestamp) {
  LookupTableRowType row = tableContainerValue.asContainerable();
  assertEquals("wrong key", key, row.getKey());
  assertEquals("wrong value", value, row.getValue());
  assertEquals("wrong label", label, row.getLabel());
  assertEquals("wrong lastChangeTimestamp", lastChangeTimestamp, row.getLastChangeTimestamp());
}
origin: Evolveum/midpoint

private void assertLookupRow(PrismContainer<LookupTableRowType> tableContainer, String key, String value,
    String label) {
  for (PrismContainerValue<LookupTableRowType> row: tableContainer.getValues()) {
    LookupTableRowType rowType = row.asContainerable();
    if (key.equals(rowType.getKey())) {
      assertEquals("Wrong value for key "+key, value, rowType.getValue());
      if (label == null) {
        assertNull("Unexpected label for key "+key+": "+rowType.getLabel(), rowType.getLabel());
      } else {
        assertEquals("Wrong label for key "+key, PrismTestUtil.createPolyStringType(label), rowType.getLabel());
      }
      return;
    }
  }
  AssertJUnit.fail("Row with key '"+key+"' was not found in lookup table");
}
com.evolveum.midpoint.xml.ns._public.common.common_3LookupTableRowTypegetValue

Popular methods of LookupTableRowType

    Popular in Java

    • Running tasks concurrently on multiple threads
    • compareTo (BigDecimal)
    • notifyDataSetChanged (ArrayAdapter)
    • scheduleAtFixedRate (ScheduledExecutorService)
    • Point (java.awt)
      A point representing a location in (x,y) coordinate space, specified in integer precision.
    • SortedSet (java.util)
      SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
    • Filter (javax.servlet)
      A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
    • JFileChooser (javax.swing)
    • JList (javax.swing)
    • LogFactory (org.apache.commons.logging)
      Factory for creating Log instances, with discovery and configuration features similar to that employ
    • Top 12 Jupyter Notebook extensions
    Tabnine Logo
    • Products

      Search for Java codeSearch for JavaScript code
    • IDE Plugins

      IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
    • Company

      About UsContact UsCareers
    • Resources

      FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
    Get Tabnine for your IDE now