20 package net.sf.gridarta.model.match;
25 import nu.xom.Document;
26 import nu.xom.Element;
27 import org.apache.log4j.Category;
28 import org.apache.log4j.Logger;
29 import org.jetbrains.annotations.NotNull;
58 final Element rootElement = document.getRootElement();
59 for (
final Element node :
new ElementsIterable(rootElement.getChildElements(
"GameObjectMatcher"))) {
67 gameObjectMatchers.addGameObjectMatcher(archObjectMatcher);
76 if (LOG.isInfoEnabled()) {
77 LOG.info(
"Loaded " + count +
" GameObjectMatchers.");
Convenience class for adding messages to a ErrorView instance using a fixed category name...
Parser for the GameObjectMatchers.xml file.
Thrown when a parsing error occurs.
Class for some default GameObjectMatchers.
Decorates an arbitrary GameObjectMatcher with a localized name that is suitable for the user interfac...
Defines possible error categories for ErrorView instances.
Base package of all Gridarta classes.
GameObjectMatchersParser()
Private constructor to prevent instantiation.
static NamedGameObjectMatcher parseMatcher(@NotNull final Element el, final int editType)
Creates a NamedGameObjectMatcher from XML.
GAMEOBJECTMATCHERS_ENTRY_INVALID
Maintains GameObjectMatcher instances.
static void readGameObjectMatchers(@NotNull final Document document, @NotNull final GameObjectMatchers gameObjectMatchers, @NotNull final ErrorViewCollector errorViewCollector)
Parses a .xml file defining game object matchers.
static final Category LOG
The Logger for printing log messages.
boolean isSystemMatcher()
Returns whether this matcher is a system matcher.