All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jsonddl.model.PropertyImpl Maven / Gradle / Ivy

package org.jsonddl.model;
@javax.annotation.Generated(value="org.jsonddl.generator.Generator", date="2011-11-18T23:32:13")
class PropertyImpl implements org.jsonddl.impl.Traversable, Property {
protected PropertyImpl() {}
public Class getDdlObjectType() { return Property.class;}
java.lang.String comment;
public java.lang.String getComment() {return comment;}
java.lang.String name;
public java.lang.String getName() {return name;}
Type type;
public Type getType() {return type;}
public Property accept(org.jsonddl.JsonDdlVisitor visitor) {
return new org.jsonddl.impl.ContextImpl.ObjectContext.Builder().withValue(this).withKind(org.jsonddl.model.Kind.DDL).build().traverse(visitor);
}
public Property.Builder builder() { return newInstance().from(this); }
public Property.Builder newInstance() { return new Property.Builder(); }
public java.util.Map toJsonObject() { return org.jsonddl.impl.JsonMapVisitor.toJsonObject(this); }
public Property traverse(org.jsonddl.JsonDdlVisitor visitor) {
new org.jsonddl.impl.ContextImpl.ValueContext.Builder()
.withKind(org.jsonddl.model.Kind.STRING)
.withLeafType(java.lang.String.class)
.withMutability(false)
.withProperty("comment")
.withValue(this.comment)
.build().traverse(visitor);
new org.jsonddl.impl.ContextImpl.ValueContext.Builder()
.withKind(org.jsonddl.model.Kind.STRING)
.withLeafType(java.lang.String.class)
.withMutability(false)
.withProperty("name")
.withValue(this.name)
.build().traverse(visitor);
new org.jsonddl.impl.ContextImpl.ObjectContext.Builder()
.withKind(org.jsonddl.model.Kind.DDL)
.withLeafType(Type.class)
.withMutability(false)
.withProperty("type")
.withValue(this.type)
.build().traverse(visitor);
return this;
}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy