Class XMLViewBuilder
java.lang.Object
org.xml.sax.helpers.DefaultHandler
com.webmethods.caf.faces.view.xml.XMLViewBuilder
- All Implemented Interfaces:
ViewBuilder
,ContentHandler
,DTDHandler
,EntityResolver
,ErrorHandler
ViewBuilder that builds views from XML .view files.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static class
protected static class
protected static class
protected static class
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
static final String
static final String
protected static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
protected XMLViewBuilder.AttributeElement
protected FacesContext
This is only valid when parsing the view!protected XMLViewBuilder.OtherElement
protected XMLViewBuilder.PropertyElement
protected CachedControlBuilder
protected int
protected String
static final String
static final String
static final String
static final String
static final String
protected static HashMap<com.webmethods.caf.faces.view.xml.XMLViewBuilder.ControlTypePair,
com.webmethods.caf.faces.view.xml.XMLViewBuilder.ControlTypePair> static final String
static final String
static final String
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuildView
(FacesContext ctx, String viewId) void
characters
(char[] ch, int start, int length) protected void
endAttribute
(String uri, String localName, String qName) void
void
endElement
(String uri, String localName, String qName) protected void
endProperty
(String uri, String localName, String qName) void
void
boolean
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
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
Methods inherited from class org.xml.sax.helpers.DefaultHandler
endPrefixMapping, ignorableWhitespace, notationDecl, processingInstruction, setDocumentLocator, skippedEntity, startPrefixMapping, unparsedEntityDecl
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.xml.sax.ContentHandler
declaration
-
Field Details
-
ELEMENT_ACTION_LISTENER
- See Also:
-
ELEMENT_ATTRIBUTE
- See Also:
-
ELEMENT_CONTROL
- See Also:
-
ELEMENT_CONVERTER
- See Also:
-
ELEMENT_FACET
- See Also:
-
ELEMENT_PROPERTY
- See Also:
-
ELEMENT_VALIDATOR
- See Also:
-
ELEMENT_VALUE_CHANGE_LISTENER
- See Also:
-
ELEMENT_VIEW
- See Also:
-
ACTION_LISTENER_TYPE
- See Also:
-
ATTRIBUTE_NAME
- See Also:
-
ATTRIBUTE_VALUE
- See Also:
-
CONVERTER_ID
- See Also:
-
CONTROL_ID
- See Also:
-
CONTROL_COMPONENT_TYPE
- See Also:
-
CONTROL_RENDERER_TYPE
- See Also:
-
FACET_NAME
- See Also:
-
PROPERTY_NAME
- See Also:
-
PROPERTY_VALUE
- See Also:
-
PROPERTY_SIGNATURE
- See Also:
-
PROPERTY_VALUE_CHANGE_LISTENER
- See Also:
-
PROPERTY_ACTION_LISTENER
- See Also:
-
VALIDATOR_ID
- See Also:
-
VALUE_CHANGE_LISTENER_TYPE
- See Also:
-
UNIQUE_ID_PREFIX
- See Also:
-
DEFAULT_CHARACTER_ENCODING
- See Also:
-
m_viewId
-
m_root
-
m_uniqueIdCount
protected int m_uniqueIdCount -
m_ctx
This is only valid when parsing the view! -
m_stack
-
m_attribute
-
m_other
-
m_property
-
remapControls
protected static HashMap<com.webmethods.caf.faces.view.xml.XMLViewBuilder.ControlTypePair,com.webmethods.caf.faces.view.xml.XMLViewBuilder.ControlTypePair> remapControls
-
-
Constructor Details
-
XMLViewBuilder
-
-
Method Details
-
isCacheable
public boolean isCacheable()- Specified by:
isCacheable
in interfaceViewBuilder
- Returns:
- True if this builder is cacheable.
-
buildView
- Specified by:
buildView
in interfaceViewBuilder
- Returns:
- New view tree.
- Throws:
FacesException
-
resolveEntity
- Specified by:
resolveEntity
in interfaceEntityResolver
- Overrides:
resolveEntity
in classDefaultHandler
- Throws:
SAXException
IOException
-
startDocument
- Specified by:
startDocument
in interfaceContentHandler
- Overrides:
startDocument
in classDefaultHandler
- Throws:
SAXException
-
endDocument
- Specified by:
endDocument
in interfaceContentHandler
- Overrides:
endDocument
in classDefaultHandler
- Throws:
SAXException
-
startElement
public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException - Specified by:
startElement
in interfaceContentHandler
- Overrides:
startElement
in classDefaultHandler
- Throws:
SAXException
-
endElement
- Specified by:
endElement
in interfaceContentHandler
- Overrides:
endElement
in classDefaultHandler
- Throws:
SAXException
-
characters
- Specified by:
characters
in interfaceContentHandler
- Overrides:
characters
in classDefaultHandler
- Throws:
SAXException
-
fatalError
- Specified by:
fatalError
in interfaceErrorHandler
- Overrides:
fatalError
in classDefaultHandler
- Throws:
SAXException
-
error
- Specified by:
error
in interfaceErrorHandler
- Overrides:
error
in classDefaultHandler
- Throws:
SAXException
-
warning
- Specified by:
warning
in interfaceErrorHandler
- Overrides:
warning
in classDefaultHandler
- Throws:
SAXException
-
startView
protected void startView(String uri, String localName, String qName, Attributes attributes) throws SAXException - Throws:
SAXException
-
startControl
protected void startControl(String uri, String localName, String qName, Attributes attributes) throws SAXException - Throws:
SAXException
-
startConverter
protected void startConverter(String uri, String localName, String qName, Attributes attributes) throws SAXException - Throws:
SAXException
-
startValidator
protected void startValidator(String uri, String localName, String qName, Attributes attributes) throws SAXException - Throws:
SAXException
-
startActionListener
protected void startActionListener(String uri, String localName, String qName, Attributes attributes) throws SAXException - Throws:
SAXException
-
startValueChangeListener
protected void startValueChangeListener(String uri, String localName, String qName, Attributes attributes) throws SAXException - Throws:
SAXException
-
startFacet
protected void startFacet(String uri, String localName, String qName, Attributes attributes) throws SAXException - Throws:
SAXException
-
startAttribute
protected void startAttribute(String uri, String localName, String qName, Attributes attributes) throws SAXException - Throws:
SAXException
-
endAttribute
- Throws:
SAXException
-
startProperty
protected void startProperty(String uri, String localName, String qName, Attributes attributes) throws SAXException - Throws:
SAXException
-
endProperty
- Throws:
SAXException
-
startOther
protected void startOther(String uri, String localName, String qName, Attributes attributes) throws SAXException - Throws:
SAXException
-