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

com.reprezen.genflow.common.jsonschema.builder.xchange.XChangeLinksMapNode Maven / Gradle / Ivy

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

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

@SuppressWarnings("all")
public class XChangeLinksMapNode extends NamedSchemaNode {
  public XChangeLinksMapNode(final JsonSchemaNodeFactory director, final Void element) {
    super(director, element);
  }
  
  @Override
  public void writeBody(final ObjectNode rapidLink) {
    this.setObjectAsType(rapidLink);
    rapidLink.put("description", 
      (("A set of hyperlinks from a domain object representation to related resources.\n" + 
        "Each property maps a [link relation](https://www.iana.org/assignments/link-relations/link-relations.xhtml)\n") + 
        "(the map key or property name) to a hyperlink object (the value).\n"));
    rapidLink.put("readOnly", true);
    rapidLink.put("minProperties", 1);
    final ObjectNode additionalProperties = rapidLink.putObject("additionalProperties");
    DefinitionsNode _definitionsNode = this.factory.getDefinitionsNode();
    RapidLinkNode _rapidLinkNode = new RapidLinkNode(this.factory, null);
    _definitionsNode.addReferenceToDefinition(additionalProperties, _rapidLinkNode);
  }
  
  @Override
  public String getName() {
    return "_RapidLinksMap";
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy