コード例 #1
0
 private void assertCurrentResolverIsManaged() {
   assert !configuration.isConfigured(slot)
           || configuration.getResolver(slot) instanceof ManagedVisualItemValueResolver
       : "resolver for " + slot + " must be managed";
 }
コード例 #2
0
 // TODO this should be a one liner
 public boolean inValidState(LightweightCollection<VisualItem> currentVisualItems) {
   return !errorsInModel()
       && configuration.getResolver(slot) != null
       && isAllowableResolver(configuration.getResolver(slot), currentVisualItems);
 }
コード例 #3
0
 public void setResolver(ManagedVisualItemValueResolver resolver) {
   configuration.setResolver(slot, resolver);
 }
コード例 #4
0
 /** @return The current @link{VisualItemValueResolver} */
 public ManagedVisualItemValueResolver getCurrentResolver() {
   assertCurrentResolverIsManaged();
   return (ManagedVisualItemValueResolver) configuration.getResolver(slot);
 }