congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
CategoryOption.getCode
Code IndexAdd Tabnine to your IDE (free)

How to use
getCode
method
in
org.hisp.dhis.category.CategoryOption

Best Java code snippets using org.hisp.dhis.category.CategoryOption.getCode (Showing top 2 results out of 315)

origin: dhis2/dhis2-core

private void addExplodedCategoryAttributes( CategoryOptionCombo coc )
  throws AdxException
{
  Map<String, String> categoryAttributes = new HashMap<>();
  if ( !coc.isDefault() )
  {
    for ( Category category : coc.getCategoryCombo().getCategories() )
    {
      String categoryCode = category.getCode();
      
      if ( categoryCode == null || !XMLChar.isValidName( categoryCode ) )
      {
        throw new AdxException(
          "Category code for " + category.getName() + " is missing or invalid: " + categoryCode );
      }
      String catOptCode = category.getCategoryOption( coc ).getCode();
      
      if ( catOptCode == null || catOptCode.isEmpty() )
      {
        throw new AdxException(
          "CategoryOption code for " + category.getCategoryOption( coc ).getName() + " is missing" );
      }
      categoryAttributes.put( categoryCode, catOptCode );
    }
  }
  categoryOptionMap.put( coc.getId(), categoryAttributes );
}
origin: dhis2/dhis2-core

  break;
case CODE:
  identifier = catopt.getCode().trim();
  break;
case NAME:
org.hisp.dhis.categoryCategoryOptiongetCode

Popular methods of CategoryOption

  • getUid
  • <init>
  • getCategoryOptionCombos
  • getName
  • getCategories
  • getEndDate
  • getGroupSets
    Returns a set of category option group sets which are associated with the category option groups of
  • getGroups
  • getId
  • getStartDate
  • addCategoryOptionCombo
  • getDisplayName
  • addCategoryOptionCombo,
  • getDisplayName,
  • getOrganisationUnits,
  • includes,
  • setAutoFields,
  • setCategoryOptionCombos,
  • setCode,
  • setPublicAccess,
  • setShortName

Popular in Java

  • Updating database using SQL prepared statement
  • setScale (BigDecimal)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • requestLocationUpdates (LocationManager)
  • ObjectMapper (com.fasterxml.jackson.databind)
    ObjectMapper provides functionality for reading and writing JSON, either to and from basic POJOs (Pl
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • Collectors (java.util.stream)
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • Github Copilot alternatives
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