|
|||||||||
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.apache.commons.digester.Digester org.apache.tapestry.parse.SpecificationDigester
public class SpecificationDigester
Extension of Digester
with additional rules, hooks
and methods needed when parsing Tapestry specifications.
Field Summary |
---|
Fields inherited from class org.apache.commons.digester.Digester |
---|
bodyText, bodyTexts, classLoader, configured, entityResolver, entityValidator, errorHandler, factory, JAXP_SCHEMA_LANGUAGE, locator, log, match, namespaceAware, namespaces, params, parser, publicId, reader, root, rules, saxLog, schemaLanguage, schemaLocation, stack, useContextClassLoader, validating, W3C_XML_SCHEMA |
Constructor Summary | |
---|---|
SpecificationDigester()
|
Method Summary | |
---|---|
void |
addBody(String pattern,
String propertyName)
|
void |
addConnectChild(String pattern,
String methodName,
String attributeName)
|
void |
addDocumentRule(IDocumentRule rule)
|
void |
addInitializeProperty(String pattern,
String propertyName,
Object value)
|
void |
addSetBooleanProperty(String pattern,
String attributeName,
String propertyName)
|
void |
addSetConvertedProperty(String pattern,
Map map,
String attributeName,
String propertyName)
|
void |
addSetExtendedProperty(String pattern,
String attributeName,
String propertyName,
boolean required)
|
void |
addSetLimitedProperties(String pattern,
String[] attributeNames,
String[] propertyNames)
|
void |
addSetLimitedProperties(String pattern,
String attributeName,
String propertyName)
|
void |
addValidate(String pattern,
String attributeName,
String valuePattern,
String errorKey)
|
void |
endDocument()
|
void |
error(org.xml.sax.SAXParseException exception)
Invokes fatalError(SAXParseException) . |
void |
fatalError(org.xml.sax.SAXParseException exception)
Simply re-throws the exception. |
ILocation |
getLocationTag()
|
org.xml.sax.Locator |
getLocator()
Returns the Locator for the Digester. |
RegexpMatcher |
getMatcher()
|
IResourceLocation |
getResourceLocation()
|
void |
setResourceLocation(IResourceLocation resourceLocation)
|
void |
startDocument()
|
void |
startElement(String namespaceURI,
String localName,
String qName,
org.xml.sax.Attributes attributes)
|
void |
warning(org.xml.sax.SAXParseException exception)
Invokes fatalError(SAXParseException) . |
Methods inherited from class org.apache.commons.digester.Digester |
---|
addBeanPropertySetter, addBeanPropertySetter, addCallMethod, addCallMethod, addCallMethod, addCallMethod, addCallParam, addCallParam, addCallParam, addCallParam, addFactoryCreate, addFactoryCreate, addFactoryCreate, addFactoryCreate, addFactoryCreate, addFactoryCreate, addFactoryCreate, addFactoryCreate, addFactoryCreate, addFactoryCreate, addObjectCreate, addObjectCreate, addObjectCreate, addObjectCreate, addRule, addRuleSet, addSetNext, addSetNext, addSetProperties, addSetProperties, addSetProperties, addSetProperty, addSetRoot, addSetRoot, addSetTop, addSetTop, characters, clear, configure, createSAXException, createSAXException, createSAXException, endElement, endPrefixMapping, findNamespaceURI, getClassLoader, getCount, getCurrentElementName, getDebug, getDocumentLocator, getEntityResolver, getErrorHandler, getFactory, getFeature, getLogger, getMatch, getNamespaceAware, getParser, getProperty, getPublicId, getReader, getRoot, getRuleNamespaceURI, getRules, getSchema, getSchemaLanguage, getUseContextClassLoader, getValidating, getXMLReader, ignorableWhitespace, log, log, notationDecl, parse, parse, parse, parse, parse, peek, peek, pop, processingInstruction, push, register, resolveEntity, setClassLoader, setDebug, setDocumentLocator, setEntityResolver, setErrorHandler, setFeature, setLogger, setNamespaceAware, setProperty, setPublicId, setRuleNamespaceURI, setRules, setSchema, setSchemaLanguage, setUseContextClassLoader, setValidating, skippedEntity, startPrefixMapping, unparsedEntityDecl |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SpecificationDigester()
Method Detail |
---|
public void addDocumentRule(IDocumentRule rule)
public void addSetBooleanProperty(String pattern, String attributeName, String propertyName)
public void addSetExtendedProperty(String pattern, String attributeName, String propertyName, boolean required)
public void addValidate(String pattern, String attributeName, String valuePattern, String errorKey)
public void addSetConvertedProperty(String pattern, Map map, String attributeName, String propertyName)
public void addConnectChild(String pattern, String methodName, String attributeName)
public void addInitializeProperty(String pattern, String propertyName, Object value)
public void addSetLimitedProperties(String pattern, String attributeName, String propertyName)
public void addSetLimitedProperties(String pattern, String[] attributeNames, String[] propertyNames)
public void addBody(String pattern, String propertyName)
public org.xml.sax.Locator getLocator()
Locator
for the Digester. This object
is provided by the underlying SAX parser to identify where in the
document the parse is currently located; this information can be
used to build a ILocation
.
public ILocation getLocationTag()
public IResourceLocation getResourceLocation()
public void setResourceLocation(IResourceLocation resourceLocation)
public RegexpMatcher getMatcher()
public void endDocument() throws org.xml.sax.SAXException
endDocument
in interface org.xml.sax.ContentHandler
endDocument
in class org.apache.commons.digester.Digester
org.xml.sax.SAXException
public void startDocument() throws org.xml.sax.SAXException
startDocument
in interface org.xml.sax.ContentHandler
startDocument
in class org.apache.commons.digester.Digester
org.xml.sax.SAXException
public void startElement(String namespaceURI, String localName, String qName, org.xml.sax.Attributes attributes) throws org.xml.sax.SAXException
startElement
in interface org.xml.sax.ContentHandler
startElement
in class org.apache.commons.digester.Digester
org.xml.sax.SAXException
public void error(org.xml.sax.SAXParseException exception) throws org.xml.sax.SAXException
fatalError(SAXParseException)
.
error
in interface org.xml.sax.ErrorHandler
error
in class org.apache.commons.digester.Digester
org.xml.sax.SAXException
public void fatalError(org.xml.sax.SAXParseException exception) throws org.xml.sax.SAXException
fatalError
in interface org.xml.sax.ErrorHandler
fatalError
in class org.apache.commons.digester.Digester
org.xml.sax.SAXException
public void warning(org.xml.sax.SAXParseException exception) throws org.xml.sax.SAXException
fatalError(SAXParseException)
.
warning
in interface org.xml.sax.ErrorHandler
warning
in class org.apache.commons.digester.Digester
org.xml.sax.SAXException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |