com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlElementWrapper Java Examples

The following examples show how to use com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlElementWrapper. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: UserAuthorityGroup.java    From dhis2-core with BSD 3-Clause "New" or "Revised" License 6 votes vote down vote up
@JsonProperty
@JsonSerialize( contentAs = BaseIdentifiableObject.class )
@JacksonXmlElementWrapper( localName = "users", namespace = DxfNamespaces.DXF_2_0 )
@JacksonXmlProperty( localName = "userObject", namespace = DxfNamespaces.DXF_2_0 )
public List<User> getUsers()
{
    List<User> users = new ArrayList<>();

    for ( UserCredentials userCredentials : members )
    {
        if ( userCredentials.getUserInfo() != null )
        {
            users.add( userCredentials.getUserInfo() );
        }
    }

    return users;
}
 
Example #2
Source File: IdentifiableObjects.java    From dhis2-core with BSD 3-Clause "New" or "Revised" License 6 votes vote down vote up
@JsonProperty
@JacksonXmlElementWrapper( localName = "deletions", useWrapping = false, namespace = DxfNamespaces.DXF_2_0 )
@JacksonXmlProperty( localName = "deletion", namespace = DxfNamespaces.DXF_2_0 )
public List<BaseIdentifiableObject> getDeletions()
{
    return deletions;
}
 
Example #3
Source File: ObjectReport.java    From dhis2-core with BSD 3-Clause "New" or "Revised" License 6 votes vote down vote up
@JsonProperty
@JacksonXmlElementWrapper( localName = "errorReports", namespace = DxfNamespaces.DXF_2_0 )
@JacksonXmlProperty( localName = "errorReport", namespace = DxfNamespaces.DXF_2_0 )
public void setErrorReports( List<ErrorReport> errorReports )
{
    if ( errorReports != null )
    {
        errorReports.forEach( er -> {
            List<ErrorReport> errorReportForCode = errorReportsByCode.get( er.getErrorCode() );
            if ( errorReportForCode == null )
            {
                errorReportForCode = new ArrayList<>();
            }
            errorReportForCode.add( er );
            errorReportsByCode.put( er.getErrorCode(), errorReportForCode );
        } );
    }
}
 
Example #4
Source File: EventReport.java    From dhis2-core with BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
@JsonProperty
@JacksonXmlElementWrapper( localName = "columnDimensions", namespace = DxfNamespaces.DXF_2_0 )
@JacksonXmlProperty( localName = "columnDimension", namespace = DxfNamespaces.DXF_2_0 )
public List<String> getColumnDimensions()
{
    return columnDimensions;
}
 
Example #5
Source File: Program.java    From dhis2-core with BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
@JsonProperty( "programStages" )
@JsonSerialize( contentAs = BaseIdentifiableObject.class )
@JacksonXmlElementWrapper( localName = "programStages", namespace = DxfNamespaces.DXF_2_0 )
@JacksonXmlProperty( localName = "programStage", namespace = DxfNamespaces.DXF_2_0 )
public Set<ProgramStage> getProgramStages()
{
    return programStages;
}
 
Example #6
Source File: TrackedEntityInstance.java    From dhis2-core with BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
@JsonProperty
@JacksonXmlElementWrapper( localName = "trackedEntityType", namespace = DxfNamespaces.DXF_2_0 )
@JacksonXmlProperty( localName = "trackedEntityType", namespace = DxfNamespaces.DXF_2_0 )
public TrackedEntityType getTrackedEntityType()
{
    return trackedEntityType;
}
 
Example #7
Source File: Category.java    From dhis2-core with BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
@JsonProperty
@JsonSerialize( contentAs = BaseIdentifiableObject.class )
@JacksonXmlElementWrapper( localName = "categoryCombos", namespace = DxfNamespaces.DXF_2_0 )
@JacksonXmlProperty( localName = "categoryCombo", namespace = DxfNamespaces.DXF_2_0 )
public List<CategoryCombo> getCategoryCombos()
{
    return categoryCombos;
}
 
Example #8
Source File: Metadata.java    From dhis2-core with BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
@JsonProperty
@JacksonXmlElementWrapper( localName = "validationRules", namespace = DxfNamespaces.DXF_2_0 )
@JacksonXmlProperty( localName = "validationRule", namespace = DxfNamespaces.DXF_2_0 )
public List<ValidationRule> getValidationRules()
{
    return validationRules;
}
 
Example #9
Source File: ProgramStage.java    From dhis2-core with BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
@JsonProperty
@JsonSerialize( contentAs = BaseIdentifiableObject.class )
@JacksonXmlElementWrapper( localName = "programStageDataElements", namespace = DxfNamespaces.DXF_2_0 )
@JacksonXmlProperty( localName = "programStageDataElement", namespace = DxfNamespaces.DXF_2_0 )
public Set<ProgramStageDataElement> getProgramStageDataElements()
{
    return programStageDataElements;
}
 
