1 19 20 package com.sslexplorer.boot; 21 22 import java.io.ByteArrayOutputStream ; 23 import java.io.IOException ; 24 import java.io.ObjectOutputStream ; 25 import java.util.Collection ; 26 27 28 33 public interface PropertyClass extends Comparable <PropertyClass> { 34 39 public String getName(); 40 41 46 public void registerPropertyDefinition(PropertyDefinition propertyDefinition); 47 48 53 public void deregisterPropertyDefinition(String propertyDefinitionName); 54 55 61 public PropertyDefinition getDefinition(String name); 62 63 68 public Collection <PropertyDefinition> getDefinitions(); 69 70 80 public String retrieveProperty(AbstractPropertyKey key) throws IllegalArgumentException ; 81 82 83 94 public int retrievePropertyInt(AbstractPropertyKey key) throws IllegalArgumentException ; 95 96 107 public long retrievePropertyLong(AbstractPropertyKey key) throws IllegalArgumentException ; 108 109 122 public boolean retrievePropertyBoolean(AbstractPropertyKey key) throws IllegalArgumentException ; 123 124 135 public PropertyList retrievePropertyList(AbstractPropertyKey key) throws IllegalArgumentException ; 136 137 145 public void addPropertyDefinitionCategory(int parentId, PropertyDefinitionCategory category); 146 147 154 public void removePropertyDefinitionCategory(int parentId, PropertyDefinitionCategory category); 155 156 162 public Collection <PropertyDefinitionCategory> getCategories(); 163 164 171 public PropertyDefinitionCategory getPropertyDefinitionCategory(int id); 172 173 185 public String storeProperty(AbstractPropertyKey key, String value) throws IllegalArgumentException ; 186 187 194 public boolean isSupportsReplacementVariablesInValues(); 195 196 203 public boolean isDefinitionExists(String name); 204 205 215 public void setAutoCommit(boolean autoCommit); 216 217 222 public void commit(); 223 224 227 public void clearPropertyDefinitions(); 228 229 232 public void clearPropertyDefinitionCategories(); 233 234 239 public void addPropertyDefinitions(Collection <PropertyDefinition> propertyDefinitions); 240 241 246 public void addPropertyDefinitionCategories(Collection <PropertyDefinitionCategory> propertyDefinitionCategories); 247 248 255 public void store() throws IOException ; 256 257 260 public void reset(); 261 262 267 public void restore() throws IOException ; 268 } 269 | Popular Tags |