public class XMLViewBuilder extends DefaultHandler implements ViewBuilder
Modifier and Type | Class and Description |
---|---|
protected static class |
XMLViewBuilder.AttributeElement |
protected static class |
XMLViewBuilder.FacetElement |
protected static class |
XMLViewBuilder.OtherElement |
protected static class |
XMLViewBuilder.PropertyElement |
Constructor and Description |
---|
XMLViewBuilder(FacesContext ctx,
String viewId) |
Modifier and Type | Method and Description |
---|---|
UIViewRoot |
buildView(FacesContext ctx,
String viewId) |
void |
characters(char[] ch,
int start,
int length) |
protected void |
endAttribute(String uri,
String localName,
String qName) |
void |
endDocument() |
void |
endElement(String uri,
String localName,
String qName) |
protected void |
endProperty(String uri,
String localName,
String qName) |
void |
error(SAXParseException e) |
void |
fatalError(SAXParseException e) |
boolean |
isCacheable() |
InputSource |
resolveEntity(String publicId,
String systemId) |
protected void |
startActionListener(String uri,
String localName,
String qName,
Attributes attributes) |
protected void |
startAttribute(String uri,
String localName,
String qName,
Attributes attributes) |
protected void |
startControl(String uri,
String localName,
String qName,
Attributes attributes) |
protected void |
startConverter(String uri,
String localName,
String qName,
Attributes attributes) |
void |
startDocument() |
void |
startElement(String uri,
String localName,
String qName,
Attributes attributes) |
protected void |
startFacet(String uri,
String localName,
String qName,
Attributes attributes) |
protected void |
startOther(String uri,
String localName,
String qName,
Attributes attributes) |
protected void |
startProperty(String uri,
String localName,
String qName,
Attributes attributes) |
protected void |
startValidator(String uri,
String localName,
String qName,
Attributes attributes) |
protected void |
startValueChangeListener(String uri,
String localName,
String qName,
Attributes attributes) |
protected void |
startView(String uri,
String localName,
String qName,
Attributes attributes) |
void |
warning(SAXParseException e) |
endPrefixMapping, ignorableWhitespace, notationDecl, processingInstruction, setDocumentLocator, skippedEntity, startPrefixMapping, unparsedEntityDecl
public static final String ELEMENT_ACTION_LISTENER
public static final String ELEMENT_ATTRIBUTE
public static final String ELEMENT_CONTROL
public static final String ELEMENT_CONVERTER
public static final String ELEMENT_FACET
public static final String ELEMENT_PROPERTY
public static final String ELEMENT_VALIDATOR
public static final String ELEMENT_VALUE_CHANGE_LISTENER
public static final String ELEMENT_VIEW
public static final String ACTION_LISTENER_TYPE
public static final String ATTRIBUTE_NAME
public static final String ATTRIBUTE_VALUE
public static final String CONVERTER_ID
public static final String CONTROL_ID
public static final String CONTROL_COMPONENT_TYPE
public static final String CONTROL_RENDERER_TYPE
public static final String FACET_NAME
public static final String PROPERTY_NAME
public static final String PROPERTY_VALUE
public static final String PROPERTY_SIGNATURE
public static final String PROPERTY_VALUE_CHANGE_LISTENER
public static final String PROPERTY_ACTION_LISTENER
public static final String VALIDATOR_ID
public static final String VALUE_CHANGE_LISTENER_TYPE
public static final String UNIQUE_ID_PREFIX
protected static final String DEFAULT_CHARACTER_ENCODING
protected String m_viewId
protected CachedControlBuilder m_root
protected int m_uniqueIdCount
protected FacesContext m_ctx
protected XMLViewBuilder.AttributeElement m_attribute
protected XMLViewBuilder.OtherElement m_other
protected XMLViewBuilder.PropertyElement m_property
protected static HashMap<com.webmethods.caf.faces.view.xml.XMLViewBuilder.ControlTypePair,com.webmethods.caf.faces.view.xml.XMLViewBuilder.ControlTypePair> remapControls
public XMLViewBuilder(FacesContext ctx, String viewId)
public boolean isCacheable()
isCacheable
in interface ViewBuilder
public UIViewRoot buildView(FacesContext ctx, String viewId) throws FacesException
buildView
in interface ViewBuilder
FacesException
public InputSource resolveEntity(String publicId, String systemId) throws SAXException, IOException
resolveEntity
in interface EntityResolver
resolveEntity
in class DefaultHandler
SAXException
IOException
public void startDocument() throws SAXException
startDocument
in interface ContentHandler
startDocument
in class DefaultHandler
SAXException
public void endDocument() throws SAXException
endDocument
in interface ContentHandler
endDocument
in class DefaultHandler
SAXException
public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException
startElement
in interface ContentHandler
startElement
in class DefaultHandler
SAXException
public void endElement(String uri, String localName, String qName) throws SAXException
endElement
in interface ContentHandler
endElement
in class DefaultHandler
SAXException
public void characters(char[] ch, int start, int length) throws SAXException
characters
in interface ContentHandler
characters
in class DefaultHandler
SAXException
public void fatalError(SAXParseException e) throws SAXException
fatalError
in interface ErrorHandler
fatalError
in class DefaultHandler
SAXException
public void error(SAXParseException e) throws SAXException
error
in interface ErrorHandler
error
in class DefaultHandler
SAXException
public void warning(SAXParseException e) throws SAXException
warning
in interface ErrorHandler
warning
in class DefaultHandler
SAXException
protected void startView(String uri, String localName, String qName, Attributes attributes) throws SAXException
SAXException
protected void startControl(String uri, String localName, String qName, Attributes attributes) throws SAXException
SAXException
protected void startConverter(String uri, String localName, String qName, Attributes attributes) throws SAXException
SAXException
protected void startValidator(String uri, String localName, String qName, Attributes attributes) throws SAXException
SAXException
protected void startActionListener(String uri, String localName, String qName, Attributes attributes) throws SAXException
SAXException
protected void startValueChangeListener(String uri, String localName, String qName, Attributes attributes) throws SAXException
SAXException
protected void startFacet(String uri, String localName, String qName, Attributes attributes) throws SAXException
SAXException
protected void startAttribute(String uri, String localName, String qName, Attributes attributes) throws SAXException
SAXException
protected void endAttribute(String uri, String localName, String qName) throws SAXException
SAXException
protected void startProperty(String uri, String localName, String qName, Attributes attributes) throws SAXException
SAXException
protected void endProperty(String uri, String localName, String qName) throws SAXException
SAXException
protected void startOther(String uri, String localName, String qName, Attributes attributes) throws SAXException
SAXException