|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.xml.sax.helpers.DefaultHandler org.talika.tarsis.command.factory.xml.XmlCommandsHandler
public final class XmlCommandsHandler
Implementation of SAX handlers for Tarsis MVC Commands XML files.
Field Summary | |
---|---|
static java.lang.String |
ACTION_TAG
<action> tag. |
static java.lang.String |
CACHEABLE_ATTR
Cacheable atribute. |
static java.lang.String |
CLASS_NAME_ATTR
Class name atribute. |
static java.lang.String |
COMMAND_TAG
<command> tag. |
static java.lang.String |
COMMANDS_TAG
<commands> tag. |
static java.lang.String |
DEFAULT_ATTR
Default atribute. |
static java.lang.String |
DTD_CLASSPATH
DTD class path. |
static java.lang.String |
DTD_PUBLICID
DTD public id. |
static java.lang.String |
DUPLICABLE_ATTR
Duplicable atribute. |
static java.lang.String |
FALSE_VALUE
False value. |
static java.lang.String |
FORWARD_VALUE
Forward atribute. |
static java.lang.String |
INCLUDE_VALUE
Include atribute. |
static java.lang.String |
INPUT_TAG
<input> tag. |
static java.lang.String |
MULTIPLE_ATTR
Multiple atribute. |
static java.lang.String |
NAME_ATTR
Name atribute. |
static java.lang.String |
PACKAGE_TAG
<package> tag. |
static java.lang.String |
PARAMETER_TAG
<parameter> tag. |
static java.lang.String |
PATH_ATTR
Path atribute. |
static java.lang.String |
REDIRECT_VALUE
Redirect atribute. |
static java.lang.String |
REQUIRED_ATTR
Required atribute. |
static java.lang.String |
SECURE_ATTR
Secure atribute. |
static java.lang.String |
SRC_ATTR
Source attribute. |
static java.lang.String |
STATEFULL_VALUE
Statefull atribute. |
static java.lang.String |
STATELESS_VALUE
Stateless atribute. |
static java.lang.String |
TRUE_VALUE
True value. |
static java.lang.String |
TYPE_ATTR
Type atribute. |
static java.lang.String |
VALIDABLE_ATTR
Validable atribute. |
static java.lang.String |
VIEW_TAG
<view> tag. |
Constructor Summary | |
---|---|
XmlCommandsHandler(XmlCommandPackageLoader packageLoader)
Creates a new XmlCommandsHandler object. |
Method Summary | |
---|---|
void |
endDocument()
Receive notification of the end of a document. |
void |
endElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String name)
Receive notification of the end of an element. |
void |
error(org.xml.sax.SAXParseException spe)
Receive notification of a recoverable error. |
void |
fatalError(org.xml.sax.SAXParseException spe)
Receive notification of a non-recoverable error. |
java.util.Map |
getCommands()
Returns map of parsed commands. |
protected void |
processActionTag(org.xml.sax.Attributes atts)
Process <action> tag. |
protected void |
processCommandTag(org.xml.sax.Attributes atts)
Process <command> tag. |
protected void |
processInputTag(org.xml.sax.Attributes atts)
Process <input> tag. |
protected void |
processPackageTag(org.xml.sax.Attributes atts)
Process <package> tag. |
protected void |
processParameterTag(org.xml.sax.Attributes atts)
Process <parameter> tag. |
protected void |
processViewTag(org.xml.sax.Attributes atts)
Process <view> tag. |
org.xml.sax.InputSource |
resolveEntity(java.lang.String publicId,
java.lang.String systemId)
Allow the application to resolve external entities. |
void |
startDocument()
Receive notification of the beginning of a document. |
void |
startElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String name,
org.xml.sax.Attributes atts)
Receive notification of the beginning of an element. |
void |
warning(org.xml.sax.SAXParseException spe)
Receive notification of a warning. |
Methods inherited from class org.xml.sax.helpers.DefaultHandler |
---|
characters, 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 |
Field Detail |
---|
public static final java.lang.String COMMANDS_TAG
public static final java.lang.String PACKAGE_TAG
public static final java.lang.String COMMAND_TAG
public static final java.lang.String ACTION_TAG
public static final java.lang.String VIEW_TAG
public static final java.lang.String INPUT_TAG
public static final java.lang.String PARAMETER_TAG
public static final java.lang.String NAME_ATTR
public static final java.lang.String SRC_ATTR
public static final java.lang.String CACHEABLE_ATTR
public static final java.lang.String DUPLICABLE_ATTR
public static final java.lang.String VALIDABLE_ATTR
public static final java.lang.String SECURE_ATTR
public static final java.lang.String CLASS_NAME_ATTR
public static final java.lang.String PATH_ATTR
public static final java.lang.String TYPE_ATTR
public static final java.lang.String REQUIRED_ATTR
public static final java.lang.String DEFAULT_ATTR
public static final java.lang.String MULTIPLE_ATTR
public static final java.lang.String STATELESS_VALUE
public static final java.lang.String STATEFULL_VALUE
public static final java.lang.String FORWARD_VALUE
public static final java.lang.String REDIRECT_VALUE
public static final java.lang.String INCLUDE_VALUE
public static final java.lang.String TRUE_VALUE
public static final java.lang.String FALSE_VALUE
public static final java.lang.String DTD_PUBLICID
public static final java.lang.String DTD_CLASSPATH
Constructor Detail |
---|
public XmlCommandsHandler(XmlCommandPackageLoader packageLoader)
XmlCommandsHandler
object.
packageLoader
- XmlCommandPackageLoader package loader.Method Detail |
---|
public void startDocument() throws org.xml.sax.SAXException
startDocument
in interface org.xml.sax.ContentHandler
startDocument
in class org.xml.sax.helpers.DefaultHandler
org.xml.sax.SAXException
- Any SAX exception, possibly wrapping another exception.ContentHandler.startDocument()
public void endDocument() throws org.xml.sax.SAXException
endDocument
in interface org.xml.sax.ContentHandler
endDocument
in class org.xml.sax.helpers.DefaultHandler
org.xml.sax.SAXException
- Any SAX exception, possibly wrapping another exception.ContentHandler.endDocument()
public void startElement(java.lang.String namespaceURI, java.lang.String localName, java.lang.String name, org.xml.sax.Attributes atts) throws org.xml.sax.SAXException
startElement
in interface org.xml.sax.ContentHandler
startElement
in class org.xml.sax.helpers.DefaultHandler
namespaceURI
- String The Namespace URI, or the empty string if the
element has no Namespace URI or if Namespace processing is not being performed.localName
- String The local name (without prefix), or the empty string
if Namespace processing is not being performed.name
- String The qualified name (with prefix), or the empty string if
qualified names are not available.atts
- Attributes The attributes attached to the element. If there are no
attributes, it shall be an empty Attributes object.
org.xml.sax.SAXException
- Any SAX exception, possibly wrapping another exception.ContentHandler.startElement(String, String, String, Attributes)
public void endElement(java.lang.String namespaceURI, java.lang.String localName, java.lang.String name) throws org.xml.sax.SAXException
endElement
in interface org.xml.sax.ContentHandler
endElement
in class org.xml.sax.helpers.DefaultHandler
namespaceURI
- String The Namespace URI, or the empty string if the
element has no Namespace URI or if Namespace processing is not being performed.localName
- String The local name (without prefix), or the empty string
if Namespace processing is not being performed.name
- String The qualified name (with prefix), or the empty string if
qualified names are not available.
org.xml.sax.SAXException
- Any SAX exception, possibly wrapping another exception.ContentHandler.endElement(String, String, String)
public org.xml.sax.InputSource resolveEntity(java.lang.String publicId, java.lang.String systemId)
resolveEntity
in interface org.xml.sax.EntityResolver
resolveEntity
in class org.xml.sax.helpers.DefaultHandler
publicId
- String The public identifier of the external entity being
referenced, or null
if none was supplied.systemId
- String The system identifier of the external entity being
referenced.
InputStream
or Reader
for the
InputSource
.EntityResolver.resolveEntity(String, String)
public void warning(org.xml.sax.SAXParseException spe) throws org.xml.sax.SAXException
warning
in interface org.xml.sax.ErrorHandler
warning
in class org.xml.sax.helpers.DefaultHandler
spe
- SAXParseException The warning information encapsulated in a SAX
parse exception.
org.xml.sax.SAXException
- Any SAX exception, possibly wrapping another exception.ErrorHandler.warning(SAXParseException)
public void error(org.xml.sax.SAXParseException spe) throws org.xml.sax.SAXException
error
in interface org.xml.sax.ErrorHandler
error
in class org.xml.sax.helpers.DefaultHandler
spe
- SAXParseException The error information encapsulated in a SAX parse
exception.
org.xml.sax.SAXException
- Any SAX exception, possibly wrapping another exception.ErrorHandler.error(SAXParseException)
public void fatalError(org.xml.sax.SAXParseException spe) throws org.xml.sax.SAXException
fatalError
in interface org.xml.sax.ErrorHandler
fatalError
in class org.xml.sax.helpers.DefaultHandler
spe
- SAXParseException The error information encapsulated in a SAX parse
exception.
org.xml.sax.SAXException
- Any SAX exception, possibly wrapping another exception.ErrorHandler.fatalError(SAXParseException)
public java.util.Map getCommands()
protected void processPackageTag(org.xml.sax.Attributes atts) throws org.xml.sax.SAXException
atts
- Attributes tag attributes.
org.xml.sax.SAXException
- if there is an error while processing tag.protected void processCommandTag(org.xml.sax.Attributes atts) throws org.xml.sax.SAXParseException
atts
- Attributes tag attributes.
org.xml.sax.SAXParseException
- if there is an error while processing tag.protected void processActionTag(org.xml.sax.Attributes atts) throws org.xml.sax.SAXParseException
atts
- Attributes tag attributes.
org.xml.sax.SAXParseException
- if there is an error while processing tag.protected void processViewTag(org.xml.sax.Attributes atts)
atts
- Attributes tag attributes.protected void processInputTag(org.xml.sax.Attributes atts)
atts
- Attributes tag attributes.protected void processParameterTag(org.xml.sax.Attributes atts) throws org.xml.sax.SAXParseException
atts
- Attributes tag attributes.
org.xml.sax.SAXParseException
- if there is an error while processing tag.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |