com.sun.faces.config.beans
Class ValidatorBean

java.lang.Object
  extended by com.sun.faces.config.beans.FeatureBean
      extended by com.sun.faces.config.beans.ValidatorBean
All Implemented Interfaces:
AttributeHolder, PropertyHolder

public class ValidatorBean
extends FeatureBean
implements AttributeHolder, PropertyHolder

Configuration bean for <attribute> element.


Constructor Summary
ValidatorBean()
           
 
Method Summary
 void addAttribute(AttributeBean descriptor)
          Add the specified attribute descriptor, replacing any existing descriptor for this attribute name.
 void addProperty(PropertyBean descriptor)
          Add the specified property descriptor, replacing any existing descriptor for this property name.
 AttributeBean getAttribute(java.lang.String name)
          Return the attribute descriptor for the specified attribute name, if any; otherwise, return null.
 AttributeBean[] getAttributes()
          Return the descriptors of all attributes for which descriptors have been registered, or an empty array if none have been registered.
 PropertyBean[] getProperties()
          Return the descriptors of all properties for which descriptors have been registered, or an empty array if none have been registered.
 PropertyBean getProperty(java.lang.String name)
          Return the property descriptor for the specified property name, if any; otherwise, return null.
 java.lang.String getValidatorClass()
           
 java.lang.String getValidatorId()
           
 void removeAttribute(AttributeBean descriptor)
          Deregister the specified attribute descriptor, if it is registered.
 void removeProperty(PropertyBean descriptor)
          Deregister the specified property descriptor, if it is registered.
 void setValidatorClass(java.lang.String validatorClass)
           
 void setValidatorId(java.lang.String validatorId)
           
 
Methods inherited from class com.sun.faces.config.beans.FeatureBean
addDescription, addDisplayName, addIcon, getDescription, getDescriptions, getDisplayName, getDisplayNames, getIcon, getIcons, removeDescription, removeDisplayName, removeIcon
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValidatorBean

public ValidatorBean()
Method Detail

getValidatorClass

public java.lang.String getValidatorClass()

setValidatorClass

public void setValidatorClass(java.lang.String validatorClass)

getValidatorId

public java.lang.String getValidatorId()

setValidatorId

public void setValidatorId(java.lang.String validatorId)

addAttribute

public void addAttribute(AttributeBean descriptor)
Description copied from interface: AttributeHolder

Add the specified attribute descriptor, replacing any existing descriptor for this attribute name.

Specified by:
addAttribute in interface AttributeHolder
Parameters:
descriptor - Descriptor to be added

getAttribute

public AttributeBean getAttribute(java.lang.String name)
Description copied from interface: AttributeHolder

Return the attribute descriptor for the specified attribute name, if any; otherwise, return null.

Specified by:
getAttribute in interface AttributeHolder
Parameters:
name - Name of the attribute for which to retrieve a descriptor

getAttributes

public AttributeBean[] getAttributes()
Description copied from interface: AttributeHolder

Return the descriptors of all attributes for which descriptors have been registered, or an empty array if none have been registered.

Specified by:
getAttributes in interface AttributeHolder

removeAttribute

public void removeAttribute(AttributeBean descriptor)
Description copied from interface: AttributeHolder

Deregister the specified attribute descriptor, if it is registered.

Specified by:
removeAttribute in interface AttributeHolder
Parameters:
descriptor - Descriptor to be removed

addProperty

public void addProperty(PropertyBean descriptor)
Description copied from interface: PropertyHolder

Add the specified property descriptor, replacing any existing descriptor for this property name.

Specified by:
addProperty in interface PropertyHolder
Parameters:
descriptor - Descriptor to be added

getProperty

public PropertyBean getProperty(java.lang.String name)
Description copied from interface: PropertyHolder

Return the property descriptor for the specified property name, if any; otherwise, return null.

Specified by:
getProperty in interface PropertyHolder
Parameters:
name - Name of the property for which to retrieve a descriptor

getProperties

public PropertyBean[] getProperties()
Description copied from interface: PropertyHolder

Return the descriptors of all properties for which descriptors have been registered, or an empty array if none have been registered.

Specified by:
getProperties in interface PropertyHolder

removeProperty

public void removeProperty(PropertyBean descriptor)
Description copied from interface: PropertyHolder

Deregister the specified property descriptor, if it is registered.

Specified by:
removeProperty in interface PropertyHolder
Parameters:
descriptor - Descriptor to be removed


Copyright ? 2002-2006 Sun Microsystems, Inc. All Rights Reserved.