Skip to content

Instantly share code, notes, and snippets.

@metacoma
Created July 9, 2024 17:18
Show Gist options
  • Save metacoma/e0d8173a21f2e4a8354e5dfcefaacb55 to your computer and use it in GitHub Desktop.
Save metacoma/e0d8173a21f2e4a8354e5dfcefaacb55 to your computer and use it in GitHub Desktop.
modelina java output
> start
> ../../node_modules/.bin/ts-node --cwd ../../ ./examples/$npm_package_config_example_name/index.ts
public class TmuxPaneIoDocument {
@NotNull
@Size(min=1)
private String input;
@NotNull
@Size(min=0)
private String output;
@NotNull
@Size(min=1)
private String ps1;
public String getInput() { return this.input; }
public void setInput(String input) { this.input = input; }
public String getOutput() { return this.output; }
public void setOutput(String output) { this.output = output; }
public String getPs1() { return this.ps1; }
public void setPs1(String ps1) { this.ps1 = ps1; }
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
TmuxPaneIoDocument self = (TmuxPaneIoDocument) o;
return
Objects.equals(this.input, self.input) &&
Objects.equals(this.output, self.output) &&
Objects.equals(this.ps1, self.ps1);
}
@Override
public int hashCode() {
return Objects.hash((Object)input, (Object)output, (Object)ps1);
}
@Override
public String toString() {
return "class TmuxPaneIoDocument {\n" +
" input: " + toIndentedString(input) + "\n" +
" output: " + toIndentedString(output) + "\n" +
" ps1: " + toIndentedString(ps1) + "\n" +
"}";
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
public class IoDocument {
@NotNull
private final String type = "IoDocument";
@NotNull
@Size(min=1)
private String id;
@NotNull
@Size(min=1)
private String source;
@NotNull
@Size(min=1)
private String specversion;
@Size(min=1)
private String datacontenttype;
@Size(min=1)
private String dataschema;
@Size(min=1)
private String subject;
@Size(min=1)
private java.time.OffsetDateTime time;
private Object data;
private String dataBase64;
private Map<String, Object> additionalProperties;
public String getType() { return this.type; }
public String getId() { return this.id; }
public void setId(String id) { this.id = id; }
public String getSource() { return this.source; }
public void setSource(String source) { this.source = source; }
public String getSpecversion() { return this.specversion; }
public void setSpecversion(String specversion) { this.specversion = specversion; }
public String getDatacontenttype() { return this.datacontenttype; }
public void setDatacontenttype(String datacontenttype) { this.datacontenttype = datacontenttype; }
public String getDataschema() { return this.dataschema; }
public void setDataschema(String dataschema) { this.dataschema = dataschema; }
public String getSubject() { return this.subject; }
public void setSubject(String subject) { this.subject = subject; }
public java.time.OffsetDateTime getTime() { return this.time; }
public void setTime(java.time.OffsetDateTime time) { this.time = time; }
public Object getData() { return this.data; }
public void setData(Object data) { this.data = data; }
public String getDataBase64() { return this.dataBase64; }
public void setDataBase64(String dataBase64) { this.dataBase64 = dataBase64; }
public Map<String, Object> getAdditionalProperties() { return this.additionalProperties; }
public void setAdditionalProperties(Map<String, Object> additionalProperties) { this.additionalProperties = additionalProperties; }
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
IoDocument self = (IoDocument) o;
return
Objects.equals(this.type, self.type) &&
Objects.equals(this.id, self.id) &&
Objects.equals(this.source, self.source) &&
Objects.equals(this.specversion, self.specversion) &&
Objects.equals(this.datacontenttype, self.datacontenttype) &&
Objects.equals(this.dataschema, self.dataschema) &&
Objects.equals(this.subject, self.subject) &&
Objects.equals(this.time, self.time) &&
Objects.equals(this.data, self.data) &&
Objects.equals(this.dataBase64, self.dataBase64) &&
Objects.equals(this.additionalProperties, self.additionalProperties);
}
@Override
public int hashCode() {
return Objects.hash((Object)type, (Object)id, (Object)source, (Object)specversion, (Object)datacontenttype, (Object)dataschema, (Object)subject, (Object)time, (Object)data, (Object)dataBase64, (Object)additionalProperties);
}
@Override
public String toString() {
return "class IoDocument {\n" +
" type: " + toIndentedString(type) + "\n" +
" id: " + toIndentedString(id) + "\n" +
" source: " + toIndentedString(source) + "\n" +
" specversion: " + toIndentedString(specversion) + "\n" +
" datacontenttype: " + toIndentedString(datacontenttype) + "\n" +
" dataschema: " + toIndentedString(dataschema) + "\n" +
" subject: " + toIndentedString(subject) + "\n" +
" time: " + toIndentedString(time) + "\n" +
" data: " + toIndentedString(data) + "\n" +
" dataBase64: " + toIndentedString(dataBase64) + "\n" +
" additionalProperties: " + toIndentedString(additionalProperties) + "\n" +
"}";
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment