Skip to content

Commit

Permalink
Added missing ReadConfig autoMerge setter.
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanSweet committed Jan 26, 2023
1 parent d73748e commit 08f4f7b
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions src/com/esotericsoftware/yamlbeans/YamlConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ static public class WriteConfig {
WriteClassName writeClassName = WriteClassName.AUTO;
Quote quote = Quote.NONE;
Version version;
Map<String,String> tags;
Map<String, String> tags;
boolean flowStyle;
EmitterConfig emitterConfig = new EmitterConfig();

Expand Down Expand Up @@ -201,7 +201,7 @@ public void setVersion (Version version) {
}

/** Sets the YAML tags to output. */
public void setTags(Map<String, String> tags) {
public void setTags (Map<String, String> tags) {
this.tags = tags;
}

Expand Down Expand Up @@ -240,21 +240,21 @@ public void setQuoteChar (Quote quote) {
this.quote = quote;
}

public Quote getQuote() {
public Quote getQuote () {
return quote;
}

/** If true, the YAML output will be flow. Default is false. */
public void setFlowStyle(boolean flowStyle) {
public void setFlowStyle (boolean flowStyle) {
this.flowStyle = flowStyle;
}

public boolean isFlowStyle() {
public boolean isFlowStyle () {
return flowStyle;
}

/** If true, the YAML output will be pretty flow. Default is false. */
public void setPrettyFlow(boolean prettyFlow) {
public void setPrettyFlow (boolean prettyFlow) {
emitterConfig.setPrettyFlow(prettyFlow);
}
}
Expand Down Expand Up @@ -310,6 +310,11 @@ public void setClassTags (boolean classTags) {
this.classTags = classTags;
}

/** When false, the merge key (<<) is not used to merge values into the current map. Default is true. */
public void setAutoMerge (boolean autoMerge) {
this.autoMerge = autoMerge;
}

/** When true, if the type for a scalar value is unknown and it looks like a number, it is read as a double or long. When
* false, if the type for a scalar value is unknown it is always read a string. Default is true. */
public void setGuessNumberTypes (boolean guessNumberTypes) {
Expand All @@ -335,7 +340,7 @@ public static enum Quote {
this.c = c;
}

public char getStyle() {
public char getStyle () {
return c;
}
}
Expand Down

0 comments on commit 08f4f7b

Please sign in to comment.