Skip to content

Commit

Permalink
CAMEL-10575: regenerate SnakeYAMLDataFormatConfiguration
Browse files Browse the repository at this point in the history
  • Loading branch information
lburgazzoli committed Dec 9, 2016
1 parent 20e2622 commit dcb5a74
Showing 1 changed file with 26 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,10 @@
*/
package org.apache.camel.component.snakeyaml.springboot;

import java.util.List;
import org.apache.camel.component.snakeyaml.SnakeYAMLDataFormat;
import org.apache.camel.model.dataformat.YAMLLibrary;
import org.apache.camel.model.dataformat.YAMLTypeFilterDefinition;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
Expand Down Expand Up @@ -61,6 +63,14 @@ public class SnakeYAMLDataFormatConfiguration {
* style.
*/
private Boolean prettyFlow = false;
/**
* Allow any class to be un-marshaled
*/
private Boolean allowAnyType = false;
/**
* Set the types SnakeYAML is allowed to un-marshall
*/
private List<YAMLTypeFilterDefinition> typeFilter;

public YAMLLibrary getLibrary() {
return library;
Expand Down Expand Up @@ -126,4 +136,20 @@ public Boolean getPrettyFlow() {
public void setPrettyFlow(Boolean prettyFlow) {
this.prettyFlow = prettyFlow;
}

public Boolean getAllowAnyType() {
return allowAnyType;
}

public void setAllowAnyType(Boolean allowAnyType) {
this.allowAnyType = allowAnyType;
}

public List<YAMLTypeFilterDefinition> getTypeFilter() {
return typeFilter;
}

public void setTypeFilter(List<YAMLTypeFilterDefinition> typeFilter) {
this.typeFilter = typeFilter;
}
}

0 comments on commit dcb5a74

Please # to comment.