public enum AddressingMode extends Enum<AddressingMode>
JSON Schema defines the id keyword for schema identification
purposes. This keyword can be used both at the schema root and in
subschemas. For instance:
{
"id": "some://where/schema.json",
"sub": {
"id": "other.json"
}
}
What can happen here is that an implementation walks the schema and
determines that the URI of the root schema is some://where/schema.json
, which is pretty much normal. It can also see the other id
in subschema /sub and resolve the value of this subschema against the
root URI: this gives some://where/other.json. This is called by this
implementation INLINE addressing mode.
By default, for security reasons, the addressing mode is CANONICAL.
| Modifier and Type | Method and Description |
|---|---|
SchemaContainer |
forSchema(JsonNode schema) |
abstract SchemaContainer |
forSchema(URI uri,
JsonNode schema) |
static AddressingMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AddressingMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AddressingMode CANONICAL
public static final AddressingMode INLINE
public static AddressingMode[] values()
for (AddressingMode c : AddressingMode.values()) System.out.println(c);
public static AddressingMode valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant
with the specified nameNullPointerException - if the argument is nullpublic abstract SchemaContainer forSchema(URI uri, JsonNode schema)
public final SchemaContainer forSchema(JsonNode schema)
Copyright © 2013. All Rights Reserved.