Package com.apicatalog.jsonld
Enum JsonLdErrorCode
- java.lang.Object
-
- java.lang.Enum<JsonLdErrorCode>
-
- com.apicatalog.jsonld.JsonLdErrorCode
-
- All Implemented Interfaces:
Serializable,Comparable<JsonLdErrorCode>
public enum JsonLdErrorCode extends Enum<JsonLdErrorCode>
TheJsonLdErrorCoderepresents the collection of valid JSON-LD error codes.- See Also:
- JsonLdErrorCode Specification
-
-
Enum Constant Summary
Enum Constants Enum Constant Description COLLIDING_KEYWORDSTwo properties which expand to the same keyword have been detected.CONFLICTING_INDEXESMultiple conflicting indexes have been found for the same node.CONTEXT_OVERFLOWMaximum number of@contextURLs exceeded.CYCLIC_IRI_MAPPINGA cycle in IRI mappings has been detected.INVALID_ANNOTATIONExperimental: JSON-LD-STAR extension.INVALID_BASE_DIRECTIONThe value of@directionis not"ltr","rtl", or null and thus invalid.INVALID_BASE_IRIAn invalid base IRI has been detected, i.e., it is neither an IRI nornull.INVALID_CONTAINER_MAPPINGAn@containerentry was encountered whose value was not one of the following strings:@list,@set,@language,@index,@id,@graph, or@type.INVALID_CONTEXT_ENTRYAn entry in a context is invalid due to processing mode incompatibility.INVALID_CONTEXT_NULLIFICATIONAn attempt was made to nullify a context containing protected term definitions.INVALID_DEFAULT_LANGUAGEThe value of the default language is not a string ornulland thus invalid.INVALID_EMBEDDED_NODEExperimental: JSON-LD-STAR extension.INVALID_FRAMEThe frame is invalid.INVALID_IRI_MAPPINGA local context contains a term that has an invalid or missing IRI mapping.INVALID_JSON_LITERALAn invalid JSON literal was detected.INVALID_KEYWORD_ALIASAn invalid keyword alias definition has been encountered.INVALID_KEYWORD_EMBED_VALUEThe value for@embedis not one recognized for the object embed flag.INVALID_KEYWORD_ID_VALUEAn@identry was encountered whose value was not a string.INVALID_KEYWORD_IMPORT_VALUEAn invalid value for@importhas been found.INVALID_KEYWORD_INCLUDED_VALUEAn included block contains an invalid value.INVALID_KEYWORD_INDEX_VALUEAn@indexentry was encountered whose value was not a string.INVALID_KEYWORD_NEST_VALUEAn invalid value for@nesthas been found.INVALID_KEYWORD_PREFIX_VALUEAn invalid value for@prefixhas been found.INVALID_KEYWORD_PROPAGATE_VALUEAn invalid value for@propagatehas been found.INVALID_KEYWORD_PROTECTED_VALUEAn invalid value for@protectedhas been found.INVALID_KEYWORD_REVERSE_VALUEAn invalid value for an@reverseentry has been detected, i.e., the value was not a map.INVALID_KEYWORD_VERSION_VALUEThe@versionentry was used in a context with an out of range value.INVALID_LANGUAGE_MAP_VALUEAn invalid value in a language map has been detected.INVALID_LANGUAGE_MAPPINGAn@languageentry in a term definition was encountered whose value was neither a string nor null and thus invalid.INVALID_LANGUAGE_TAGGED_STRINGA language-tagged string with an invalid language value was detected.INVALID_LANGUAGE_TAGGED_VALUEA number,true, orfalsewith an associated language tag was detected.INVALID_LOCAL_CONTEXTIn invalid local context was detected.INVALID_REMOTE_CONTEXTNo valid context document has been found for a referenced remote context.INVALID_REVERSE_PROPERTYAn invalid value for a reverse property has been detected.INVALID_REVERSE_PROPERTY_MAPAn invalid reverse property definition has been detected.INVALID_REVERSE_PROPERTY_VALUEAn invalid reverse property map has been detected.INVALID_SCOPED_CONTEXTThe local context defined within a term definition is invalid.INVALID_SCRIPT_ELEMENTA script element in HTML input which is the target of a fragment identifier does not have an appropriate type attribute.INVALID_SET_OR_LIST_OBJECTA set object or list object with disallowed entries has been detected.INVALID_TERM_DEFINITIONAn invalid term definition has been detected.INVALID_TYPE_MAPPINGAn@typeentry in a term definition was encountered whose value could not be expanded to an IRI.INVALID_TYPE_VALUEAn invalid value for an@typeentry has been detected, i.e., the value was neither a string nor an array of strings.INVALID_TYPED_VALUEA typed value with an invalid type was detected.INVALID_VALUE_OBJECTA value object with disallowed entries has been detected.INVALID_VALUE_OBJECT_VALUEAn invalid value for the@valueentry of a value object has been detected, i.e., it is neither a scalar nornull.INVALID_VOCAB_MAPPINGAn invalid vocabulary mapping has been detected, i.e., it is neither an IRI nornull.IRI_CONFUSED_WITH_PREFIXWhen 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_REDEFINITIONA keyword redefinition has been detected.LOADING_DOCUMENT_FAILEDThe document could not be loaded or parsed as JSON.LOADING_REMOTE_CONTEXT_FAILEDThere was a problem encountered loading a remote context.MULTIPLE_CONTEXT_LINK_HEADERSMultiple HTTP Link Headers [RFC8288] using the http://www.w3.org/ns/json-ld#context link relation have been detected.PROCESSING_MODE_CONFLICTAn attempt was made to change the processing mode which is incompatible with the previous specified version.PROTECTED_TERM_REDEFINITIONAn attempt was made to redefine a protected term.UNSPECIFIED
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringtoMessage()static JsonLdErrorCodevalueOf(String name)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 Detail
-
COLLIDING_KEYWORDS
public static final JsonLdErrorCode 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
public static final JsonLdErrorCode CONFLICTING_INDEXES
Multiple conflicting indexes have been found for the same node.
-
CONTEXT_OVERFLOW
public static final JsonLdErrorCode CONTEXT_OVERFLOW
Maximum number of@contextURLs exceeded.
-
CYCLIC_IRI_MAPPING
public static final JsonLdErrorCode CYCLIC_IRI_MAPPING
A cycle in IRI mappings has been detected.
-
INVALID_KEYWORD_ID_VALUE
public static final JsonLdErrorCode INVALID_KEYWORD_ID_VALUE
An@identry was encountered whose value was not a string.
-
INVALID_KEYWORD_IMPORT_VALUE
public static final JsonLdErrorCode INVALID_KEYWORD_IMPORT_VALUE
An invalid value for@importhas been found.
-
INVALID_KEYWORD_INCLUDED_VALUE
public static final JsonLdErrorCode INVALID_KEYWORD_INCLUDED_VALUE
An included block contains an invalid value.
-
INVALID_KEYWORD_INDEX_VALUE
public static final JsonLdErrorCode INVALID_KEYWORD_INDEX_VALUE
An@indexentry was encountered whose value was not a string.
-
INVALID_KEYWORD_NEST_VALUE
public static final JsonLdErrorCode INVALID_KEYWORD_NEST_VALUE
An invalid value for@nesthas been found.
-
INVALID_KEYWORD_PREFIX_VALUE
public static final JsonLdErrorCode INVALID_KEYWORD_PREFIX_VALUE
An invalid value for@prefixhas been found.
-
INVALID_KEYWORD_PROPAGATE_VALUE
public static final JsonLdErrorCode INVALID_KEYWORD_PROPAGATE_VALUE
An invalid value for@propagatehas been found.
-
INVALID_KEYWORD_PROTECTED_VALUE
public static final JsonLdErrorCode INVALID_KEYWORD_PROTECTED_VALUE
An invalid value for@protectedhas been found.
-
INVALID_KEYWORD_REVERSE_VALUE
public static final JsonLdErrorCode INVALID_KEYWORD_REVERSE_VALUE
An invalid value for an@reverseentry has been detected, i.e., the value was not a map.
-
INVALID_KEYWORD_VERSION_VALUE
public static final JsonLdErrorCode INVALID_KEYWORD_VERSION_VALUE
The@versionentry was used in a context with an out of range value.
-
INVALID_BASE_DIRECTION
public static final JsonLdErrorCode INVALID_BASE_DIRECTION
The value of@directionis not"ltr","rtl", or null and thus invalid.
-
INVALID_BASE_IRI
public static final JsonLdErrorCode INVALID_BASE_IRI
An invalid base IRI has been detected, i.e., it is neither an IRI nornull.
-
INVALID_CONTAINER_MAPPING
public static final JsonLdErrorCode INVALID_CONTAINER_MAPPING
An@containerentry was encountered whose value was not one of the following strings:@list,@set,@language,@index,@id,@graph, or@type.
-
INVALID_CONTEXT_ENTRY
public static final JsonLdErrorCode INVALID_CONTEXT_ENTRY
An entry in a context is invalid due to processing mode incompatibility.
-
INVALID_CONTEXT_NULLIFICATION
public static final JsonLdErrorCode INVALID_CONTEXT_NULLIFICATION
An attempt was made to nullify a context containing protected term definitions.
-
INVALID_DEFAULT_LANGUAGE
public static final JsonLdErrorCode INVALID_DEFAULT_LANGUAGE
The value of the default language is not a string ornulland thus invalid.
-
INVALID_IRI_MAPPING
public static final JsonLdErrorCode INVALID_IRI_MAPPING
A local context contains a term that has an invalid or missing IRI mapping.
-
INVALID_JSON_LITERAL
public static final JsonLdErrorCode INVALID_JSON_LITERAL
An invalid JSON literal was detected.
-
INVALID_KEYWORD_ALIAS
public static final JsonLdErrorCode INVALID_KEYWORD_ALIAS
An invalid keyword alias definition has been encountered.
-
INVALID_LANGUAGE_MAP_VALUE
public static final JsonLdErrorCode 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
public static final JsonLdErrorCode INVALID_LANGUAGE_MAPPING
An@languageentry in a term definition was encountered whose value was neither a string nor null and thus invalid.
-
INVALID_LANGUAGE_TAGGED_STRING
public static final JsonLdErrorCode INVALID_LANGUAGE_TAGGED_STRING
A language-tagged string with an invalid language value was detected.
-
INVALID_LANGUAGE_TAGGED_VALUE
public static final JsonLdErrorCode INVALID_LANGUAGE_TAGGED_VALUE
A number,true, orfalsewith an associated language tag was detected.
-
INVALID_LOCAL_CONTEXT
public static final JsonLdErrorCode INVALID_LOCAL_CONTEXT
In invalid local context was detected.
-
INVALID_REMOTE_CONTEXT
public static final JsonLdErrorCode INVALID_REMOTE_CONTEXT
No valid context document has been found for a referenced remote context.
-
INVALID_REVERSE_PROPERTY_MAP
public static final JsonLdErrorCode INVALID_REVERSE_PROPERTY_MAP
An invalid reverse property definition has been detected.
-
INVALID_REVERSE_PROPERTY_VALUE
public static final JsonLdErrorCode INVALID_REVERSE_PROPERTY_VALUE
An invalid reverse property map has been detected. No keywords apart from@contextare allowed in reverse property maps.
-
INVALID_REVERSE_PROPERTY
public static final JsonLdErrorCode 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
public static final JsonLdErrorCode INVALID_SCOPED_CONTEXT
The local context defined within a term definition is invalid.
-
INVALID_SCRIPT_ELEMENT
public static final JsonLdErrorCode 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
public static final JsonLdErrorCode INVALID_SET_OR_LIST_OBJECT
A set object or list object with disallowed entries has been detected.
-
INVALID_TERM_DEFINITION
public static final JsonLdErrorCode INVALID_TERM_DEFINITION
An invalid term definition has been detected.
-
INVALID_TYPE_MAPPING
public static final JsonLdErrorCode INVALID_TYPE_MAPPING
An@typeentry in a term definition was encountered whose value could not be expanded to an IRI.
-
INVALID_TYPE_VALUE
public static final JsonLdErrorCode INVALID_TYPE_VALUE
An invalid value for an@typeentry has been detected, i.e., the value was neither a string nor an array of strings.
-
INVALID_TYPED_VALUE
public static final JsonLdErrorCode INVALID_TYPED_VALUE
A typed value with an invalid type was detected.
-
INVALID_VALUE_OBJECT_VALUE
public static final JsonLdErrorCode INVALID_VALUE_OBJECT_VALUE
An invalid value for the@valueentry of a value object has been detected, i.e., it is neither a scalar nornull.
-
INVALID_VALUE_OBJECT
public static final JsonLdErrorCode INVALID_VALUE_OBJECT
A value object with disallowed entries has been detected.
-
INVALID_VOCAB_MAPPING
public static final JsonLdErrorCode INVALID_VOCAB_MAPPING
An invalid vocabulary mapping has been detected, i.e., it is neither an IRI nornull.
-
IRI_CONFUSED_WITH_PREFIX
public static final JsonLdErrorCode 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
public static final JsonLdErrorCode KEYWORD_REDEFINITION
A keyword redefinition has been detected.
-
LOADING_DOCUMENT_FAILED
public static final JsonLdErrorCode LOADING_DOCUMENT_FAILED
The document could not be loaded or parsed as JSON.
-
LOADING_REMOTE_CONTEXT_FAILED
public static final JsonLdErrorCode LOADING_REMOTE_CONTEXT_FAILED
There was a problem encountered loading a remote context.
-
MULTIPLE_CONTEXT_LINK_HEADERS
public static final JsonLdErrorCode 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
public static final JsonLdErrorCode PROCESSING_MODE_CONFLICT
An attempt was made to change the processing mode which is incompatible with the previous specified version.
-
PROTECTED_TERM_REDEFINITION
public static final JsonLdErrorCode PROTECTED_TERM_REDEFINITION
An attempt was made to redefine a protected term.
-
INVALID_FRAME
public static final JsonLdErrorCode INVALID_FRAME
The frame is invalid.- See Also:
- invalid frame
-
INVALID_KEYWORD_EMBED_VALUE
public static final JsonLdErrorCode INVALID_KEYWORD_EMBED_VALUE
The value for@embedis not one recognized for the object embed flag.- See Also:
- invalid @embed value
-
INVALID_EMBEDDED_NODE
public static final JsonLdErrorCode INVALID_EMBEDDED_NODE
Experimental: JSON-LD-STAR extension.- See Also:
- JSON-LD-STAR Draft
-
INVALID_ANNOTATION
public static final JsonLdErrorCode INVALID_ANNOTATION
Experimental: JSON-LD-STAR extension.- See Also:
- JSON-LD-STAR Draft
-
UNSPECIFIED
public static final JsonLdErrorCode UNSPECIFIED
-
-
Method Detail
-
values
public static JsonLdErrorCode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (JsonLdErrorCode c : JsonLdErrorCode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static JsonLdErrorCode valueOf(String name)
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
public String toMessage()
-
-