public class ValidatorBean extends FeatureBean implements AttributeHolder, PropertyHolder
Configuration bean for <attribute> element.
| Constructor and Description |
|---|
ValidatorBean() |
| Modifier and Type | Method and Description |
|---|---|
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(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(String name)
Return the property descriptor for the specified property name,
if any; otherwise, return
null. |
String |
getValidatorClass() |
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(String validatorClass) |
void |
setValidatorId(String validatorId) |
addDescription, addDisplayName, addIcon, getDescription, getDescriptions, getDisplayName, getDisplayNames, getIcon, getIcons, removeDescription, removeDisplayName, removeIconpublic String getValidatorClass()
public void setValidatorClass(String validatorClass)
public String getValidatorId()
public void setValidatorId(String validatorId)
public void addAttribute(AttributeBean descriptor)
AttributeHolderAdd the specified attribute descriptor, replacing any existing descriptor for this attribute name.
addAttribute in interface AttributeHolderdescriptor - Descriptor to be addedpublic AttributeBean getAttribute(String name)
AttributeHolderReturn the attribute descriptor for the specified attribute name,
if any; otherwise, return null.
getAttribute in interface AttributeHoldername - Name of the attribute for which to retrieve a descriptorpublic AttributeBean[] getAttributes()
AttributeHolderReturn the descriptors of all attributes for which descriptors have been registered, or an empty array if none have been registered.
getAttributes in interface AttributeHolderpublic void removeAttribute(AttributeBean descriptor)
AttributeHolderDeregister the specified attribute descriptor, if it is registered.
removeAttribute in interface AttributeHolderdescriptor - Descriptor to be removedpublic void addProperty(PropertyBean descriptor)
PropertyHolderAdd the specified property descriptor, replacing any existing descriptor for this property name.
addProperty in interface PropertyHolderdescriptor - Descriptor to be addedpublic PropertyBean getProperty(String name)
PropertyHolderReturn the property descriptor for the specified property name,
if any; otherwise, return null.
getProperty in interface PropertyHoldername - Name of the property for which to retrieve a descriptorpublic PropertyBean[] getProperties()
PropertyHolderReturn the descriptors of all properties for which descriptors have been registered, or an empty array if none have been registered.
getProperties in interface PropertyHolderpublic void removeProperty(PropertyBean descriptor)
PropertyHolderDeregister the specified property descriptor, if it is registered.
removeProperty in interface PropertyHolderdescriptor - Descriptor to be removedCopyright © 2010–2019 JBoss by Red Hat. All rights reserved.