FileDocCategorySizeDatePackage
ChildObjectFour.javaAPI DocGlassfish v2 API10842Fri May 04 22:35:20 BST 2007com.sun.enterprise.tools.common.validation.samples.simple.beans

ChildObjectFour

public class ChildObjectFour extends org.netbeans.modules.schema2beans.BaseBean
This generated bean class ChildObjectFour matches the schema element child-object-four Generated on Wed Aug 20 09:25:27 PDT 2003

Fields Summary
static Vector
comparators
public static final String
PROPERTY_ONE
public static final String
PROPERTY_TWO
public static final String
PROPERTY_THREE
public static final String
PROPERTY_FOUR
Constructors Summary
public ChildObjectFour()

	// NOI18N

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

		super(comparators, new org.netbeans.modules.schema2beans.Version(1, 2, 0));
		// Properties (see root bean comments for the bean graph)
		this.createProperty("property-one", 	// NOI18N
			PROPERTY_ONE, 
			Common.TYPE_1 | Common.TYPE_STRING | Common.TYPE_KEY, 
			String.class);
		this.createProperty("property-two", 	// NOI18N
			PROPERTY_TWO, 
			Common.TYPE_0_1 | Common.TYPE_STRING | Common.TYPE_KEY, 
			String.class);
		this.createProperty("property-three", 	// NOI18N
			PROPERTY_THREE, 
			Common.TYPE_1_N | Common.TYPE_STRING | Common.TYPE_KEY, 
			String.class);
		this.createProperty("property-four", 	// NOI18N
			PROPERTY_FOUR, 
			Common.TYPE_0_N | Common.TYPE_STRING | Common.TYPE_KEY, 
			String.class);
		this.initialize(options);
	
Methods Summary
public static voidaddComparator(org.netbeans.modules.schema2beans.BeanComparator c)

		comparators.add(c);
	
public intaddPropertyFour(java.lang.String value)

		return this.addValue(PROPERTY_FOUR, value);
	
public intaddPropertyThree(java.lang.String value)

		return this.addValue(PROPERTY_THREE, value);
	
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("PropertyOne");	// NOI18N
		str.append(indent+"\t");	// NOI18N
		str.append("<");	// NOI18N
		s = this.getPropertyOne();
		str.append((s==null?"null":s.trim()));	// NOI18N
		str.append(">\n");	// NOI18N
		this.dumpAttributes(PROPERTY_ONE, 0, str, indent);

		str.append(indent);
		str.append("PropertyTwo");	// NOI18N
		str.append(indent+"\t");	// NOI18N
		str.append("<");	// NOI18N
		s = this.getPropertyTwo();
		str.append((s==null?"null":s.trim()));	// NOI18N
		str.append(">\n");	// NOI18N
		this.dumpAttributes(PROPERTY_TWO, 0, str, indent);

		str.append(indent);
		str.append("PropertyThree["+this.sizePropertyThree()+"]");	// NOI18N
		for(int i=0; i<this.sizePropertyThree(); i++)
		{
			str.append(indent+"\t");
			str.append("#"+i+":");
			str.append(indent+"\t");	// NOI18N
			str.append("<");	// NOI18N
			s = this.getPropertyThree(i);
			str.append((s==null?"null":s.trim()));	// NOI18N
			str.append(">\n");	// NOI18N
			this.dumpAttributes(PROPERTY_THREE, i, str, indent);
		}

		str.append(indent);
		str.append("PropertyFour["+this.sizePropertyFour()+"]");	// NOI18N
		for(int i=0; i<this.sizePropertyFour(); i++)
		{
			str.append(indent+"\t");
			str.append("#"+i+":");
			str.append(indent+"\t");	// NOI18N
			str.append("<");	// NOI18N
			s = this.getPropertyFour(i);
			str.append((s==null?"null":s.trim()));	// NOI18N
			str.append(">\n");	// NOI18N
			this.dumpAttributes(PROPERTY_FOUR, i, str, indent);
		}

	
public java.lang.StringdumpBeanNode()

		StringBuffer str = new StringBuffer();
		str.append("ChildObjectFour\n");	// NOI18N
		this.dump(str, "\n  ");	// NOI18N
		return str.toString();
	
public java.lang.StringgetPropertyFour(int index)

		return (String)this.getValue(PROPERTY_FOUR, index);
	
public java.lang.String[]getPropertyFour()

		return (String[])this.getValues(PROPERTY_FOUR);
	
public java.lang.StringgetPropertyOne()

		return (String)this.getValue(PROPERTY_ONE);
	
public java.lang.String[]getPropertyThree()

		return (String[])this.getValues(PROPERTY_THREE);
	
public java.lang.StringgetPropertyThree(int index)

		return (String)this.getValue(PROPERTY_THREE, index);
	
public java.lang.StringgetPropertyTwo()

		return (String)this.getValue(PROPERTY_TWO);
	
voidinitialize(int options)

				
	
public static voidremoveComparator(org.netbeans.modules.schema2beans.BeanComparator c)

		comparators.remove(c);
	
public intremovePropertyFour(java.lang.String value)

		return this.removeValue(PROPERTY_FOUR, value);
	
public intremovePropertyThree(java.lang.String value)

		return this.removeValue(PROPERTY_THREE, value);
	
public voidsetPropertyFour(int index, java.lang.String value)

		this.setValue(PROPERTY_FOUR, index, value);
	
public voidsetPropertyFour(java.lang.String[] value)

		this.setValue(PROPERTY_FOUR, value);
	
public voidsetPropertyOne(java.lang.String value)

		this.setValue(PROPERTY_ONE, value);
	
public voidsetPropertyThree(java.lang.String[] value)

		this.setValue(PROPERTY_THREE, value);
	
public voidsetPropertyThree(int index, java.lang.String value)

		this.setValue(PROPERTY_THREE, index, value);
	
public voidsetPropertyTwo(java.lang.String value)

		this.setValue(PROPERTY_TWO, value);
	
public intsizePropertyFour()

		return this.size(PROPERTY_FOUR);
	
public intsizePropertyThree()

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

		boolean restrictionFailure = false;
		// Validating property propertyOne
		if (getPropertyOne() == null) {
			throw new org.netbeans.modules.schema2beans.ValidateException("getPropertyOne() == null", "propertyOne", this);	// NOI18N
		}
		// Validating property propertyTwo
		if (getPropertyTwo() != null) {
		}
		// Validating property propertyThree
		if (sizePropertyThree() == 0) {
			throw new org.netbeans.modules.schema2beans.ValidateException("sizePropertyThree() == 0", "propertyThree", this);	// NOI18N
		}
		for (int _index = 0; _index < sizePropertyThree(); ++_index) {
			String element = getPropertyThree(_index);
			if (element != null) {
			}
		}
		// Validating property propertyFour
		for (int _index = 0; _index < sizePropertyFour(); ++_index) {
			String element = getPropertyFour(_index);
			if (element != null) {
			}
		}