FileDocCategorySizeDatePackage
Configs.javaAPI DocGlassfish v2 API5913Fri May 26 10:47:04 BST 2006com.sun.enterprise.config.serverbeans

Configs

public class Configs extends com.sun.enterprise.config.ConfigBean implements Serializable
This generated bean class Configs matches the DTD element configs

Fields Summary
static Vector
comparators
private static final org.netbeans.modules.schema2beans.Version
runtimeVersion
public static final String
CONFIG
Constructors Summary
public Configs()


	  
		this(Common.USE_DEFAULT_VALUES);
	
public Configs(int options)

		super(comparators, runtimeVersion);
		// Properties (see root bean comments for the bean graph)
		initPropertyTables(1);
		this.createProperty("config", CONFIG, 
			Common.TYPE_1_N | Common.TYPE_BEAN | Common.TYPE_KEY, 
			Config.class);
		this.createAttribute(CONFIG, "name", "Name", 
						AttrProp.CDATA | AttrProp.REQUIRED,
						null, null);
		this.createAttribute(CONFIG, "dynamic-reconfiguration-enabled", "DynamicReconfigurationEnabled", 
						AttrProp.CDATA,
						null, "true");
		this.initialize(options);
	
Methods Summary
public static voidaddComparator(org.netbeans.modules.schema2beans.BeanComparator c)

		comparators.add(c);
	
public intaddConfig(Config value)

		return addConfig(value, true);
	
public intaddConfig(Config value, boolean overwrite)

		Config old = getConfigByName(value.getName());
		if(old != null) {
			throw new ConfigException(StringManager.getManager(Configs.class).getString("cannotAddDuplicate",  "Config"));
		}
		return this.addValue(CONFIG, value, overwrite);
	
public voiddump(java.lang.StringBuffer str, java.lang.String indent)

		String s;
		Object o;
		org.netbeans.modules.schema2beans.BaseBean n;
		str.append(indent);
		str.append("Config["+this.sizeConfig()+"]");	// NOI18N
		for(int i=0; i<this.sizeConfig(); i++)
		{
			str.append(indent+"\t");
			str.append("#"+i+":");
			n = (org.netbeans.modules.schema2beans.BaseBean) this.getConfig(i);
			if (n != null)
				n.dump(str, indent + "\t");	// NOI18N
			else
				str.append(indent+"\tnull");	// NOI18N
			this.dumpAttributes(CONFIG, i, str, indent);
		}

	
public java.lang.StringdumpBeanNode()

		StringBuffer str = new StringBuffer();
		str.append("Configs\n");	// NOI18N
		this.dump(str, "\n  ");	// NOI18N
		return str.toString();
	
public ConfiggetConfig(int index)

		return (Config)this.getValue(CONFIG, index);
	
public Config[]getConfig()

		return (Config[])this.getValues(CONFIG);
	
public ConfiggetConfigByName(java.lang.String id)

	 if (null != id) { id = id.trim(); }
	Config[] o = getConfig();
	 if (o == null) return null;

	 for (int i=0; i < o.length; i++) {
	     if(o[i].getAttributeValue(Common.convertName(ServerTags.NAME)).equals(id)) {
	         return o[i];
	     }
	 }

		return null;
		
	
public static java.lang.StringgetDefaultAttributeValue(java.lang.String attr)

		if(attr == null) return null;
		attr = attr.trim();
	return null;
	
protected java.lang.StringgetRelativeXPath()
get the xpath representation for this element returns something like abc[@name='value'] or abc depending on the type of the bean

	    String ret = null;
	    ret = "configs";
	    return (null != ret ? ret.trim() : null);
	
voidinitialize(int options)


	
public ConfignewConfig()
Create a new bean using it's default constructor. This does not add it to any bean graph.

		return new Config();
	
public static voidremoveComparator(org.netbeans.modules.schema2beans.BeanComparator c)

		comparators.remove(c);
	
public intremoveConfig(Config value)

		return this.removeValue(CONFIG, value);
	
public intremoveConfig(Config value, boolean overwrite)

		return this.removeValue(CONFIG, value, overwrite);
	
public voidsetConfig(Config[] value)

		this.setValue(CONFIG, value);
	
public intsizeConfig()

		return this.size(CONFIG);
	
public voidvalidate()