Example #10
Source File: ProgramStage.java    From dhis2-core with BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
@JsonProperty( "programStageSections" )
@JsonSerialize( contentAs = BaseIdentifiableObject.class )
@JacksonXmlElementWrapper( localName = "programStageSections", namespace = DxfNamespaces.DXF_2_0 )
@JacksonXmlProperty( localName = "programStageSection", namespace = DxfNamespaces.DXF_2_0 )
public Set<ProgramStageSection> getProgramStageSections()
{
    return programStageSections;
}
 
Example #11
Source File: DashboardSearchResult.java    From dhis2-core with BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
@JsonProperty( value = "visualizations" )
@JsonSerialize( contentAs = SimpleVisualizationView.class )
@JacksonXmlElementWrapper( localName = "visualizations", namespace = DXF_2_0 )
@JacksonXmlProperty( localName = "visualization", namespace = DXF_2_0 )
public List<SimpleVisualizationView> getVisualizations()
{
    return visualizations;
}
 
Example #12
Source File: ReportTable.java    From dhis2-core with BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
@JsonProperty
@JacksonXmlElementWrapper( localName = "rowDimensions", namespace = DxfNamespaces.DXF_2_0 )
@JacksonXmlProperty( localName = "rowDimension", namespace = DxfNamespaces.DXF_2_0 )
public List<String> getRowDimensions()
{
    return rowDimensions;
}
 
Example #13
Source File: Metadata.java    From dhis2-core with BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
@JsonProperty
@JacksonXmlElementWrapper( localName = "programs", namespace = DxfNamespaces.DXF_2_0 )
@JacksonXmlProperty( localName = "program", namespace = DxfNamespaces.DXF_2_0 )
public List<Program> getPrograms()
{
    return programs;
}
 
Example #14
Source File: DataSet.java    From dhis2-core with BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
@JsonProperty
@JacksonXmlElementWrapper( localName = "compulsoryDataElementOperands", namespace = DxfNamespaces.DXF_2_0 )
@JacksonXmlProperty( localName = "compulsoryDataElementOperand", namespace = DxfNamespaces.DXF_2_0 )
public Set<DataElementOperand> getCompulsoryDataElementOperands()
{
    return compulsoryDataElementOperands;
}
 
Example #15
Source File: BaseAnalyticalObject.java    From dhis2-core with BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
@JsonProperty
@JacksonXmlElementWrapper( localName = "categoryOptionGroupSetDimensions", namespace = DxfNamespaces.DXF_2_0 )
@JacksonXmlProperty( localName = "categoryOptionGroupSetDimension", namespace = DxfNamespaces.DXF_2_0 )
public List<CategoryOptionGroupSetDimension> getCategoryOptionGroupSetDimensions()
{
    return categoryOptionGroupSetDimensions;
}
 
Example #16
Source File: Metadata.java    From dhis2-core with BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
@JsonProperty
@JacksonXmlElementWrapper( localName = "programRuleActions", namespace = DxfNamespaces.DXF_2_0 )
@JacksonXmlProperty( localName = "programRuleAction", namespace = DxfNamespaces.DXF_2_0 )
public List<ProgramRuleAction> getProgramRuleActions()
{
    return programRuleActions;
}
 
Example #17
Source File: DashboardSearchResult.java    From dhis2-core with BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
@JsonProperty( value = "reportTables" )
@JsonSerialize( contentAs = BaseIdentifiableObject.class )
@JacksonXmlElementWrapper( localName = "reportTables", namespace = DXF_2_0 )
@JacksonXmlProperty( localName = "reportTable", namespace = DXF_2_0 )
public List<Visualization> getReportTables()
{
    return reportTables;
}
 
Example #18
Source File: Metadata.java    From dhis2-core with BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
@JsonProperty
@JacksonXmlElementWrapper( localName = "charts", namespace = DxfNamespaces.DXF_2_0 )
@JacksonXmlProperty( localName = "chart", namespace = DxfNamespaces.DXF_2_0 )
public List<Chart> getCharts()
{
    return charts;
}
 
Example #19
Source File: Metadata.java    From dhis2-core with BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
@JsonProperty
@JacksonXmlElementWrapper( localName = "trackedEntityTypes", namespace = DxfNamespaces.DXF_2_0 )
@JacksonXmlProperty( localName = "trackedEntityType", namespace = DxfNamespaces.DXF_2_0 )
public List<TrackedEntityType> getTrackedEntityTypes()
{
    return trackedEntityTypes;
}
 
