Gridarta Editor
Constants.java
Go to the documentation of this file.
1 /*
2  * Gridarta MMORPG map editor for Crossfire, Daimonin and similar games.
3  * Copyright (C) 2000-2023 The Gridarta Developers.
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation; either version 2 of the License, or
8  * (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License along
16  * with this program; if not, write to the Free Software Foundation, Inc.,
17  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18  */
19 
20 package net.sf.gridarta.model.archetypetype;
21 
22 import org.jetbrains.annotations.NotNull;
23 
28 public class Constants {
29 
33  @NotNull
34  public static final String XML_ELEMENT_DEFAULT_TYPE = "default_type";
35 
39  @NotNull
40  public static final String XML_ELEMENT_BITMASKS = "bitmasks";
41 
45  @NotNull
46  public static final String XML_ELEMENT_BITMASK = "bitmask";
47 
52  @NotNull
53  public static final String XML_BITMASK_NAME = "name";
54 
59  @NotNull
60  public static final String XML_BITMASK_IS_NAMED = "is_named";
61 
65  @NotNull
66  public static final String XML_ELEMENT_BMENTRY = "bmentry";
67 
72  @NotNull
73  public static final String XML_BMENTRY_BIT = "bit";
74 
79  @NotNull
80  public static final String XML_BMENTRY_NAME = "name";
81 
86  @NotNull
87  public static final String XML_BMENTRY_VALUE = "value";
88 
93  @NotNull
94  public static final String XML_BMENTRY_ENCODING = "encoding";
95 
99  @NotNull
100  public static final String XML_ELEMENT_LISTS = "lists";
101 
105  @NotNull
106  public static final String XML_ELEMENT_LIST = "list";
107 
112  @NotNull
113  public static final String XML_LIST_NAME = "name";
114 
118  @NotNull
119  public static final String XML_ELEMENT_LISTENTRY = "listentry";
120 
125  @NotNull
126  public static final String XML_LISTENTRY_NAME = "name";
127 
132  @NotNull
133  public static final String XML_LISTENTRY_VALUE = "value";
134 
138  @NotNull
139  public static final String XML_ELEMENT_TYPE = "type";
140 
145  @NotNull
146  public static final String XML_TYPE_AVAILABLE = "available";
147 
152  @NotNull
153  public static final String XML_TYPE_NAME = "name";
154 
159  @NotNull
160  public static final String XML_TYPE_NUMBER = "number";
161 
166  @NotNull
167  public static final String XML_TYPE_MAP = "map";
168 
173  @NotNull
174  public static final String XML_TYPE_INV = "inv";
175 
180  @NotNull
181  public static final String XML_TYPE_ALLOWS_ALL_INV = "allows_all_inv";
182 
187  @NotNull
188  public static final String XML_TYPE_DISPLAY = "display";
189 
193  @NotNull
194  public static final String XML_ELEMENT_IGNORELISTS = "ignorelists";
195 
199  @NotNull
200  public static final String XML_ELEMENT_ATTRIBUTE_ORDER = "attribute_order";
201 
205  @NotNull
206  public static final String XML_ELEMENT_IGNORE_LIST = "ignore_list";
207 
211  @NotNull
212  public static final String XML_ELEMENT_REQUIRED = "required";
213 
217  @NotNull
218  public static final String XML_ELEMENT_IGNORE = "ignore";
219 
223  @NotNull
224  public static final String XML_ELEMENT_IMPORT_TYPE = "import_type";
225 
229  @NotNull
230  public static final String XML_ELEMENT_SECTION = "section";
231 
235  @NotNull
236  public static final String XML_ELEMENT_ATTRIBUTE = "attribute";
237 
242  @NotNull
243  public static final String XML_ATTRIBUTE_ARCH = "arch";
244 
249  @NotNull
250  public static final String XML_ATTRIBUTE_EDITOR = "editor";
251 
256  @NotNull
257  public static final String XML_ATTRIBUTE_VALUE = "value";
258 
263  @NotNull
264  public static final String XML_ATTRIBUTE_MIN = "min";
265 
270  @NotNull
271  public static final String XML_ATTRIBUTE_MAX = "max";
272 
277  @NotNull
278  public static final String XML_ATTRIBUTE_CHECK_MIN = "check_min";
279 
284  @NotNull
285  public static final String XML_ATTRIBUTE_CHECK_MAX = "check_max";
286 
291  @NotNull
292  public static final String XML_ATTRIBUTE_TYPE = "type";
293 
298  @NotNull
299  public static final String XML_ATTRIBUTE_ARCH_BEGIN = "arch_begin";
300 
305  @NotNull
306  public static final String XML_ATTRIBUTE_ARCH_END = "arch_end";
307 
312  @NotNull
313  public static final String XML_ATTRIBUTE_LENGTH = "length";
314 
319  @NotNull
320  public static final String XML_ATTRIBUTE_TRUE = "true";
321 
326  @NotNull
327  public static final String XML_ATTRIBUTE_FALSE = "false";
328 
333  @NotNull
334  public static final String XML_ATTRIBUTE_MARKER = "marker";
335 
339  @NotNull
340  public static final String XML_IGNORE_LIST_NAME = "name";
341 
345  @NotNull
346  public static final String XML_IMPORT_TYPE_NAME = "name";
347 
351  @NotNull
352  public static final String XML_SECTION_NAME = "name";
353 
357  @NotNull
358  public static final String XML_DESCRIPTION = "description";
359 
363  @NotNull
364  public static final String XML_USE = "use";
365 
369  private Constants() {
370  }
371 
372 }
net.sf.gridarta.model.archetypetype.Constants.XML_DESCRIPTION
static final String XML_DESCRIPTION
Description Element Name.
Definition: Constants.java:358
net.sf.gridarta.model.archetypetype.Constants.XML_ATTRIBUTE_MAX
static final String XML_ATTRIBUTE_MAX
The name of the "max" attribute within XML_ELEMENT_ATTRIBUTE elements.
Definition: Constants.java:271
net.sf.gridarta.model.archetypetype.Constants.XML_ELEMENT_IGNORELISTS
static final String XML_ELEMENT_IGNORELISTS
The name of the "ignorelists" element.
Definition: Constants.java:194
net.sf.gridarta.model.archetypetype.Constants.XML_ELEMENT_LIST
static final String XML_ELEMENT_LIST
The name of the "list" element.
Definition: Constants.java:106
net.sf.gridarta.model.archetypetype.Constants.XML_ELEMENT_ATTRIBUTE
static final String XML_ELEMENT_ATTRIBUTE
The name of the "attribute" element.
Definition: Constants.java:236
net.sf.gridarta.model.archetypetype.Constants.XML_ATTRIBUTE_TRUE
static final String XML_ATTRIBUTE_TRUE
The name of the "true" attribute within XML_ELEMENT_ATTRIBUTE elements.
Definition: Constants.java:320
net.sf.gridarta.model.archetypetype.Constants.XML_BMENTRY_VALUE
static final String XML_BMENTRY_VALUE
The name of the "value" attribute within XML_ELEMENT_BMENTRY elements.
Definition: Constants.java:87
net.sf.gridarta.model.archetypetype.Constants.XML_ELEMENT_BMENTRY
static final String XML_ELEMENT_BMENTRY
The name of the "bmentry" element.
Definition: Constants.java:66
net.sf.gridarta.model.archetypetype.Constants.XML_ELEMENT_IMPORT_TYPE
static final String XML_ELEMENT_IMPORT_TYPE
Import Type Element Name.
Definition: Constants.java:224
net.sf.gridarta.model.archetypetype.Constants.XML_LIST_NAME
static final String XML_LIST_NAME
The name of the "name" attribute within XML_ELEMENT_LIST elements.
Definition: Constants.java:113
net.sf.gridarta.model.archetypetype.Constants.XML_ELEMENT_LISTS
static final String XML_ELEMENT_LISTS
The name of the "lists" element.
Definition: Constants.java:100
net.sf.gridarta.model.archetypetype.Constants.XML_ELEMENT_BITMASK
static final String XML_ELEMENT_BITMASK
The name of the "bitmask" element.
Definition: Constants.java:46
net.sf.gridarta.model.archetypetype.Constants.XML_ATTRIBUTE_MARKER
static final String XML_ATTRIBUTE_MARKER
The name of the "marker" attribute within XML_ELEMENT_ATTRIBUTE elements.
Definition: Constants.java:334
net.sf.gridarta.model.archetypetype.Constants.XML_ATTRIBUTE_ARCH_END
static final String XML_ATTRIBUTE_ARCH_END
The name of the "arch_end" attribute within {} elements.
Definition: Constants.java:306
net.sf.gridarta.model.archetypetype.Constants.XML_ELEMENT_IGNORE
static final String XML_ELEMENT_IGNORE
Ignore Element Name.
Definition: Constants.java:218
net.sf.gridarta.model.archetypetype.Constants.XML_IGNORE_LIST_NAME
static final String XML_IGNORE_LIST_NAME
The "name" attribute name of a XML_ELEMENT_IGNORE_LIST element.
Definition: Constants.java:340
net.sf.gridarta.model.archetypetype.Constants.XML_ATTRIBUTE_LENGTH
static final String XML_ATTRIBUTE_LENGTH
The name of the "length" attribute within XML_ELEMENT_ATTRIBUTE elements.
Definition: Constants.java:313
net.sf.gridarta.model.archetypetype.Constants.XML_BMENTRY_ENCODING
static final String XML_BMENTRY_ENCODING
The name of the "encoding" attribute within XML_ELEMENT_BMENTRY elements.
Definition: Constants.java:94
net.sf.gridarta.model.archetypetype.Constants.XML_TYPE_DISPLAY
static final String XML_TYPE_DISPLAY
The name of the "display" attribute within XML_ELEMENT_TYPE elements.
Definition: Constants.java:188
net.sf.gridarta.model.archetypetype.Constants.XML_IMPORT_TYPE_NAME
static final String XML_IMPORT_TYPE_NAME
The "name" attribute name of a XML_ELEMENT_IMPORT_TYPE element.
Definition: Constants.java:346
net.sf.gridarta.model.archetypetype.Constants.XML_ELEMENT_LISTENTRY
static final String XML_ELEMENT_LISTENTRY
The name of the "listentry" element.
Definition: Constants.java:119
net.sf.gridarta.model.archetypetype.Constants.XML_ATTRIBUTE_EDITOR
static final String XML_ATTRIBUTE_EDITOR
The name of the "editor" attribute within XML_ELEMENT_ATTRIBUTE elements.
Definition: Constants.java:250
net.sf.gridarta.model.archetypetype.Constants.XML_ATTRIBUTE_FALSE
static final String XML_ATTRIBUTE_FALSE
The name of the "false" attribute within XML_ELEMENT_ATTRIBUTE elements.
Definition: Constants.java:327
net.sf.gridarta.model.archetypetype.Constants.XML_TYPE_INV
static final String XML_TYPE_INV
The name of the "inv" attribute within XML_ELEMENT_TYPE elements.
Definition: Constants.java:174
net.sf.gridarta.model.archetypetype.Constants.XML_TYPE_ALLOWS_ALL_INV
static final String XML_TYPE_ALLOWS_ALL_INV
The name of the "allows_all_inv" attribute within {} elements.
Definition: Constants.java:181
net.sf.gridarta.model.archetypetype.Constants.XML_ELEMENT_ATTRIBUTE_ORDER
static final String XML_ELEMENT_ATTRIBUTE_ORDER
The name of the "attribute_order" element.
Definition: Constants.java:200
net.sf.gridarta.model.archetypetype.Constants.XML_ELEMENT_SECTION
static final String XML_ELEMENT_SECTION
Section Element Name.
Definition: Constants.java:230
net.sf.gridarta.model.archetypetype.Constants.XML_ATTRIBUTE_ARCH
static final String XML_ATTRIBUTE_ARCH
The name of the "arch" attribute within XML_ELEMENT_ATTRIBUTE elements.
Definition: Constants.java:243
net.sf.gridarta.model.archetypetype.Constants.XML_ELEMENT_TYPE
static final String XML_ELEMENT_TYPE
The name of the "type" element.
Definition: Constants.java:139
net.sf.gridarta.model.archetypetype.Constants.XML_TYPE_AVAILABLE
static final String XML_TYPE_AVAILABLE
The name of the "available" attribute within XML_ELEMENT_TYPE elements.
Definition: Constants.java:146
net.sf.gridarta.model.archetypetype.Constants.XML_BITMASK_IS_NAMED
static final String XML_BITMASK_IS_NAMED
The name of the "is_named" attribute within XML_ELEMENT_BITMASK elements.
Definition: Constants.java:60
net.sf.gridarta.model.archetypetype.Constants.Constants
Constants()
Private constructor to prevent instantiation.
Definition: Constants.java:369
net.sf.gridarta.model.archetypetype.Constants.XML_ATTRIBUTE_MIN
static final String XML_ATTRIBUTE_MIN
The name of the "min" attribute within XML_ELEMENT_ATTRIBUTE elements.
Definition: Constants.java:264
net.sf.gridarta.model.archetypetype.Constants.XML_ATTRIBUTE_CHECK_MAX
static final String XML_ATTRIBUTE_CHECK_MAX
The name of the "check_max" attribute within {} elements.
Definition: Constants.java:285
net.sf.gridarta.model.archetypetype.Constants.XML_BMENTRY_NAME
static final String XML_BMENTRY_NAME
The name of the "name" attribute within XML_ELEMENT_BMENTRY elements.
Definition: Constants.java:80
net.sf.gridarta.model.archetypetype.Constants.XML_SECTION_NAME
static final String XML_SECTION_NAME
The "name" attribute name of a XML_ELEMENT_SECTION element.
Definition: Constants.java:352
net.sf.gridarta.model.archetypetype.Constants.XML_TYPE_NAME
static final String XML_TYPE_NAME
The name of the "name" attribute within XML_ELEMENT_TYPE or XML_ELEMENT_DEFAULT_TYPE elements.
Definition: Constants.java:153
net.sf.gridarta.model.archetypetype.Constants
Constants needed to parse "types.xml" files.
Definition: Constants.java:28
net.sf.gridarta.model.archetypetype.Constants.XML_TYPE_MAP
static final String XML_TYPE_MAP
The name of the "map" attribute within XML_ELEMENT_TYPE elements.
Definition: Constants.java:167
net.sf.gridarta.model.archetypetype.Constants.XML_TYPE_NUMBER
static final String XML_TYPE_NUMBER
The name of the "number" attribute within XML_ELEMENT_TYPE elements.
Definition: Constants.java:160
net.sf.gridarta.model.archetypetype.Constants.XML_BMENTRY_BIT
static final String XML_BMENTRY_BIT
The name of the "bit" attribute within XML_ELEMENT_BMENTRY elements.
Definition: Constants.java:73
net.sf.gridarta.model.archetypetype.Constants.XML_ATTRIBUTE_VALUE
static final String XML_ATTRIBUTE_VALUE
The name of the "value" attribute within XML_ELEMENT_ATTRIBUTE elements.
Definition: Constants.java:257
net.sf.gridarta.model.archetypetype.Constants.XML_ELEMENT_DEFAULT_TYPE
static final String XML_ELEMENT_DEFAULT_TYPE
The name of the "default_type" element.
Definition: Constants.java:34
net.sf.gridarta.model.archetypetype.Constants.XML_ELEMENT_REQUIRED
static final String XML_ELEMENT_REQUIRED
Required Element Name.
Definition: Constants.java:212
net.sf.gridarta.model.archetypetype.Constants.XML_LISTENTRY_VALUE
static final String XML_LISTENTRY_VALUE
The name of the "value" attribute within XML_ELEMENT_LISTENTRY elements.
Definition: Constants.java:133
net.sf.gridarta.model.archetypetype.Constants.XML_ATTRIBUTE_ARCH_BEGIN
static final String XML_ATTRIBUTE_ARCH_BEGIN
The name of the "arch_begin" attribute within {} elements.
Definition: Constants.java:299
net.sf.gridarta.model.archetypetype.Constants.XML_ELEMENT_IGNORE_LIST
static final String XML_ELEMENT_IGNORE_LIST
The name of the "ignore_list" element.
Definition: Constants.java:206
net.sf.gridarta.model.archetypetype.Constants.XML_ELEMENT_BITMASKS
static final String XML_ELEMENT_BITMASKS
The name of the "bitmasks" element.
Definition: Constants.java:40
net.sf.gridarta.model.archetypetype.Constants.XML_LISTENTRY_NAME
static final String XML_LISTENTRY_NAME
The name of the "name" attribute within XML_ELEMENT_LISTENTRY elements.
Definition: Constants.java:126
net.sf.gridarta.model.archetypetype.Constants.XML_USE
static final String XML_USE
Use Element Name.
Definition: Constants.java:364
net.sf.gridarta.model.archetypetype.Constants.XML_ATTRIBUTE_CHECK_MIN
static final String XML_ATTRIBUTE_CHECK_MIN
The name of the "check_min" attribute within {} elements.
Definition: Constants.java:278
net.sf.gridarta.model.archetypetype.Constants.XML_ATTRIBUTE_TYPE
static final String XML_ATTRIBUTE_TYPE
The name of the "type" attribute within XML_ELEMENT_ATTRIBUTE elements.
Definition: Constants.java:292
net.sf.gridarta.model.archetypetype.Constants.XML_BITMASK_NAME
static final String XML_BITMASK_NAME
The name of the "name" attribute within XML_ELEMENT_BITMASK elements.
Definition: Constants.java:53