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

com.reprezen.genflow.common.jsonschema.builder.RapidLinkNode Maven / Gradle / Ivy

package com.reprezen.genflow.common.jsonschema.builder;

import com.fasterxml.jackson.databind.node.ObjectNode;
import com.reprezen.genflow.common.jsonschema.builder.JsonSchemaNodeFactory;
import com.reprezen.genflow.common.jsonschema.builder.NamedSchemaNode;

@SuppressWarnings("all")
public class RapidLinkNode extends NamedSchemaNode {
  public RapidLinkNode(final JsonSchemaNodeFactory director, final Void element) {
    super(director, element);
  }
  
  @Override
  public void writeBody(final ObjectNode rapidLink) {
    rapidLink.put("description", 
      (("An object representing a hyperlink to a related resource.\n" + 
        "The link relation is specified as the containing property name.\n") + 
        "The `href` property specifies the target URL, and additional properties may specify other metadata.\n"));
    rapidLink.put("type", "object");
    rapidLink.put("minProperties", 1);
    rapidLink.putObject("properties").putObject("href").put("type", "string");
  }
  
  @Override
  public String getName() {
    return "_RapidLink";
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy