Example usage for Java org.apache.commons.digester Digester fields, constructors, methods, implement or subclass
The text is from its open source code.
Digester() Construct a new Digester with default properties. | |
Digester(SAXParser parser) Construct a new Digester, allowing a SAXParser to be passed in. | |
Digester(XMLReader reader) Construct a new Digester, allowing an XMLReader to be passed in. |
void | addBeanPropertySetter(String pattern, String propertyName) Add a "bean property setter" rule for the specified parameters. |
void | addBeanPropertySetter(String pattern) Add a "bean property setter" rule for the specified parameters. |
void | addCallMethod(String pattern, String methodName, int paramCount) Add an "call method" rule for the specified parameters. |
void | addCallMethod(String pattern, String methodName, int paramCount, String paramTypes[]) Add an "call method" rule for the specified parameters. |
void | addCallMethod(String pattern, String methodName, int paramCount, Class> paramTypes[]) Add an "call method" rule for the specified parameters. |
void | addCallMethod(String pattern, String methodName) Add an "call method" rule for a method which accepts no arguments. |
void | addCallParam(String pattern, int paramIndex, String attributeName) Add a "call parameter" rule for the specified parameters. |
void | addCallParam(String pattern, int paramIndex, boolean fromStack) Add a "call parameter" rule. |
void | addCallParam(String pattern, int paramIndex, int stackIndex) Add a "call parameter" rule that sets a parameter from the stack. |
void | addCallParam(String pattern, int paramIndex) Add a "call parameter" rule for the specified parameters. |
void | addCallParamPath(String pattern, int paramIndex) Add a "call parameter" rule that sets a parameter from the current Digester matching path. |
void | addFactoryCreate(String pattern, String className) Add a "factory create" rule for the specified parameters. |
void | addFactoryCreate(String pattern, Class> clazz) Add a "factory create" rule for the specified parameters. |
void | addFactoryCreate(String pattern, ObjectCreationFactory creationFactory) Add a "factory create" rule for the specified parameters. |
void | addObjectCreate(String pattern, String className) Add an "object create" rule for the specified parameters. |
void | addObjectCreate(String pattern, Class> clazz) Add an "object create" rule for the specified parameters. |
void | addObjectCreate(String pattern, String className, String attributeName) Add an "object create" rule for the specified parameters. |
void | addObjectCreate(String pattern, String attributeName, Class> clazz) Add an "object create" rule for the specified parameters. |
void | addObjectParam(String pattern, int paramIndex, Object paramObj) Add a "call parameter" rule that sets a parameter from a caller-provided object. |
void | addRule(String pattern, Rule rule) Register a new Rule matching the specified pattern. |
void | addRuleSet(RuleSet ruleSet) Register a set of Rule instances defined in a RuleSet. |
void | addSetNestedProperties(String pattern) Adds an SetNestedPropertiesRule . |
void | addSetNext(String pattern, String methodName) Add a "set next" rule for the specified parameters. |
void | addSetNext(String pattern, String methodName, String paramType) Add a "set next" rule for the specified parameters. |
void | addSetProperties(String pattern) Add a "set properties" rule for the specified parameters. |
void | addSetProperties(String pattern, String attributeName, String propertyName) Add a "set properties" rule with a single overridden parameter. |
void | addSetProperties(String pattern, String[] attributeNames, String[] propertyNames) Add a "set properties" rule with overridden parameters. |
void | addSetProperty(String pattern, String name, String value) Add a "set property" rule for the specified parameters. |
void | addSetRoot(String pattern, String methodName) Add SetRootRule with the specified parameters. |
void | addSetTop(String pattern, String methodName, String paramType) Add a "set top" rule for the specified parameters. |
void | addSetTop(String pattern, String methodName) Add a "set top" rule for the specified parameters. |
void | clear() Clear the current contents of the default object stack, the param stack, all named stacks, and other internal variables. |
SAXException | createSAXException(Exception e) Create a SAX exception which also understands about the location in the digester file where the exception occurs |
SAXException | createSAXException(String message) Create a SAX exception which also understands about the location in the digester file where the exception occurs |
Class> | getClass() Returns the runtime class of this Object . |
Bundle | getClassLoader() |
String | getCurrentElementName() Return the name of the XML element that is currently being processed. |
Map | getCurrentNamespaces() Get the most current namespaces for all prefixes. |
ContentHandler | getCustomContentHandler() |
Locator | getDocumentLocator() Gets the document locator associated with our parser. |
EntityResolver | getEntityResolver() Return the Entity Resolver used by the SAX parser. |
SAXParserFactory | getFactory() Return the SAXParserFactory we will use, creating one if necessary. |
boolean | getNamespaceAware() Return the "namespace aware" flag for parsers we create. |
Object | getRoot() Returns the root element of the tree of objects created as a result of applying the rule objects to the input XML. |
String | getRuleNamespaceURI() Return the namespace URI that will be applied to all subsequently added Rule objects. |
Rules | getRules() Return the Rules implementation object containing our rules collection and associated matching policy. |
Object | parse(File file) Parse the content of the specified file using this Digester. |
Object | parse(InputSource input) Parse the content of the specified input source using this Digester. |
Object | parse(InputStream input) Parse the content of the specified input stream using this Digester. |
Object | parse(Reader reader) Parse the content of the specified reader using this Digester. |
Object | parse(String uri) Parse the content of the specified URI using this Digester. |
Object | parse(URL url) Parse the content of the specified URL using this Digester. |
Object | peek() Return the top object on the stack without removing it. |
Object | pop() Pop the top object off of the stack, and return it. |
Object | pop(String stackName) Pops (gets and removes) the top object from the stack with the given name.
Note: a stack is considered empty if no objects have been pushed onto it yet. |
void | push(Object object) Push a new object onto the top of the object stack. |
void | push(String stackName, Object value) Pushes the given object onto the stack with the given name. |
void | register(String publicId, URL entityURL) Register the specified DTD URL for the specified public identifier. |
void | register(String publicId, String entityURL) Convenience method that registers the string version of an entity URL instead of a URL version. |
void | setClassloader(Bundle classLoader) |
void | setCustomContentHandler(ContentHandler handler) Redirects (or cancels redirecting) of SAX ContentHandler events to an external object. |
void | setDebug(int debug) Set the debugging detail level of our currently enabled logger. |
void | setEntityResolver(EntityResolver entityResolver) Set the EntityResolver used by SAX when resolving public id and system id. |
void | setErrorHandler(ErrorHandler errorHandler) Set the error handler for this Digester. |
void | setFeature(String feature, boolean value) Sets a flag indicating whether the requested feature is supported by the underlying implementation of org.xml.sax.XMLReader . |
void | setNamespaceAware(boolean namespaceAware) Set the "namespace aware" flag for parsers we create. |
void | setProperty(String property, Object value) Set the current value of the specified property for the underlying XMLReader implementation. |
void | setPublicId(String publicId) Set the publid id of the current file being parse. |
void | setRuleNamespaceURI(String ruleNamespaceURI) Set the namespace URI that will be applied to all subsequently added Rule objects. |
void | setRules(Rules rules) Set the Rules implementation object containing our rules collection and associated matching policy. |
void | setSchema(String schemaLocation) Set the XML Schema URI used for validating the input XML. |
void | setSubstitutor(Substitutor substitutor) Sets the Substitutor to be used to convert attributes and body text. |
void | setUseContextClassLoader(boolean use) Determine whether to use the Context ClassLoader (the one found by calling Thread.currentThread().getContextClassLoader() ) to resolve/load classes that are defined in various rules. |
void | setValidating(boolean validating) Set the validating parser flag. |
void | setXIncludeAware(boolean xincludeAware) Set the XInclude-aware flag for parsers we create. |