public abstract class ValidatorFamily
extends javax.faces.component.UIComponentBase
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COMPONENT_FAMILY
The standard component family.
|
Constructor and Description |
---|
ValidatorFamily() |
Modifier and Type | Method and Description |
---|---|
void |
encodeChildren(javax.faces.context.FacesContext context)
Calls
validateHierarchy() . |
java.lang.String |
getFamily()
Returns
COMPONENT_FAMILY . |
boolean |
getRendersChildren()
Returns
true . |
void |
processDecodes(javax.faces.context.FacesContext context)
Calls
validateHierarchy() . |
void |
processUpdates(javax.faces.context.FacesContext context)
Does nothing.
|
void |
processValidators(javax.faces.context.FacesContext context)
|
protected abstract void |
validateComponents(javax.faces.context.FacesContext context)
Perform the actual validation.
|
protected abstract void |
validateHierarchy()
Validate our own component hierarchy.
|
addClientBehavior, addFacesListener, broadcast, clearInitialState, decode, encodeBegin, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientBehaviors, getClientId, getDefaultEventName, getEventNames, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getParent, getRenderer, getRendererType, getValueBinding, invokeOnComponent, isRendered, isTransient, markInitialState, processRestoreState, processSaveState, queueEvent, removeFacesListener, restoreAttachedState, restoreState, saveAttachedState, saveState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding
encodeAll, getClientId, getCompositeComponentParent, getContainerClientId, getCurrentComponent, getCurrentCompositeComponent, getListenersForEventClass, getNamingContainer, getResourceBundleMap, getStateHelper, getStateHelper, getValueExpression, initialStateMarked, isCompositeComponent, isInView, isVisitable, popComponentFromEL, processEvent, pushComponentToEL, setInView, setValueExpression, subscribeToEvent, unsubscribeFromEvent, visitTree
public static final java.lang.String COMPONENT_FAMILY
public java.lang.String getFamily()
COMPONENT_FAMILY
.getFamily
in class javax.faces.component.UIComponent
public boolean getRendersChildren()
true
.getRendersChildren
in class javax.faces.component.UIComponentBase
public void processDecodes(javax.faces.context.FacesContext context)
validateHierarchy()
.processDecodes
in class javax.faces.component.UIComponentBase
public void processValidators(javax.faces.context.FacesContext context)
processValidators
in class javax.faces.component.UIComponentBase
public void processUpdates(javax.faces.context.FacesContext context)
processUpdates
in class javax.faces.component.UIComponentBase
public void encodeChildren(javax.faces.context.FacesContext context) throws java.io.IOException
validateHierarchy()
.encodeChildren
in class javax.faces.component.UIComponentBase
java.io.IOException
protected abstract void validateHierarchy() throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
- When component hierarchy is wrong.protected abstract void validateComponents(javax.faces.context.FacesContext context)
context
- The faces context to work with.