 |
Gridarta Editor
|
Go to the documentation of this file.
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.");
Parser for the GameObjectMatchers.xml file.
Base package of all Gridarta classes.
Class for some default GameObjectMatchers.
boolean isSystemMatcher()
Returns whether this matcher is a system matcher.
Decorates an arbitrary GameObjectMatcher with a localized name that is suitable for the user interfac...
GAMEOBJECTMATCHERS_ENTRY_INVALID
GameObjectMatchersParser()
Private constructor to prevent instantiation.
Convenience class for adding messages to a ErrorView instance using a fixed category name.
Defines possible error categories for ErrorView instances.
static NamedGameObjectMatcher parseMatcher(@NotNull final Element el, final int editType)
Creates a NamedGameObjectMatcher from XML.
Maintains GameObjectMatcher instances.
static final Category LOG
The Logger for printing log messages.
Thrown when a parsing error occurs.
static void readGameObjectMatchers(@NotNull final Document document, @NotNull final GameObjectMatchers gameObjectMatchers, @NotNull final ErrorViewCollector errorViewCollector)
Parses a .xml file defining game object matchers.