|
What this is
Other links
The source code/* * Sun Public License Notice * * The contents of this file are subject to the Sun Public License * Version 1.0 (the "License"). You may not use this file except in * compliance with the License. A copy of the License is available at * http://www.sun.com/ * * The Original Code is NetBeans. The Initial Developer of the Original * Code is Sun Microsystems, Inc. Portions Copyright 1997-2002 Sun * Microsystems, Inc. All Rights Reserved. */ package org.netbeans.modules.web.monitor.data; import org.w3c.dom.*; import org.netbeans.modules.schema2beans.*; import java.beans.*; import java.util.*; public class Dispatches extends BaseBean { static Vector comparators = new Vector(); static public final String DISPATCHDATA = "DispatchData"; // NOI18N public Dispatches() { this(Common.USE_DEFAULT_VALUES); } public Dispatches(int options) { super(comparators, new org.netbeans.modules.schema2beans.Version(1, 0, 8)); // Properties (see root bean comments for the bean graph) this.createProperty("DispatchData", // NOI18N DISPATCHDATA, Common.TYPE_0_N | Common.TYPE_BEAN | Common.TYPE_KEY, DispatchData.class); this.createAttribute(DISPATCHDATA, "resource", "Resource", //NOI18N AttrProp.CDATA | AttrProp.REQUIRED, null, null); this.initialize(options); } // Setting the default values of the properties void initialize(int options) { } // This attribute is an array, possibly empty public void setDispatchData(int index, DispatchData value) { this.setValue(DISPATCHDATA, index, value); } // public DispatchData getDispatchData(int index) { return (DispatchData)this.getValue(DISPATCHDATA, index); } // This attribute is an array, possibly empty public void setDispatchData(DispatchData[] value) { this.setValue(DISPATCHDATA, value); } // public DispatchData[] getDispatchData() { return (DispatchData[])this.getValues(DISPATCHDATA); } // Return the number of properties public int sizeDispatchData() { return this.size(DISPATCHDATA); } // Add a new element returning its index in the list public int addDispatchData(DispatchData value) { return this.addValue(DISPATCHDATA, value); } // Remove an element using its reference // Returns the index the element had in the list public int removeDispatchData(DispatchData value) { return this.removeValue(DISPATCHDATA, value); } // This method verifies that the mandatory properties are set public boolean verify() { return true; } // static public void addComparator(BeanComparator c) { comparators.add(c); } // static public void removeComparator(BeanComparator c) { comparators.remove(c); } // Dump the content of this bean returning it as a String public void dump(StringBuffer str, String indent) { String s; Object o; BaseBean n; str.append(indent); str.append("DispatchData["+this.sizeDispatchData()+"]"); // NOI18N for(int i=0; i |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.