Package com.apicatalog.jsonld.lang
Class Keywords
- java.lang.Object
-
- com.apicatalog.jsonld.lang.Keywords
-
public final class Keywords extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static StringALWAYSstatic StringANNOTATIONstatic StringANYstatic StringBASEstatic StringCONTAINERstatic StringCONTEXTstatic StringDEFAULTstatic StringDIRECTIONstatic StringEMBEDstatic StringEXPLICITstatic StringGRAPHstatic StringIDstatic StringIMPORTstatic StringINCLUDEDstatic StringINDEXstatic StringJSONstatic StringLANGUAGEstatic StringLISTstatic StringMERGEDstatic StringNESTstatic StringNEVERstatic StringNONEstatic StringNULLstatic StringOMIT_DEFAULTstatic StringONCEstatic StringPREFIXstatic StringPRESERVEstatic StringPROPAGATEstatic StringPROTECTEDstatic StringREQUIRE_ALLstatic StringREVERSEstatic StringSETstatic StringTYPEstatic StringVALUEstatic StringVERSIONstatic StringVOCAB
-
Constructor Summary
Constructors Modifier Constructor Description protectedKeywords()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanallMatch(Collection<String> values, String... keywords)static booleananyMatch(String key, String... keywords)static booleancontains(String value)static booleanmatchForm(String value)If value has the form of a keyword (i.e., it matches the ABNF rule "@"1*ALPHA from [RFC5234])static booleannoneMatch(String key, String... keywords)
-
-
-
Field Detail
-
ANY
public static final String ANY
- See Also:
- Constant Field Values
-
BASE
public static final String BASE
- See Also:
- Constant Field Values
-
CONTAINER
public static final String CONTAINER
- See Also:
- Constant Field Values
-
CONTEXT
public static final String CONTEXT
- See Also:
- Constant Field Values
-
DIRECTION
public static final String DIRECTION
- See Also:
- Constant Field Values
-
GRAPH
public static final String GRAPH
- See Also:
- Constant Field Values
-
ID
public static final String ID
- See Also:
- Constant Field Values
-
IMPORT
public static final String IMPORT
- See Also:
- Constant Field Values
-
INCLUDED
public static final String INCLUDED
- See Also:
- Constant Field Values
-
INDEX
public static final String INDEX
- See Also:
- Constant Field Values
-
JSON
public static final String JSON
- See Also:
- Constant Field Values
-
LANGUAGE
public static final String LANGUAGE
- See Also:
- Constant Field Values
-
LIST
public static final String LIST
- See Also:
- Constant Field Values
-
NEST
public static final String NEST
- See Also:
- Constant Field Values
-
NONE
public static final String NONE
- See Also:
- Constant Field Values
-
PREFIX
public static final String PREFIX
- See Also:
- Constant Field Values
-
PRESERVE
public static final String PRESERVE
- See Also:
- Constant Field Values
-
PROPAGATE
public static final String PROPAGATE
- See Also:
- Constant Field Values
-
PROTECTED
public static final String PROTECTED
- See Also:
- Constant Field Values
-
REVERSE
public static final String REVERSE
- See Also:
- Constant Field Values
-
SET
public static final String SET
- See Also:
- Constant Field Values
-
TYPE
public static final String TYPE
- See Also:
- Constant Field Values
-
VALUE
public static final String VALUE
- See Also:
- Constant Field Values
-
VERSION
public static final String VERSION
- See Also:
- Constant Field Values
-
VOCAB
public static final String VOCAB
- See Also:
- Constant Field Values
-
DEFAULT
public static final String DEFAULT
- See Also:
- Constant Field Values
-
EMBED
public static final String EMBED
- See Also:
- Constant Field Values
-
ALWAYS
public static final String ALWAYS
- See Also:
- Constant Field Values
-
ONCE
public static final String ONCE
- See Also:
- Constant Field Values
-
NEVER
public static final String NEVER
- See Also:
- Constant Field Values
-
EXPLICIT
public static final String EXPLICIT
- See Also:
- Constant Field Values
-
NULL
public static final String NULL
- See Also:
- Constant Field Values
-
OMIT_DEFAULT
public static final String OMIT_DEFAULT
- See Also:
- Constant Field Values
-
REQUIRE_ALL
public static final String REQUIRE_ALL
- See Also:
- Constant Field Values
-
MERGED
public static final String MERGED
- See Also:
- Constant Field Values
-
ANNOTATION
public static final String ANNOTATION
- See Also:
- Constant Field Values
-
-
Method Detail
-
contains
public static boolean contains(String value)
-
matchForm
public static boolean matchForm(String value)
If value has the form of a keyword (i.e., it matches the ABNF rule "@"1*ALPHA from [RFC5234])- Parameters:
value- to check- Returns:
trueif the provided value has keyword form
-
allMatch
public static boolean allMatch(Collection<String> values, String... keywords)
-
-