public abstract class Schema extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Schema.Builder
A builder class for
Schema instances. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
static Schema |
fromAnnotation(Schema schema,
ApiDescription descriptor,
Class<?> relativeType)
Builds Schema object from the data in the annotation parameter.
|
abstract Reference |
getReference()
Getter for reference.
|
abstract JsonValue |
getSchema()
Obtain the schema definition if it is not a reference.
|
int |
hashCode() |
static Schema.Builder |
newBuilder()
Create a new Builder for Schema.
|
static Schema.Builder |
schema()
Create a new Builder for Schema.
|
public abstract Reference getReference()
public abstract JsonValue getSchema()
public static Schema.Builder newBuilder()
public static Schema.Builder schema()
Schema.newBuilder()
that is useful for static imports.public static Schema fromAnnotation(Schema schema, ApiDescription descriptor, Class<?> relativeType)
schema
has an id
defined,
or if the type being used for the schema definition has an id
defined, the schema will be defined in the
top-level descriptor
, and a reference to that definition will be returned.schema
- The annotation that holds the datadescriptor
- The root descriptor to add definitions to.relativeType
- The type relative to which schema resources should be resolved.Copyright © 2010-2018, ForgeRock All Rights Reserved.