1 23 24 package com.sun.enterprise.deployment.runtime.web; 25 26 import com.sun.enterprise.deployment.runtime.RuntimeDescriptor; 27 28 33 public class WebPropertyContainer extends RuntimeDescriptor { 34 35 static public final String NAME = "Name"; static public final String VALUE = "Value"; static public final String PROPERTY = "WebProperty"; 39 public WebPropertyContainer(WebPropertyContainer other) 41 { 42 super(other); 43 } 44 45 public WebPropertyContainer() 47 { 48 super(); 49 } 50 51 public void setWebProperty(int index, WebProperty value) 53 { 54 this.setValue(PROPERTY, index, value); 55 } 56 57 public WebProperty getWebProperty(int index) 59 { 60 return (WebProperty)this.getValue(PROPERTY, index); 61 } 62 63 public void setWebProperty(WebProperty[] value) 65 { 66 this.setValue(PROPERTY, value); 67 } 68 69 public WebProperty[] getWebProperty() 71 { 72 WebProperty[] props = (WebProperty[])this.getValues(PROPERTY); 73 if (props==null) { 74 return new WebProperty[0]; 75 } else { 76 return props; 77 } 78 } 79 80 public int sizeWebProperty() 82 { 83 return this.size(PROPERTY); 84 } 85 86 public int addWebProperty(WebProperty value) 88 { 89 return this.addValue(PROPERTY, value); 90 } 91 92 public int removeWebProperty(WebProperty value) 97 { 98 return this.removeValue(PROPERTY, value); 99 } 100 101 public boolean verify() 103 { 104 return true; 105 } 106 } 107 | Popular Tags |