Package com.apicatalog.jsonld.framing
Class Frame
- java.lang.Object
-
- com.apicatalog.jsonld.framing.Frame
-
public final class Frame extends Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancontains(String property)booleancontainsOnly(String property)jakarta.json.JsonValueget(String property)static booleangetBoolean(jakarta.json.JsonObject frame, String key, boolean defaultValue)Collection<jakarta.json.JsonValue>getCollection(String property)JsonLdEmbedgetEmbed(JsonLdEmbed defaultValue)booleangetExplicit(boolean defaultValue)booleangetRequireAll(boolean defaultValue)booleanisDefaultObject(String property)booleanisListObject()booleanisNodePattern()booleanisNodeReference()booleanisNone(String property)booleanisValuePattern()booleanisWildCard()booleanisWildCard(String property)Set<String>keys()booleanmatchNode(FramingState state, jakarta.json.JsonValue value, boolean requireAll)booleanmatchValue(jakarta.json.JsonValue value)static Frameof(jakarta.json.JsonStructure structure)StringtoString()
-
-
-
Field Detail
-
EMPTY
public static final Frame EMPTY
-
-
Method Detail
-
of
public static final Frame of(jakarta.json.JsonStructure structure) throws JsonLdError
- Throws:
JsonLdError
-
getEmbed
public JsonLdEmbed getEmbed(JsonLdEmbed defaultValue) throws JsonLdError
- Throws:
JsonLdError
-
getExplicit
public boolean getExplicit(boolean defaultValue) throws JsonLdError- Throws:
JsonLdError
-
getRequireAll
public boolean getRequireAll(boolean defaultValue) throws JsonLdError- Throws:
JsonLdError
-
getBoolean
public static final boolean getBoolean(jakarta.json.JsonObject frame, String key, boolean defaultValue) throws JsonLdError- Throws:
JsonLdError
-
get
public jakarta.json.JsonValue get(String property)
-
contains
public boolean contains(String property)
-
containsOnly
public boolean containsOnly(String property)
-
isWildCard
public boolean isWildCard()
-
isWildCard
public boolean isWildCard(String property)
-
isNone
public boolean isNone(String property)
-
getCollection
public Collection<jakarta.json.JsonValue> getCollection(String property)
-
isValuePattern
public boolean isValuePattern()
-
matchValue
public boolean matchValue(jakarta.json.JsonValue value)
-
isDefaultObject
public boolean isDefaultObject(String property)
-
isNodePattern
public boolean isNodePattern()
-
isNodeReference
public boolean isNodeReference()
-
matchNode
public boolean matchNode(FramingState state, jakarta.json.JsonValue value, boolean requireAll) throws JsonLdError
- Throws:
JsonLdError
-
isListObject
public boolean isListObject()
-
-