public abstract class Action extends ContextAwareBase
Action methods are invoked as the XML file is parsed.
This class is largely inspired from the relevant class in the commons-digester project of the Apache Software Foundation.
| Modifier and Type | Field and Description |
|---|---|
static String |
ACTION_CLASS_ATTRIBUTE |
static String |
CLASS_ATTRIBUTE |
static String |
FILE_ATTRIBUTE |
static String |
KEY_ATTRIBUTE |
static String |
NAME_ATTRIBUTE |
static String |
PATTERN_ATTRIBUTE |
static String |
SCOPE_ATTRIBUTE |
static String |
VALUE_ATTRIBUTE |
context| Constructor and Description |
|---|
Action() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
atLine(InterpretationContext intercon) |
abstract void |
begin(InterpretationContext intercon,
String name,
Attributes attributes)
Called when the parser encounters an element matching a
Pattern. |
void |
body(InterpretationContext intercon,
String body)
Called to pass the body (as text) contained within an element.
|
abstract void |
end(InterpretationContext intercon,
String name) |
protected int |
getColumnNumber(InterpretationContext intercon) |
protected String |
getLineColStr(InterpretationContext intercon) |
static int |
getLineNumber(InterpretationContext intercon) |
protected String |
nearLine(InterpretationContext intercon) |
String |
toString() |
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContextpublic static final String NAME_ATTRIBUTE
public static final String KEY_ATTRIBUTE
public static final String VALUE_ATTRIBUTE
public static final String FILE_ATTRIBUTE
public static final String CLASS_ATTRIBUTE
public static final String PATTERN_ATTRIBUTE
public static final String SCOPE_ATTRIBUTE
public static final String ACTION_CLASS_ATTRIBUTE
public abstract void begin(InterpretationContext intercon, String name, Attributes attributes) throws ActionException
Pattern.ActionExceptionpublic void body(InterpretationContext intercon, String body) throws ActionException
ic - body - ActionExceptionpublic abstract void end(InterpretationContext intercon, String name) throws ActionException
ActionExceptionprotected int getColumnNumber(InterpretationContext intercon)
public static int getLineNumber(InterpretationContext intercon)
protected String getLineColStr(InterpretationContext intercon)
protected String atLine(InterpretationContext intercon)
protected String nearLine(InterpretationContext intercon)
Copyright © 2005–2019 QOS.ch. All rights reserved.