public void set(final QueryPath path, final Value value) { definition.ensurePath(root, path, value instanceof DataValue); if (path.size() > 1) { final QueryPath q = path.subPath(0, path.size() - 1); final Data d = root.query(q); d.set(path.get(path.size() - 1), value); } else { root.set(path.get(0), value); } }
public QueryPath getQueryPath() { final QueryPath result = new QueryPath(); _getQueryPath(result); return result; }
protected void execChangeCallbacks(ChangeType type, QueryPath path) { if (changeCallbacks != null) { for (ChangeCallback c : changeCallbacks) { c.onChange(type, path); } } if (parent != null) { parent.execChangeCallbacks(type, path); } }
public void set(final Integer key, final Data value) { final Key k = new IntegerKey(key); put(k, new DataValue(value)); if (value != null) { value.parent = this; value.parentKey = k; } }
public void set(final String key, final String value) { put(new StringKey(key), new StringValue(value)); }
public void set(final Integer key, final Date value) { put(new IntegerKey(key), new DateValue(value)); }
public void set(final Integer key, final Long value) { put(new IntegerKey(key), new LongValue(value)); }
public void set(final String key, final Double value) { put(new StringKey(key), new DoubleValue(value)); }
/** * Remove CredentialProgram data and metadata */ @Override public void applyInboundDataFilter(Data data, Metadata metadata, Map<String, Object> properties) throws Exception { // remove the CredentialProgram from the data passed in data.remove(new Data.StringKey(ProgramConstants.CREDENTIAL_PROGRAM)); }
@Override public ConfigurationManager getProgramSectionConfigManager() { if (modelDefinition.getMetadata().isCanEdit()) { return programSectionConfigManager; } else { return proposalSummarySectionConfigurer; } }
/** * Returns true if the metadata contains the specified constraint */ public static boolean hasConstraint(Metadata meta, String id) { boolean result = false; if (meta != null && meta.getConstraints() != null) { result = containsConstraint(meta.getConstraints(), id); } return result; }
/** * Returns true if the metadata contains the specified constraint */ public static boolean hasConstraint(Metadata meta, ConstraintIds id) { return hasConstraint(meta, id.getId()); } /**
protected void _getQueryPath(final QueryPath path) { if (parent != null) { parent._getQueryPath(path); path.add(parentKey); } }
/** * Remove CredentialPrograms titles */ @Override public void applyInboundDataFilter(Data data, Metadata metadata, Map<String, Object> properties) throws Exception { // remove the list of CredentialPrograms from the data passed in data.remove(new Data.StringKey(ProgramConstants.CREDENTIAL_PROGRAMS)); }