public abstract class Component extends java.lang.Object implements ToNode
This class provides the ability to add arbitrary key-value pairs to just about everything in the model. You'll need to ensure that "x-" is added to each key to ensure compliance. "x-" can be omitted if adding something that's built-in to the OpenAPI spec but not directly supported in this package (for example, "discriminator", "examples", etc).
Modifier and Type | Class and Description |
---|---|
static class |
Component.Builder<B extends Component.Builder,C extends Component> |
Modifier | Constructor and Description |
---|---|
protected |
Component(Component.Builder<?,?> builder) |
Modifier and Type | Method and Description |
---|---|
protected abstract ObjectNode.Builder |
createNodeBuilder() |
boolean |
equals(java.lang.Object o) |
java.util.Optional<Node> |
getExtension(java.lang.String name) |
java.util.Map<java.lang.String,Node> |
getExtensions() |
int |
hashCode() |
Node |
toNode()
Converts a value to a
Node . |
protected Component(Component.Builder<?,?> builder)
public final java.util.Optional<Node> getExtension(java.lang.String name)
public final java.util.Map<java.lang.String,Node> getExtensions()
public final Node toNode()
ToNode
Node
.protected abstract ObjectNode.Builder createNodeBuilder()
public final boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public final int hashCode()
hashCode
in class java.lang.Object