1 18 package org.apache.beehive.netui.script.common; 19 20 import org.apache.beehive.netui.util.logging.Logger; 21 22 25 public class DataAccessProviderBean { 26 27 private static final Logger _logger = Logger.getInstance(DataAccessProviderBean.class); 28 29 private IDataAccessProvider _provider = null; 30 31 public DataAccessProviderBean(IDataAccessProvider provider) { 32 _provider = provider; 33 } 34 35 public Object getItem() { 36 return _provider.getCurrentItem(); 37 } 38 39 public Object getContainer() { 40 return new DataAccessProviderBean(_provider.getProviderParent()); 41 } 42 43 public int getIndex() { 44 return _provider.getCurrentIndex(); 45 } 46 47 public Object getMetadata() { 48 return _provider.getCurrentMetadata(); 49 } 50 } 51 52 53 | Popular Tags |