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

ObjectFive

public class ObjectFive extends org.netbeans.modules.schema2beans.BaseBean
This generated bean class ObjectFive matches the schema element object-five 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
Constructors Summary
public ObjectFive()

	// NOI18N

	  
		this(Common.USE_DEFAULT_VALUES);
	
public ObjectFive(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.initialize(options);
	
Methods Summary
public static voidaddComparator(org.netbeans.modules.schema2beans.BeanComparator c)

		comparators.add(c);
	
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);

	
public java.lang.StringdumpBeanNode()

		StringBuffer str = new StringBuffer();
		str.append("ObjectFive\n");	// NOI18N
		this.dump(str, "\n  ");	// NOI18N
		return str.toString();
	
public java.lang.StringgetPropertyOne()

		return (String)this.getValue(PROPERTY_ONE);
	
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 voidsetPropertyOne(java.lang.String value)

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

		this.setValue(PROPERTY_TWO, value);
	
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) {
		}