Example #20
Source File: ValidationSummary.java    From dhis2-core with BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
@JsonProperty
@JacksonXmlElementWrapper( localName = "validationRuleViolations", namespace = DxfNamespaces.DXF_2_0 )
@JacksonXmlProperty( localName = "validationRuleViolation", namespace = DxfNamespaces.DXF_2_0 )
public List<ValidationResult> getValidationRuleViolations()
{
    return validationRuleViolations;
}
 
Example #21
Source File: DataSet.java    From dhis2-core with BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
@JsonProperty
@JacksonXmlElementWrapper( localName = "dataInputPeriods", namespace = DxfNamespaces.DXF_2_0 )
@JacksonXmlProperty( localName = "dataInputPeriods", namespace = DxfNamespaces.DXF_2_0 )
public Set<DataInputPeriod> getDataInputPeriods()
{
    return dataInputPeriods;
}
 
Example #22
Source File: OptionGroup.java    From dhis2-core with BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
@JsonProperty( "options" )
@JsonSerialize( contentAs = BaseIdentifiableObject.class )
@JacksonXmlElementWrapper( localName = "options", namespace = DxfNamespaces.DXF_2_0 )
@JacksonXmlProperty( localName = "option", namespace = DxfNamespaces.DXF_2_0 )
public Set<Option> getMembers()
{
    return members;
}
 
Example #23
Source File: Metadata.java    From dhis2-core with BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
@JsonProperty
@JacksonXmlElementWrapper( localName = "indicatorTypes", namespace = DxfNamespaces.DXF_2_0 )
@JacksonXmlProperty( localName = "indicatorType", namespace = DxfNamespaces.DXF_2_0 )
public List<IndicatorType> getIndicatorTypes()
{
    return indicatorTypes;
}
 
Example #24
Source File: Interpretation.java    From dhis2-core with BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
@JsonProperty( "mentions" )
@JacksonXmlElementWrapper( localName = "mentions", namespace = DXF_2_0 )
@JacksonXmlProperty( localName = "mentions", namespace = DXF_2_0 )
public List<Mention> getMentions()
{
    return mentions;
}
 
Example #25
Source File: Metadata.java    From dhis2-core with BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
@JsonProperty
@JacksonXmlElementWrapper( localName = "dimensions", namespace = DxfNamespaces.DXF_2_0 )
@JacksonXmlProperty( localName = "dimension", namespace = DxfNamespaces.DXF_2_0 )
public List<DimensionalObject> getDimensions()
{
    return dimensions;
}
 
Example #26
Source File: DashboardSearchResult.java    From dhis2-core with BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
@JsonProperty( value = "charts" )
@JsonSerialize( contentAs = BaseIdentifiableObject.class )
@JacksonXmlElementWrapper( localName = "charts", namespace = DXF_2_0 )
@JacksonXmlProperty( localName = "chart", namespace = DXF_2_0 )
public List<Visualization> getCharts()
{
    return charts;
}
 
Example #27
Source File: Interpretation.java    From dhis2-core with BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
@JsonProperty
@JacksonXmlElementWrapper( localName = "comments", namespace = DXF_2_0 )
@JacksonXmlProperty( localName = "comment", namespace = DXF_2_0 )
public List<InterpretationComment> getComments()
{
    return comments;
}
 
Example #28
Source File: ProgramInstance.java    From dhis2-core with BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
@JsonProperty
@JacksonXmlElementWrapper( localName = "relationshipItems", namespace = DxfNamespaces.DXF_2_0 )
@JacksonXmlProperty( localName = "relationshipItem", namespace = DxfNamespaces.DXF_2_0 )
public Set<RelationshipItem> getRelationshipItems()
{
    return relationshipItems;
}
 
Example #29
Source File: DashboardSearchResult.java    From dhis2-core with BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
@JsonProperty( value = "eventCharts" )
@JsonSerialize( contentAs = BaseIdentifiableObject.class )
@JacksonXmlElementWrapper( localName = "eventCharts", namespace = DXF_2_0 )
@JacksonXmlProperty( localName = "eventChart", namespace = DXF_2_0 )
public List<EventChart> getEventCharts()
{
    return eventCharts;
}
 
Example #30
Source File: Metadata.java    From dhis2-core with BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
@JsonProperty
@JacksonXmlElementWrapper( localName = "categoryCombos", namespace = DxfNamespaces.DXF_2_0 )
@JacksonXmlProperty( localName = "categoryCombo", namespace = DxfNamespaces.DXF_2_0 )
public List<CategoryCombo> getCategoryCombos()
{
    return categoryCombos;
}