ProgramIndicator extends BaseDataDimensionalItemObject implements MetadataObject { public boolean hasFilter() { return filter != null; } ProgramIndicator(); boolean hasFilter(); boolean hasDecimals(); boolean hasZeroDecimals(); AggregationType getAggregationTypeFallback(); void addProgramIndicatorGroup( ProgramIndicatorGroup group ); void removeIndicatorGroup( ProgramIndicatorGroup group ); Boolean hasNonDefaultBoundaries(); boolean hasAnalyticsVariables(); Boolean hasEventBoundary(); AnalyticsPeriodBoundary getEndEventBoundary(); AnalyticsPeriodBoundary getStartEventBoundary(); boolean hasEventDateCohortBoundary(); Map<String, Set<AnalyticsPeriodBoundary>> getEventDateCohortBoundaryByProgramStage(); @Override DimensionItemType getDimensionItemType(); @JsonProperty @JsonSerialize( as = BaseIdentifiableObject.class ) @JacksonXmlProperty( namespace = DxfNamespaces.DXF_2_0 ) Program getProgram(); void setProgram( Program program ); @JsonProperty @JacksonXmlProperty( namespace = DxfNamespaces.DXF_2_0 ) String getExpression(); void setExpression( String expression ); @JsonProperty @JacksonXmlProperty( namespace = DxfNamespaces.DXF_2_0 ) String getFilter(); void setFilter( String filter ); @JsonProperty @JacksonXmlProperty( namespace = DxfNamespaces.DXF_2_0 ) Integer getDecimals(); void setDecimals( Integer decimals ); @JsonProperty @JacksonXmlProperty( namespace = DxfNamespaces.DXF_2_0 ) Boolean getDisplayInForm(); void setDisplayInForm( Boolean displayInForm ); @JsonProperty( "programIndicatorGroups" ) @JsonSerialize( contentAs = BaseIdentifiableObject.class ) @JacksonXmlElementWrapper( localName = "programIndicatorGroups", namespace = DxfNamespaces.DXF_2_0 ) @JacksonXmlProperty( localName = "programIndicatorGroups", namespace = DxfNamespaces.DXF_2_0 ) Set<ProgramIndicatorGroup> getGroups(); void setGroups( Set<ProgramIndicatorGroup> groups ); @JsonProperty @JacksonXmlProperty( namespace = DxfNamespaces.DXF_2_0 ) AnalyticsType getAnalyticsType(); void setAnalyticsType( AnalyticsType analyticsType ); @JsonProperty @JacksonXmlElementWrapper( localName = "analyticsPeriodBoundaries", namespace = DxfNamespaces.DXF_2_0 ) @JacksonXmlProperty( localName = "analyticsPeriodBoundary", namespace = DxfNamespaces.DXF_2_0 ) Set<AnalyticsPeriodBoundary> getAnalyticsPeriodBoundaries(); void setAnalyticsPeriodBoundaries( Set<AnalyticsPeriodBoundary> analyticsPeriodBoundaries ); @JsonProperty @JacksonXmlProperty( namespace = DxfNamespaces.DXF_2_0 ) ObjectStyle getStyle(); void setStyle( ObjectStyle style ); @JsonProperty @JacksonXmlProperty( namespace = DxfNamespaces.DXF_2_0 ) String getFormName(); void setFormName( String formName ); static final String DB_SEPARATOR_ID; static final String SEPARATOR_ID; static final String KEY_DATAELEMENT; static final String KEY_ATTRIBUTE; static final String KEY_PROGRAM_VARIABLE; static final String KEY_CONSTANT; static final String VAR_ENROLLMENT_DATE; static final String VAR_INCIDENT_DATE; static final String VALID; static final String EXPRESSION_NOT_VALID; }
@Test public void testHasFilter() { ProgramIndicator pi = new ProgramIndicator(); assertFalse( pi.hasFilter() ); pi.setFilter( "true" ); assertTrue( pi.hasFilter() ); }