|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.faces.component.UIComponent javax.faces.component.UIComponentBase org.omnifaces.component.validator.ValidatorFamily
public abstract class ValidatorFamily
Base class which is to be shared between all components of the Validator family.
Field Summary | |
---|---|
static java.lang.String |
COMPONENT_FAMILY
The standard component family. |
Fields inherited from class javax.faces.component.UIComponent |
---|
BEANINFO_KEY, bindings, COMPOSITE_COMPONENT_TYPE_KEY, COMPOSITE_FACET_NAME, CURRENT_COMPONENT, CURRENT_COMPOSITE_COMPONENT, FACETS_KEY, VIEW_LOCATION_KEY |
Constructor Summary | |
---|---|
ValidatorFamily()
|
Method Summary | |
---|---|
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)
Calls validateComponents(FacesContext) . |
protected abstract void |
validateComponents(javax.faces.context.FacesContext context)
Perform the actual validation. |
protected abstract void |
validateHierarchy()
Validate our own component hierarchy. |
Methods inherited from class javax.faces.component.UIComponentBase |
---|
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 |
Methods inherited from class javax.faces.component.UIComponent |
---|
encodeAll, getClientId, getCompositeComponentParent, getContainerClientId, getCurrentComponent, getCurrentCompositeComponent, getListenersForEventClass, getNamingContainer, getResourceBundleMap, getStateHelper, getStateHelper, getValueExpression, initialStateMarked, isCompositeComponent, isInView, isVisitable, popComponentFromEL, processEvent, pushComponentToEL, setInView, setValueExpression, subscribeToEvent, unsubscribeFromEvent, visitTree |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String COMPONENT_FAMILY
Constructor Detail |
---|
public ValidatorFamily()
Method Detail |
---|
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)
validateComponents(FacesContext)
.
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.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |