public class IncludeAction extends Action
| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
attributeInUse |
private static java.lang.String |
FILE_ATTR |
private static java.lang.String |
INCLUDED_TAG |
private boolean |
optional |
private static java.lang.String |
OPTIONAL_ATTR |
private static java.lang.String |
RESOURCE_ATTR |
private static java.lang.String |
URL_ATTR |
ACTION_CLASS_ATTRIBUTE, CLASS_ATTRIBUTE, FILE_ATTRIBUTE, KEY_ATTRIBUTE, NAME_ATTRIBUTE, PATTERN_ATTRIBUTE, SCOPE_ATTRIBUTE, VALUE_ATTRIBUTEcontext| Constructor and Description |
|---|
IncludeAction() |
| Modifier and Type | Method and Description |
|---|---|
(package private) java.net.URL |
attributeToURL(java.lang.String urlAttribute) |
void |
begin(InterpretationContext ec,
java.lang.String name,
org.xml.sax.Attributes attributes)
Called when the parser encounters an element matching a
Pattern. |
private boolean |
checkAttributes(org.xml.sax.Attributes attributes) |
(package private) void |
close(java.io.InputStream in) |
void |
end(InterpretationContext ec,
java.lang.String name) |
(package private) java.net.URL |
filePathAsURL(java.lang.String path) |
(package private) java.io.InputStream |
getInputStream(InterpretationContext ec,
org.xml.sax.Attributes attributes) |
(package private) java.net.URL |
getInputURL(InterpretationContext ec,
org.xml.sax.Attributes attributes) |
(package private) java.io.InputStream |
openURL(java.net.URL url) |
private void |
optionalWarning(java.lang.String msg) |
private void |
parseAndRecord(java.io.InputStream inputSource,
SaxEventRecorder recorder) |
(package private) java.net.URL |
resourceAsURL(java.lang.String resourceAttribute) |
private void |
trimHeadAndTail(SaxEventRecorder recorder) |
body, getColumnNumber, getLineColStr, getLineNumber, toStringaddError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContextprivate static final java.lang.String INCLUDED_TAG
private static final java.lang.String FILE_ATTR
private static final java.lang.String URL_ATTR
private static final java.lang.String RESOURCE_ATTR
private static final java.lang.String OPTIONAL_ATTR
private java.lang.String attributeInUse
private boolean optional
public void begin(InterpretationContext ec, java.lang.String name, org.xml.sax.Attributes attributes) throws ActionException
ActionPattern.begin in class ActionActionExceptionvoid close(java.io.InputStream in)
private boolean checkAttributes(org.xml.sax.Attributes attributes)
java.net.URL attributeToURL(java.lang.String urlAttribute)
java.io.InputStream openURL(java.net.URL url)
java.net.URL resourceAsURL(java.lang.String resourceAttribute)
private void optionalWarning(java.lang.String msg)
java.net.URL filePathAsURL(java.lang.String path)
java.net.URL getInputURL(InterpretationContext ec, org.xml.sax.Attributes attributes)
java.io.InputStream getInputStream(InterpretationContext ec, org.xml.sax.Attributes attributes)
private void trimHeadAndTail(SaxEventRecorder recorder)
private void parseAndRecord(java.io.InputStream inputSource,
SaxEventRecorder recorder)
throws JoranException
JoranExceptionpublic void end(InterpretationContext ec, java.lang.String name) throws ActionException
end in class ActionActionException