FileDocCategorySizeDatePackage
Web.javaAPI DocGlassfish v2 API7198Fri May 04 22:34:40 BST 2007com.sun.enterprise.tools.common.dd.application

Web

public class Web extends com.sun.enterprise.tools.common.dd.SunBaseBean
This generated bean class Web matches the schema element web Generated on Thu Jul 31 15:31:46 PDT 2003

Fields Summary
static Vector
comparators
public static final String
WEB_URI
public static final String
CONTEXT_ROOT
Constructors Summary
public Web()

	// NOI18N

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

		super(comparators, new org.netbeans.modules.schema2beans.Version(1, 2, 0));
		// Properties (see root bean comments for the bean graph)
		this.createProperty("web-uri", 	// NOI18N
			WEB_URI, 
			Common.TYPE_1 | Common.TYPE_STRING | Common.TYPE_KEY, 
			String.class);
		this.createProperty("context-root", 	// NOI18N
			CONTEXT_ROOT, 
			Common.TYPE_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("WebUri");	// NOI18N
		str.append(indent+"\t");	// NOI18N
		str.append("<");	// NOI18N
		s = this.getWebUri();
		str.append((s==null?"null":s.trim()));	// NOI18N
		str.append(">\n");	// NOI18N
		this.dumpAttributes(WEB_URI, 0, str, indent);

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

	
public java.lang.StringdumpBeanNode()

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

		return (String)this.getValue(CONTEXT_ROOT);
	
public java.lang.StringgetWebUri()

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

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

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

		this.setValue(CONTEXT_ROOT, value);
	
public voidsetWebUri(java.lang.String value)

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

		boolean restrictionFailure = false;
		// Validating property webUri
		if (getWebUri() == null) {
			throw new org.netbeans.modules.schema2beans.ValidateException("getWebUri() == null", "webUri", this);	// NOI18N
		}
		// Validating property contextRoot
		if (getContextRoot() == null) {
			throw new org.netbeans.modules.schema2beans.ValidateException("getContextRoot() == null", "contextRoot", this);	// NOI18N
		}