/** * Create a {@code SimpleEvaluationContext} for read-only access to * public properties via {@link DataBindingPropertyAccessor}. * @see DataBindingPropertyAccessor#forReadOnlyAccess() * @see #forPropertyAccessors */ public static Builder forReadOnlyDataBinding() { return new Builder(DataBindingPropertyAccessor.forReadOnlyAccess()); }
/** * Create a new data-binding property accessor for read-write operations. */ public static DataBindingPropertyAccessor forReadWriteAccess() { return new DataBindingPropertyAccessor(true); }
/** * Create a {@code SimpleEvaluationContext} for read-write access to * public properties via {@link DataBindingPropertyAccessor}. * @see DataBindingPropertyAccessor#forReadWriteAccess() * @see #forPropertyAccessors */ public static Builder forReadWriteDataBinding() { return new Builder(DataBindingPropertyAccessor.forReadWriteAccess()); }
/** * Create a {@code SimpleEvaluationContext} for read-only access to * public properties via {@link DataBindingPropertyAccessor}. * @see DataBindingPropertyAccessor#forReadOnlyAccess() * @see #forPropertyAccessors */ public static Builder forReadOnlyDataBinding() { return new Builder(DataBindingPropertyAccessor.forReadOnlyAccess()); }
/** * Create a new data-binding property accessor for read-only operations. */ public static DataBindingPropertyAccessor forReadOnlyAccess() { return new DataBindingPropertyAccessor(false); }
/** * Create a {@code SimpleEvaluationContext} for read-write access to * public properties via {@link DataBindingPropertyAccessor}. * @see DataBindingPropertyAccessor#forReadWriteAccess() * @see #forPropertyAccessors */ public static Builder forReadWriteDataBinding() { return new Builder(DataBindingPropertyAccessor.forReadWriteAccess()); }
@Override public SimpleEvaluationContext getObject() throws Exception { Collection<PropertyAccessor> accessors = getPropertyAccessors().values(); PropertyAccessor[] accessorArray = accessors.toArray(new PropertyAccessor[accessors.size() + 2]); accessorArray[accessors.size()] = new MapAccessor(); accessorArray[accessors.size() + 1] = DataBindingPropertyAccessor.forReadOnlyAccess(); SimpleEvaluationContext evaluationContext = SimpleEvaluationContext.forPropertyAccessors(accessorArray) .withTypeConverter(getTypeConverter()) .withInstanceMethods() .build(); for (Entry<String, Method> functionEntry : getFunctions().entrySet()) { evaluationContext.setVariable(functionEntry.getKey(), functionEntry.getValue()); } return evaluationContext; }
/** * Create a new data-binding property accessor for read-only operations. */ public static DataBindingPropertyAccessor forReadOnlyAccess() { return new DataBindingPropertyAccessor(false); }
/** * Create a {@code SimpleEvaluationContext} for read-write access to * public properties via {@link DataBindingPropertyAccessor}. * @see DataBindingPropertyAccessor#forReadWriteAccess() * @see #forPropertyAccessors */ public static Builder forReadWriteDataBinding() { return new Builder(DataBindingPropertyAccessor.forReadWriteAccess()); }
new MapAccessor(), DataBindingPropertyAccessor.forReadOnlyAccess()) .withInstanceMethods(); if (conversionService != null) {
/** * Create a new data-binding property accessor for read-write operations. */ public static DataBindingPropertyAccessor forReadWriteAccess() { return new DataBindingPropertyAccessor(true); }
/** * Create a {@code SimpleEvaluationContext} for read-only access to * public properties via {@link DataBindingPropertyAccessor}. * @see DataBindingPropertyAccessor#forReadOnlyAccess() * @see #forPropertyAccessors */ public static Builder forReadOnlyDataBinding() { return new Builder(DataBindingPropertyAccessor.forReadOnlyAccess()); }
/** * Create a new data-binding property accessor for read-only operations. */ public static DataBindingPropertyAccessor forReadOnlyAccess() { return new DataBindingPropertyAccessor(false); }
@Override public SimpleEvaluationContext getObject() throws Exception { Collection<PropertyAccessor> accessors = getPropertyAccessors().values(); PropertyAccessor[] accessorArray = accessors.toArray(new PropertyAccessor[accessors.size() + 2]); accessorArray[accessors.size()] = new MapAccessor(); accessorArray[accessors.size() + 1] = DataBindingPropertyAccessor.forReadOnlyAccess(); SimpleEvaluationContext evaluationContext = SimpleEvaluationContext.forPropertyAccessors(accessorArray) .withTypeConverter(getTypeConverter()) .withInstanceMethods() .build(); for (Entry<String, Method> functionEntry : getFunctions().entrySet()) { evaluationContext.setVariable(functionEntry.getKey(), functionEntry.getValue()); } return evaluationContext; }
/** * Create a new data-binding property accessor for read-write operations. */ public static DataBindingPropertyAccessor forReadWriteAccess() { return new DataBindingPropertyAccessor(true); }
new MapAccessor(), DataBindingPropertyAccessor.forReadOnlyAccess()) .withInstanceMethods(); if (conversionService != null) {