FileDocCategorySizeDatePackage
ConstraintField.javaAPI DocGlassfish v2 API4459Fri May 04 22:31:54 BST 2007com.sun.enterprise.deployment.runtime.web

ConstraintField

public class ConstraintField extends com.sun.enterprise.deployment.runtime.RuntimeDescriptor
this class contains runtime information for the web bundle it was kept to be backward compatible with the schema2beans descriptors generated by iAS 7.0 engineering team.
author
Jerome Dochez

Fields Summary
public static final String
VALUE
public static final String
NAME
public static final String
SCOPE
public static final String
MATCH_EXPR
public static final String
CACHE_ON_MATCH
public static final String
CACHE_ON_MATCH_FAILURE
Constructors Summary
public ConstraintField(ConstraintField other)

        
      
    
	super(other);
    
public ConstraintField()

	setAttributeValue(SCOPE, "request.parameter");
	setAttributeValue(CACHE_ON_MATCH, "true");
	setAttributeValue(CACHE_ON_MATCH_FAILURE, "false");  
    
Methods Summary
public intaddValue(java.lang.String value)

	int index = this.addValue(VALUE, value);
	if (getAttributeValue(VALUE, index, MATCH_EXPR)==null)
	    setAttributeValue(VALUE, index, MATCH_EXPR, "equals");
	if (getAttributeValue(VALUE, index, CACHE_ON_MATCH)==null)	    
	    setAttributeValue(VALUE, index, CACHE_ON_MATCH, "true");
	if (getAttributeValue(VALUE, index, CACHE_ON_MATCH_FAILURE)==null)	    
	    setAttributeValue(VALUE, index, CACHE_ON_MATCH_FAILURE, "false");
	return index;
    
public java.lang.StringgetValue(int index)

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

	return (String[])this.getValues(VALUE);
    
public intremoveValue(java.lang.String value)

	return this.removeValue(VALUE, value);
    
public voidsetValue(int index, java.lang.String value)

	this.setValue(VALUE, index, value);
    
public voidsetValue(java.lang.String[] value)

	this.setValue(VALUE, value);
    
public intsizeValue()

	return this.size(VALUE);
    
public booleanverify()

	return true;