public class ContextKeyCap extends Cap implements ItemMod, UserMod, ContextKey
| Constructor and Description |
|---|
ContextKeyCap(JSONObject raw,
String[] contexts)
JSON-driven constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
enablesEntry(String contextRef)
Test if this capability enables entry to a particular context.
|
JSONLiteral |
encode(EncodeControl control)
Encode this mod for transmission or persistence.
|
delete, encodeDefaultParameters, ensureValid, isExpired, objectIsComplete, setlabel, spawn, transferattachTo, clone, context, ensureHolding, ensureInContext, ensureReachable, ensureSameContext, ensureSameUser, holder, isEphemeral, markAsChanged, markAsEphemeral, object@JSONMethod(value="contexts") public ContextKeyCap(JSONObject raw, String[] contexts) throws JSONDecodingException
contexts - Array of refs for the contexts to which this key grants
entry permission.JSONDecodingExceptionpublic boolean enablesEntry(String contextRef)
enablesEntry in interface ContextKeycontextRef - Reference string of the context of interest.public JSONLiteral encode(EncodeControl control)
Copyright © 2017. All rights reserved.