Modifier and Type | Field and Description |
---|---|
private boolean |
failed |
private boolean |
nestedInNamingContainer |
private int |
requiresIdCount |
private java.lang.StringBuffer |
requiresIdList |
private boolean |
siblingSatisfied |
private ValidatorInfo |
validatorInfo |
Constructor and Description |
---|
IdTagParserImpl()
CommandTagParser constructor
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getMessage()
Get the failure message
|
boolean |
hasFailed()
Return false if validator conditions have not been met
|
private boolean |
hasIdAttribute(org.xml.sax.Attributes a)
Check element to make sure that the id attribute is
present.
|
private boolean |
isNamingContainerTag(FacesValidator validator,
java.lang.String ns,
java.lang.String ln)
Check to make sure that the element is either a
form tag or a subview tag.
|
void |
parseEndElement()
Parse the ending element.
|
void |
parseStartElement()
Parse the starting element.
|
void |
setValidatorInfo(ValidatorInfo validatorInfo)
Set the validator info object that has the current tag
information
|
private boolean siblingSatisfied
private int requiresIdCount
private java.lang.StringBuffer requiresIdList
private boolean failed
private ValidatorInfo validatorInfo
private boolean nestedInNamingContainer
public void setValidatorInfo(ValidatorInfo validatorInfo)
Set the validator info object that has the current tag information
setValidatorInfo
in interface TagParser
validatorInfo
- object with current tag infopublic java.lang.String getMessage()
Get the failure message
getMessage
in interface TagParser
public boolean hasFailed()
Return false if validator conditions have not been met
public void parseStartElement()
Parse the starting element. If it is a specific JSTL tag make sure that the nested JSF tags have IDs.
parseStartElement
in interface TagParser
public void parseEndElement()
Parse the ending element. If it is a specific JSTL tag make sure that the appropriate flags are set.
parseEndElement
in interface TagParser
private boolean hasIdAttribute(org.xml.sax.Attributes a)
Check element to make sure that the id attribute is present.
a
- Attribute listprivate boolean isNamingContainerTag(FacesValidator validator, java.lang.String ns, java.lang.String ln)
validator
- Parent validatorns
- The Namespace.ln
- The Local Name.Copyright © 2002-2013 Oracle America, Inc. All Rights Reserved.