1 19 20 package org.netbeans.modules.schema2beans; 21 22 import java.beans.*; 23 24 30 public interface Bean { 31 public void addPropertyChangeListener(PropertyChangeListener l); 32 public void removePropertyChangeListener(PropertyChangeListener l); 33 34 39 public BeanProp beanProp(String name); 40 41 44 public String dtdName(); 45 public boolean isRoot(); 46 public Bean _getParent(); 47 public Bean _getRoot(); 48 49 52 public String name(); 53 public boolean hasName(String name); 54 public int indexToId(String name, int index); 55 public int idToIndex(String name, int id); 56 public Bean propertyById(String name, int id); 57 public Object getValueById(String name, int id); 58 public void setValue(String name, Object value); 59 public void setValue(String name, int index, Object value); 60 public void setValueById(String name, int id, Object value); 61 public int removeValue(String name, Object value); 62 public int addValue(String name, Object value); 63 public Object getValue(String name); 64 public Object getValue(String name, int index); 65 public Object [] getValues(String name); 66 public BaseProperty getProperty(); 67 public BaseProperty getProperty(String propName); 68 public BaseProperty[] listProperties(); 69 70 73 public void childBeans(boolean recursive, java.util.List beans); 74 } 75 | Popular Tags |