|
Gridarta Editor
|
Class for some default GameObjectMatchers. More...
Collaboration diagram for net.sf.gridarta.model.match.GameObjectMatcherParser:Static Public Member Functions | |
| static NamedGameObjectMatcher | parseMatcher (@NotNull final Element el, final int editType) throws ParsingException |
| Creates a NamedGameObjectMatcher from XML. More... | |
Private Member Functions | |
| GameObjectMatcherParser () | |
| Private constructor to prevent instantiation. More... | |
Static Private Member Functions | |
| static GameObjectMatcher | createAndMatcher (@NotNull final Node el) throws ParsingException |
| Creates an AndGameObjectMatcher. More... | |
| static GameObjectMatcher | createAttributeArchObjectMatcher (@NotNull final Element el) throws ParsingException |
| Creates an AttributeGameObjectMatcher. More... | |
| static GameObjectMatcher | createMatcher (@NotNull final Element el) throws ParsingException |
| Creates a GameObjectMatcher from XML. More... | |
| static GameObjectMatcher | createOrMatcher (@NotNull final Node el) throws ParsingException |
| Creates an OrGameObjectMatcher. More... | |
| static GameObjectMatcher | createTypeNrsArchObjectMatcher (@NotNull final Element el) throws ParsingException |
| Creates a TypeNrsGameObjectMatcher. More... | |
| static Collection< GameObjectMatcher > | getChildMatchers (@NotNull final Node el) throws ParsingException |
| Gets the matchers that are found as children of an XML element. More... | |
| static String | getLanguageTitle (@NotNull final Node el, @NotNull final String language) |
| Returns the title for a given language. More... | |
| static Node | xpathEvaluate (@NotNull final Node el, @NotNull final String xpathExpression) |
| Evaluates an XPath expression and returns the result Node. More... | |
Static Private Attributes | |
| static final String | XML_ATTRIB_ATTRIBUTE_NAME = "name" |
| The name of the "name" attribute within XML_ELEMENT_ATTRIB elements. More... | |
| static final String | XML_ATTRIB_ATTRIBUTE_OP = "op" |
| The name of the "op" attribute within XML_ELEMENT_ATTRIB elements. More... | |
| static final String | XML_ATTRIB_ATTRIBUTE_TYPE = "type" |
| The name of the "type" attribute within XML_ELEMENT_ATTRIB elements. More... | |
| static final String | XML_ATTRIB_ATTRIBUTE_USEARCHETYPE = "useArchetype" |
| The name of the "useArchetype" attribute within XML_ELEMENT_ATTRIB elements. More... | |
| static final String | XML_ATTRIB_ATTRIBUTE_VALUE = "value" |
| The name of the "value" attribute within XML_ELEMENT_ATTRIB elements. More... | |
| static final String | XML_ELEMENT_AND = "And" |
| The name of the "And" element. More... | |
| static final String | XML_ELEMENT_ATTRIB = "Attrib" |
| The name of the "Attrib" element. More... | |
| static final String | XML_ELEMENT_OR = "Or" |
| The name of the "Or" element. More... | |
| static final String | XML_ELEMENT_TYPENRS = "TypeNrs" |
| The name of the "TypeNrs" element. More... | |
| static final String | XML_MATCHER_ATTRIBUTE_ID = "id" |
| The name of the "id" attribute within matcher elements. More... | |
| static final String | XML_MATCHER_ATTRIBUTE_SYSTEM = "system" |
| The name of the "system" attribute within matcher elements. More... | |
| static final String | XML_MATCHER_ELEMENT_ENV = "Env" |
| The name of the "Env" element within matcher elements. More... | |
| static final String | XML_TYPENRS_ATTRIBUTE_NUMBERS = "numbers" |
| The name of the "numbers" attribute within XML_ELEMENT_TYPENRS elements. More... | |
Class for some default GameObjectMatchers.
Definition at line 37 of file GameObjectMatcherParser.java.
|
private |
Private constructor to prevent instantiation.
Definition at line 126 of file GameObjectMatcherParser.java.
|
staticprivate |
Creates an AndGameObjectMatcher.
| el |
Definition at line 211 of file GameObjectMatcherParser.java.
References net.sf.gridarta.model.match.GameObjectMatcherParser.getChildMatchers().
Referenced by net.sf.gridarta.model.match.GameObjectMatcherParser.createMatcher().
Here is the call graph for this function:
Here is the caller graph for this function:
|
staticprivate |
Creates an AttributeGameObjectMatcher.
| el |
Definition at line 254 of file GameObjectMatcherParser.java.
Referenced by net.sf.gridarta.model.match.GameObjectMatcherParser.createMatcher().
Here is the caller graph for this function:
|
staticprivate |
Creates a GameObjectMatcher from XML.
| el | the XML node to create from |
| ParsingException | if a parsing error occurs |
Definition at line 188 of file GameObjectMatcherParser.java.
References net.sf.gridarta.model.match.GameObjectMatcherParser.createAndMatcher(), net.sf.gridarta.model.match.GameObjectMatcherParser.createAttributeArchObjectMatcher(), net.sf.gridarta.model.match.GameObjectMatcherParser.createOrMatcher(), and net.sf.gridarta.model.match.GameObjectMatcherParser.createTypeNrsArchObjectMatcher().
Referenced by net.sf.gridarta.model.match.GameObjectMatcherParser.getChildMatchers(), and net.sf.gridarta.model.match.GameObjectMatcherParser.parseMatcher().
Here is the call graph for this function:
Here is the caller graph for this function:
|
staticprivate |
Creates an OrGameObjectMatcher.
| el |
Definition at line 222 of file GameObjectMatcherParser.java.
References net.sf.gridarta.model.match.GameObjectMatcherParser.getChildMatchers().
Referenced by net.sf.gridarta.model.match.GameObjectMatcherParser.createMatcher().
Here is the call graph for this function:
Here is the caller graph for this function:
|
staticprivate |
Creates a TypeNrsGameObjectMatcher.
| el |
Definition at line 272 of file GameObjectMatcherParser.java.
References net.sf.gridarta.utils.StringUtils.PATTERN_WHITESPACE.
Referenced by net.sf.gridarta.model.match.GameObjectMatcherParser.createMatcher().
Here is the caller graph for this function:
|
staticprivate |
Gets the matchers that are found as children of an XML element.
If the children are GameObjectMatchers that have child matchers themselves, their elements are scanned recursively.
| el | the XML element to look for children |
| ParsingException | if a parsing error occurs |
Definition at line 236 of file GameObjectMatcherParser.java.
References net.sf.gridarta.model.match.GameObjectMatcherParser.createMatcher().
Referenced by net.sf.gridarta.model.match.GameObjectMatcherParser.createAndMatcher(), and net.sf.gridarta.model.match.GameObjectMatcherParser.createOrMatcher().
Here is the call graph for this function:
Here is the caller graph for this function:
|
staticprivate |
Returns the title for a given language.
| el | the element to search |
| language | the language to look up |
Definition at line 176 of file GameObjectMatcherParser.java.
Referenced by net.sf.gridarta.model.match.GameObjectMatcherParser.parseMatcher().
Here is the caller graph for this function:
|
static |
Creates a NamedGameObjectMatcher from XML.
| el | the XML node to create from |
| editType | the edit type for the new matcher |
| ParsingException | if a parsing error occurs |
Definition at line 137 of file GameObjectMatcherParser.java.
References net.sf.gridarta.model.match.GameObjectMatcherParser.createMatcher(), net.sf.gridarta.model.match.GameObjectMatcherParser.getLanguageTitle(), and net.sf.gridarta.model.match.GameObjectMatcherParser.xpathEvaluate().
Referenced by net.sf.gridarta.model.match.GameObjectMatchersParser.readGameObjectMatchers().
Here is the call graph for this function:
Here is the caller graph for this function:
|
staticprivate |
Evaluates an XPath expression and returns the result Node.
| el | the element to evaluate against |
| xpathExpression | the XPath expression to evaluate |
Definition at line 294 of file GameObjectMatcherParser.java.
Referenced by net.sf.gridarta.model.match.GameObjectMatcherParser.parseMatcher().
Here is the caller graph for this function:
|
staticprivate |
The name of the "name" attribute within XML_ELEMENT_ATTRIB elements.
Definition at line 44 of file GameObjectMatcherParser.java.
|
staticprivate |
The name of the "op" attribute within XML_ELEMENT_ATTRIB elements.
Definition at line 51 of file GameObjectMatcherParser.java.
|
staticprivate |
The name of the "type" attribute within XML_ELEMENT_ATTRIB elements.
Definition at line 58 of file GameObjectMatcherParser.java.
|
staticprivate |
The name of the "useArchetype" attribute within XML_ELEMENT_ATTRIB elements.
Definition at line 72 of file GameObjectMatcherParser.java.
|
staticprivate |
The name of the "value" attribute within XML_ELEMENT_ATTRIB elements.
Definition at line 65 of file GameObjectMatcherParser.java.
|
staticprivate |
The name of the "And" element.
Definition at line 114 of file GameObjectMatcherParser.java.
|
staticprivate |
The name of the "Attrib" element.
Definition at line 102 of file GameObjectMatcherParser.java.
|
staticprivate |
The name of the "Or" element.
Definition at line 108 of file GameObjectMatcherParser.java.
|
staticprivate |
The name of the "TypeNrs" element.
Definition at line 96 of file GameObjectMatcherParser.java.
|
staticprivate |
The name of the "id" attribute within matcher elements.
Definition at line 78 of file GameObjectMatcherParser.java.
|
staticprivate |
The name of the "system" attribute within matcher elements.
Definition at line 84 of file GameObjectMatcherParser.java.
|
staticprivate |
The name of the "Env" element within matcher elements.
Definition at line 90 of file GameObjectMatcherParser.java.
|
staticprivate |
The name of the "numbers" attribute within XML_ELEMENT_TYPENRS elements.
Definition at line 121 of file GameObjectMatcherParser.java.