FileDocCategorySizeDatePackage
Check.javaAPI DocGlassfish v2 API7060Fri May 04 22:35:00 BST 2007com.sun.enterprise.tools.common.validation.data

Check

public class Check extends org.netbeans.modules.schema2beans.BaseBean

Fields Summary
static Vector
comparators
public static final String
NAME
public static final String
PARAMETERS
Constructors Summary
public Check()

	// NOI18N

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

		super(comparators, new org.netbeans.modules.schema2beans.Version(1, 2, 0));
		// Properties (see root bean comments for the bean graph)
		this.createProperty("name", 	// NOI18N
			NAME, 
			Common.TYPE_1 | Common.TYPE_STRING | Common.TYPE_KEY, 
			String.class);
		this.createProperty("parameters", 	// NOI18N
			PARAMETERS, 
			Common.TYPE_0_1 | Common.TYPE_BEAN | Common.TYPE_KEY, 
			Parameters.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("Name");	// NOI18N
		str.append(indent+"\t");	// NOI18N
		str.append("<");	// NOI18N
		s = this.getName();
		str.append((s==null?"null":s.trim()));	// NOI18N
		str.append(">\n");	// NOI18N
		this.dumpAttributes(NAME, 0, str, indent);

		str.append(indent);
		str.append("Parameters");	// NOI18N
		n = (org.netbeans.modules.schema2beans.BaseBean) this.getParameters();
		if (n != null)
			n.dump(str, indent + "\t");	// NOI18N
		else
			str.append(indent+"\tnull");	// NOI18N
		this.dumpAttributes(PARAMETERS, 0, str, indent);

	
public java.lang.StringdumpBeanNode()

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

		return (String)this.getValue(NAME);
	
public ParametersgetParameters()

		return (Parameters)this.getValue(PARAMETERS);
	
voidinitialize(int options)

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

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

		this.setValue(NAME, value);
	
public voidsetParameters(Parameters value)

		this.setValue(PARAMETERS, value);
	
public voidvalidate()

		boolean restrictionFailure = false;
		// Validating property name
		if (getName() == null) {
			throw new org.netbeans.modules.schema2beans.ValidateException("getName() == null", "name", this);	// NOI18N
		}
		// Validating property parameters
		if (getParameters() != null) {
			getParameters().validate();
		}