Package no.hasmac.jsonld
Enum JsonLdErrorCode
- All Implemented Interfaces:
Serializable
,Comparable<JsonLdErrorCode>
,java.lang.constant.Constable
The
JsonLdErrorCode
represents the collection of valid JSON-LD error
codes.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionTwo properties which expand to the same keyword have been detected.Multiple conflicting indexes have been found for the same node.Maximum number of@context
URLs exceeded.A cycle in IRI mappings has been detected.Experimental: JSON-LD-STAR extension.The value of@direction
is not"ltr"
,"rtl"
, or null and thus invalid.An invalid base IRI has been detected, i.e., it is neither an IRI nornull
.An@container
entry was encountered whose value was not one of the following strings:@list
,@set
,@language
,@index
,@id
,@graph
, or@type
.An entry in a context is invalid due to processing mode incompatibility.An attempt was made to nullify a context containing protected term definitions.The value of the default language is not a string ornull
and thus invalid.Experimental: JSON-LD-STAR extension.The frame is invalid.A local context contains a term that has an invalid or missing IRI mapping.An invalid JSON literal was detected.An invalid keyword alias definition has been encountered.The value for@embed
is not one recognized for the object embed flag.An@id
entry was encountered whose value was not a string.An invalid value for@import
has been found.An included block contains an invalid value.An@index
entry was encountered whose value was not a string.An invalid value for@nest
has been found.An invalid value for@prefix
has been found.An invalid value for@propagate
has been found.An invalid value for@protected
has been found.An invalid value for an@reverse
entry has been detected, i.e., the value was not a map.The@version
entry was used in a context with an out of range value.An invalid value in a language map has been detected.An@language
entry in a term definition was encountered whose value was neither a string nor null and thus invalid.A language-tagged string with an invalid language value was detected.A number,true
, orfalse
with an associated language tag was detected.In invalid local context was detected.No valid context document has been found for a referenced remote context.An invalid value for a reverse property has been detected.An invalid reverse property definition has been detected.An invalid reverse property map has been detected.The local context defined within a term definition is invalid.A script element in HTML input which is the target of a fragment identifier does not have an appropriate type attribute.A set object or list object with disallowed entries has been detected.An invalid term definition has been detected.An@type
entry in a term definition was encountered whose value could not be expanded to an IRI.An invalid value for an@type
entry has been detected, i.e., the value was neither a string nor an array of strings.A typed value with an invalid type was detected.A value object with disallowed entries has been detected.An invalid value for the@value
entry of a value object has been detected, i.e., it is neither a scalar nornull
.An invalid vocabulary mapping has been detected, i.e., it is neither an IRI nornull
.When compacting an IRI would result in an IRI which could be confused with a compact IRI (because its IRI scheme matches a term definition and it has no IRI authority).A keyword redefinition has been detected.The document could not be loaded or parsed as JSON.There was a problem encountered loading a remote context.Multiple HTTP Link Headers [RFC8288] using the http://www.w3.org/ns/json-ld#context link relation have been detected.An attempt was made to change the processing mode which is incompatible with the previous specified version.An attempt was made to redefine a protected term. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic JsonLdErrorCode
Returns the enum constant of this type with the specified name.static JsonLdErrorCode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
COLLIDING_KEYWORDS
Two properties which expand to the same keyword have been detected. This might occur if a keyword and an alias thereof are used at the same time. -
CONFLICTING_INDEXES
Multiple conflicting indexes have been found for the same node. -
CONTEXT_OVERFLOW
Maximum number of@context
URLs exceeded. -
CYCLIC_IRI_MAPPING
A cycle in IRI mappings has been detected. -
INVALID_KEYWORD_ID_VALUE
An@id
entry was encountered whose value was not a string. -
INVALID_KEYWORD_IMPORT_VALUE
An invalid value for@import
has been found. -
INVALID_KEYWORD_INCLUDED_VALUE
An included block contains an invalid value. -
INVALID_KEYWORD_INDEX_VALUE
An@index
entry was encountered whose value was not a string. -
INVALID_KEYWORD_NEST_VALUE
An invalid value for@nest
has been found. -
INVALID_KEYWORD_PREFIX_VALUE
An invalid value for@prefix
has been found. -
INVALID_KEYWORD_PROPAGATE_VALUE
An invalid value for@propagate
has been found. -
INVALID_KEYWORD_PROTECTED_VALUE
An invalid value for@protected
has been found. -
INVALID_KEYWORD_REVERSE_VALUE
An invalid value for an@reverse
entry has been detected, i.e., the value was not a map. -
INVALID_KEYWORD_VERSION_VALUE
The@version
entry was used in a context with an out of range value. -
INVALID_BASE_DIRECTION
The value of@direction
is not"ltr"
,"rtl"
, or null and thus invalid. -
INVALID_BASE_IRI
An invalid base IRI has been detected, i.e., it is neither an IRI nornull
. -
INVALID_CONTAINER_MAPPING
An@container
entry was encountered whose value was not one of the following strings:@list
,@set
,@language
,@index
,@id
,@graph
, or@type
. -
INVALID_CONTEXT_ENTRY
An entry in a context is invalid due to processing mode incompatibility. -
INVALID_CONTEXT_NULLIFICATION
An attempt was made to nullify a context containing protected term definitions. -
INVALID_DEFAULT_LANGUAGE
The value of the default language is not a string ornull
and thus invalid. -
INVALID_IRI_MAPPING
A local context contains a term that has an invalid or missing IRI mapping. -
INVALID_JSON_LITERAL
An invalid JSON literal was detected. -
INVALID_KEYWORD_ALIAS
An invalid keyword alias definition has been encountered. -
INVALID_LANGUAGE_MAP_VALUE
An invalid value in a language map has been detected. It MUST be a string or an array of strings. -
INVALID_LANGUAGE_MAPPING
An@language
entry in a term definition was encountered whose value was neither a string nor null and thus invalid. -
INVALID_LANGUAGE_TAGGED_STRING
A language-tagged string with an invalid language value was detected. -
INVALID_LANGUAGE_TAGGED_VALUE
A number,true
, orfalse
with an associated language tag was detected. -
INVALID_LOCAL_CONTEXT
In invalid local context was detected. -
INVALID_REMOTE_CONTEXT
No valid context document has been found for a referenced remote context. -
INVALID_REVERSE_PROPERTY_MAP
An invalid reverse property definition has been detected. -
INVALID_REVERSE_PROPERTY_VALUE
An invalid reverse property map has been detected. No keywords apart from@context
are allowed in reverse property maps. -
INVALID_REVERSE_PROPERTY
An invalid value for a reverse property has been detected. The value of an inverse property must be a node object. -
INVALID_SCOPED_CONTEXT
The local context defined within a term definition is invalid. -
INVALID_SCRIPT_ELEMENT
A script element in HTML input which is the target of a fragment identifier does not have an appropriate type attribute. -
INVALID_SET_OR_LIST_OBJECT
A set object or list object with disallowed entries has been detected. -
INVALID_TERM_DEFINITION
An invalid term definition has been detected. -
INVALID_TYPE_MAPPING
An@type
entry in a term definition was encountered whose value could not be expanded to an IRI. -
INVALID_TYPE_VALUE
An invalid value for an@type
entry has been detected, i.e., the value was neither a string nor an array of strings. -
INVALID_TYPED_VALUE
A typed value with an invalid type was detected. -
INVALID_VALUE_OBJECT_VALUE
An invalid value for the@value
entry of a value object has been detected, i.e., it is neither a scalar nornull
. -
INVALID_VALUE_OBJECT
A value object with disallowed entries has been detected. -
INVALID_VOCAB_MAPPING
An invalid vocabulary mapping has been detected, i.e., it is neither an IRI nornull
. -
IRI_CONFUSED_WITH_PREFIX
When compacting an IRI would result in an IRI which could be confused with a compact IRI (because its IRI scheme matches a term definition and it has no IRI authority). -
KEYWORD_REDEFINITION
A keyword redefinition has been detected. -
LOADING_DOCUMENT_FAILED
The document could not be loaded or parsed as JSON. -
LOADING_REMOTE_CONTEXT_FAILED
There was a problem encountered loading a remote context. -
MULTIPLE_CONTEXT_LINK_HEADERS
Multiple HTTP Link Headers [RFC8288] using the http://www.w3.org/ns/json-ld#context link relation have been detected. -
PROCESSING_MODE_CONFLICT
An attempt was made to change the processing mode which is incompatible with the previous specified version. -
PROTECTED_TERM_REDEFINITION
An attempt was made to redefine a protected term. -
INVALID_FRAME
The frame is invalid.- See Also:
-
INVALID_KEYWORD_EMBED_VALUE
The value for@embed
is not one recognized for the object embed flag.- See Also:
-
INVALID_EMBEDDED_NODE
Experimental: JSON-LD-STAR extension.- See Also:
-
INVALID_ANNOTATION
Experimental: JSON-LD-STAR extension.- See Also:
-
UNSPECIFIED
-
-
Field Details
-
CODE_TO_MESSAGE
-
-
Constructor Details
-
JsonLdErrorCode
private JsonLdErrorCode()
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
toMessage
-