package xdi2.core.constants; import xdi2.core.syntax.XDIAddress; import xdi2.core.syntax.XDIArc; /** * Constants for XDI link contracts. */ public final class XDILinkContractConstants { public static final XDIArc XDI_ARC_CONTRACT = XDIArc.create("$contract"); public static final XDIArc XDI_ARC_EC_CONTRACT = XDIArc.create("[$contract]"); public static final XDIArc XDI_ARC_V_CONTRACT = XDIArc.create("{$contract}"); public static final XDIAddress XDI_ADD_CONTRACT = XDIAddress.fromComponent(XDI_ARC_CONTRACT); public static final XDIAddress XDI_ADD_EC_CONTRACT = XDIAddress.fromComponent(XDI_ARC_EC_CONTRACT); public static final XDIAddress XDI_ADD_V_CONTRACT = XDIAddress.fromComponent(XDI_ARC_V_CONTRACT); public static final XDIArc XDI_ARC_DO = XDIArc.create("$do"); public static final XDIAddress XDI_ADD_DO = XDIAddress.fromComponent(XDI_ARC_DO); public static final XDIAddress XDI_ADD_NOT = XDIAddress.create("$not"); public static final XDIAddress XDI_ADD_ALL = XDIAddress.create("$all"); public static final XDIAddress XDI_ADD_GET = XDIAddress.create("$get"); public static final XDIAddress XDI_ADD_SET = XDIAddress.create("$set"); public static final XDIAddress XDI_ADD_SET_CONTRACT = XDIAddress.create("$set{$contract}"); // TODO: review this public static final XDIAddress XDI_ADD_SET_REF = XDIAddress.create("$set{$ref}"); // TODO: review this public static final XDIAddress XDI_ADD_DEL = XDIAddress.create("$del"); public static final XDIAddress XDI_ADD_CONNECT = XDIAddress.create("$connect"); public static final XDIAddress XDI_ADD_SEND = XDIAddress.create("$send"); public static final XDIAddress XDI_ADD_PUSH = XDIAddress.create("$push"); public static final XDIAddress[] XDI_ADD_PERMISSIONS = new XDIAddress[] { XDI_ADD_ALL, XDI_ADD_GET, XDI_ADD_SET, XDI_ADD_SET_CONTRACT, XDI_ADD_SET_REF, XDI_ADD_DEL, XDI_ADD_DO, XDI_ADD_CONNECT, XDI_ADD_SEND, XDI_ADD_PUSH }; public static final XDIArc XDI_ARC_V_FROM = XDIArc.create("{$from}"); public static final XDIArc XDI_ARC_V_TO = XDIArc.create("{$to}"); public static final XDIArc XDI_ARC_V_FROM_ROOT = XDIArc.create("{($from)}"); public static final XDIArc XDI_ARC_V_TO_ROOT = XDIArc.create("{($to)}"); public static final XDIAddress XDI_ADD_V_FROM = XDIAddress.fromComponent(XDI_ARC_V_FROM); public static final XDIAddress XDI_ADD_V_TO = XDIAddress.fromComponent(XDI_ARC_V_TO); public static final XDIAddress XDI_ADD_V_FROM_ROOT = XDIAddress.fromComponent(XDI_ARC_V_FROM_ROOT); public static final XDIAddress XDI_ADD_V_TO_ROOT = XDIAddress.fromComponent(XDI_ARC_V_TO_ROOT); public static final XDIAddress XDI_ADD_PUBLIC = XDIAddress.create("$public"); public static final XDIAddress XDI_ADD_TO_PEER_ROOT_ARC = XDIAddress.create("$to"); public static final XDIAddress XDI_ADD_IS_PUSH = XDIAddress.create("$is$push"); private XDILinkContractConstants() { } }