diff options
Diffstat (limited to 'bundles/code/org.eclipse.fx.code.editor.configuration/src-gen/org/eclipse/fx/code/editor/configuration/gson/GsonPartitionRule_MultiLineImpl.java')
-rw-r--r-- | bundles/code/org.eclipse.fx.code.editor.configuration/src-gen/org/eclipse/fx/code/editor/configuration/gson/GsonPartitionRule_MultiLineImpl.java | 96 |
1 files changed, 96 insertions, 0 deletions
diff --git a/bundles/code/org.eclipse.fx.code.editor.configuration/src-gen/org/eclipse/fx/code/editor/configuration/gson/GsonPartitionRule_MultiLineImpl.java b/bundles/code/org.eclipse.fx.code.editor.configuration/src-gen/org/eclipse/fx/code/editor/configuration/gson/GsonPartitionRule_MultiLineImpl.java new file mode 100644 index 000000000..b864ca78e --- /dev/null +++ b/bundles/code/org.eclipse.fx.code.editor.configuration/src-gen/org/eclipse/fx/code/editor/configuration/gson/GsonPartitionRule_MultiLineImpl.java @@ -0,0 +1,96 @@ +package org.eclipse.fx.code.editor.configuration.gson; + +import org.eclipse.fx.code.editor.configuration.*; +import com.google.gson.JsonObject; + +public final class GsonPartitionRule_MultiLineImpl implements GsonBase, PartitionRule_MultiLine, PartitionRule { + public GsonPartitionRule_MultiLineImpl(JsonObject jsonObject) { + this.check = jsonObject.has("check") ? GsonElementFactory.createCheck(jsonObject.getAsJsonObject("check")) : null; + this.endSeq = jsonObject.has("endSeq") ? jsonObject.get("endSeq").getAsString() : null; + this.escapedBy = jsonObject.has("escapedBy") ? jsonObject.get("escapedBy").getAsString() : null; + this.startSeq = jsonObject.has("startSeq") ? jsonObject.get("startSeq").getAsString() : null; + } + + public GsonPartitionRule_MultiLineImpl(Check check, String endSeq, String escapedBy, String startSeq) { + this.check = check; + this.endSeq = endSeq; + this.escapedBy = escapedBy; + this.startSeq = startSeq; + } + + public JsonObject toJSONObject() { + JsonObject o = new JsonObject(); + o.addProperty( "__type", "PartitionRule_MultiLine" ); + o.add( "check", getCheck() == null ? null : ((GsonBase)getCheck()).toJSONObject() ); + o.addProperty( "endSeq", getEndSeq() ); + o.addProperty( "escapedBy", getEscapedBy() ); + o.addProperty( "startSeq", getStartSeq() ); + return o; + } + + public String toString() { + return getClass().getSimpleName() + "@" + Integer.toHexString(hashCode()) + " { " + + "check : " + check == null ? null : check.getClass().getSimpleName() + "@" + Integer.toHexString(check.hashCode()) + ", " + + "endSeq : " + endSeq + ", " + + "escapedBy : " + escapedBy + ", " + + "startSeq : " + startSeq + +" }"; + } + + private final Check check; + public Check getCheck() { + return this.check; + } + + + private final String endSeq; + public String getEndSeq() { + return this.endSeq; + } + + + private final String escapedBy; + public String getEscapedBy() { + return this.escapedBy; + } + + + private final String startSeq; + public String getStartSeq() { + return this.startSeq; + } + + + public static class Builder implements PartitionRule_MultiLine.Builder { + private final EditorGModel instance; + + public Builder(EditorGModel instance) { + this.instance = instance; + } + + private Check check; + public Builder check(Check check) { + this.check = check; + return this; + } + private String endSeq; + public Builder endSeq(String endSeq) { + this.endSeq = endSeq; + return this; + } + private String escapedBy; + public Builder escapedBy(String escapedBy) { + this.escapedBy = escapedBy; + return this; + } + private String startSeq; + public Builder startSeq(String startSeq) { + this.startSeq = startSeq; + return this; + } + + public PartitionRule_MultiLine build() { + return new GsonPartitionRule_MultiLineImpl(check, endSeq, escapedBy, startSeq); + } + } +} |