|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.alicebot.server.core.targeting.Targeting org.alicebot.server.core.targeting.TargetWriter
public class TargetWriter
Handles writing of targets to files.
Field Summary |
---|
Fields inherited from class org.alicebot.server.core.targeting.Targeting |
---|
CATEGORY_END, CATEGORY_START, EMPTY_STRING, INDENT, INPUT_END, INPUT_START, LINE_SEPARATOR, MATCH_END, MATCH_START, PATTERN_END, PATTERN_START, REPLY_END, REPLY_START, SPACE, TARGET_END, TARGET_START, TARGETS, TARGETS_END, TARGETS_START, TEMPLATE_END, TEMPLATE_START, TEXT_END, TEXT_START, THAT_END, THAT_START, TOPIC_END, TOPIC_NAME_BEGIN, TOPIC_NAME_END, TOPIC_START |
Constructor Summary | |
---|---|
TargetWriter()
|
Method Summary | |
---|---|
static void |
rewriteTargets(java.util.HashMap targets,
java.io.File file)
Writes out a set of targets to a given file, deleting the file first. |
static void |
write(Target target,
XMLResourceSpec spec)
Writes a target to a file defined by a given typespec. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TargetWriter()
Method Detail |
---|
public static void rewriteTargets(java.util.HashMap targets, java.io.File file)
file
- the File to which to writepublic static void write(Target target, XMLResourceSpec spec)
target
- the target to writespec
- the XML resource spec for the target file
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |