Enum JsonLdErrorCode

java.lang.Object
java.lang.Enum<JsonLdErrorCode>
no.hasmac.jsonld.JsonLdErrorCode
All Implemented Interfaces:
Serializable, Comparable<JsonLdErrorCode>, java.lang.constant.Constable

public enum JsonLdErrorCode extends Enum<JsonLdErrorCode>
The JsonLdErrorCode represents the collection of valid JSON-LD error codes.
See Also:
  • Enum Constant Details

    • 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 @context URLs 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 @id entry was encountered whose value was not a string.
    • INVALID_KEYWORD_IMPORT_VALUE

      public static final JsonLdErrorCode INVALID_KEYWORD_IMPORT_VALUE
      An invalid value for @import has 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 @index entry was encountered whose value was not a string.
    • INVALID_KEYWORD_NEST_VALUE

      public static final JsonLdErrorCode INVALID_KEYWORD_NEST_VALUE
      An invalid value for @nest has been found.
    • INVALID_KEYWORD_PREFIX_VALUE

      public static final JsonLdErrorCode INVALID_KEYWORD_PREFIX_VALUE
      An invalid value for @prefix has been found.
    • INVALID_KEYWORD_PROPAGATE_VALUE

      public static final JsonLdErrorCode INVALID_KEYWORD_PROPAGATE_VALUE
      An invalid value for @propagate has been found.
    • INVALID_KEYWORD_PROTECTED_VALUE

      public static final JsonLdErrorCode INVALID_KEYWORD_PROTECTED_VALUE
      An invalid value for @protected has been found.
    • INVALID_KEYWORD_REVERSE_VALUE

      public static final JsonLdErrorCode 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

      public static final JsonLdErrorCode INVALID_KEYWORD_VERSION_VALUE
      The @version entry was used in a context with an out of range value.
    • INVALID_BASE_DIRECTION

      public static final JsonLdErrorCode INVALID_BASE_DIRECTION
      The value of @direction is 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 nor null.
    • INVALID_CONTAINER_MAPPING

      public static final JsonLdErrorCode 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

      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 or null and 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 @language entry 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, or false with 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 @context are 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 @type entry 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 @type entry 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 @value entry of a value object has been detected, i.e., it is neither a scalar nor null.
    • 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 nor null.
    • 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.
    • 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_KEYWORD_EMBED_VALUE

      public static final JsonLdErrorCode INVALID_KEYWORD_EMBED_VALUE
      The value for @embed is not one recognized for the object embed flag.
      See Also:
    • INVALID_EMBEDDED_NODE

      public static final JsonLdErrorCode INVALID_EMBEDDED_NODE
      Experimental: JSON-LD-STAR extension.
      See Also:
    • INVALID_ANNOTATION

      public static final JsonLdErrorCode INVALID_ANNOTATION
      Experimental: JSON-LD-STAR extension.
      See Also:
    • UNSPECIFIED

      public static final JsonLdErrorCode UNSPECIFIED
  • Field Details

  • Constructor Details

    • JsonLdErrorCode

      private JsonLdErrorCode()
  • Method Details

    • values

      public static JsonLdErrorCode[] 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

      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 name
      NullPointerException - if the argument is null
    • toMessage

      public String toMessage()