Tabnine Logo
ValueType.isText
Code IndexAdd Tabnine to your IDE (free)

How to use
isText
method
in
org.hisp.dhis.common.ValueType

Best Java code snippets using org.hisp.dhis.common.ValueType.isText (Showing top 5 results out of 315)

origin: dhis2/dhis2-core

public boolean isText()
{
  return valueType.isText();
}
origin: dhis2/dhis2-core

private RuleValueType toMappedValueType( ProgramRuleVariable programRuleVariable )
{
  ValueType valueType = VALUE_TYPE_MAPPER.getOrDefault( programRuleVariable.getSourceType(), prv -> ValueType.TEXT ).apply( programRuleVariable );
  if ( valueType.isBoolean() )
  {
    return RuleValueType.BOOLEAN;
  }
  if ( valueType.isText() )
  {
    return RuleValueType.TEXT;
  }
  if ( valueType.isNumeric() )
  {
    return RuleValueType.NUMERIC;
  }
  return RuleValueType.TEXT;
}
origin: dhis2/dhis2-core

/**
 * Creates a mapping between data type and data element for the given data
 * elements.
 *
 * @param dataElements list of data elements.
 */
public static ListMap<DataType, DimensionalItemObject> getDataTypeDataElementMap( List<DimensionalItemObject> dataElements )
{
  ListMap<DataType, DimensionalItemObject> map = new ListMap<>();
  for ( DimensionalItemObject element : dataElements )
  {
    DataElement dataElement = (DataElement) element;
    ValueType valueType = dataElement.getValueType();
    // Both text and date types are recognized as DataType.TEXT
    DataType dataType = ( valueType.isText() || valueType.isDate() ) ? DataType.TEXT : DataType.NUMERIC;
    map.putValue( dataType, dataElement );
  }
  return map;
}
origin: dhis2/dhis2-core

if ( valueType.isText() || valueType.isNumeric() || ValueType.USERNAME == valueType )
origin: dhis2/dhis2-core

else if ( valueType.isText() || valueType.isNumeric() || ValueType.USERNAME == valueType )
org.hisp.dhis.commonValueTypeisText

Popular methods of ValueType

  • isNumeric
    Includes integer and decimal types.
  • isFile
  • isBoolean
  • isDate
  • isInteger
  • equals
  • toString
  • getJavaClass
  • hashCode
  • isAggregateable
  • isDecimal
  • isGeo
  • isDecimal,
  • isGeo,
  • isOrganisationUnit,
  • name,
  • valueOf

Popular in Java

  • Updating database using SQL prepared statement
  • scheduleAtFixedRate (ScheduledExecutorService)
  • setScale (BigDecimal)
  • onCreateOptionsMenu (Activity)
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • Iterator (java.util)
    An iterator over a sequence of objects, such as a collection.If a collection has been changed since
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • JButton (javax.swing)
  • Runner (org.openjdk.jmh.runner)
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • Best plugins for Eclipse
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