Package eu.bandm.tools.d2d2.model
Class Chars
java.lang.Object
eu.bandm.tools.d2d2.model.Chars
Fundamental character and string constant definition. Used ubiquituously.
Handwritten, but conceptually and actually part of the model package.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final char
Default setting of the d2d text input command character.static final char
Default setting of the d2d text input first comment character.static final char
The d2d text input second comment character.static final char
The d2d text input close tag character.static final char
Evident.static final char
Evident.static final CharSet
Evidentstatic final CharSet
Evidentstatic final CharSet
Decinal digits.static final CharSet
Contains carriage return, linefeed, tab, and blank.static final CharSet
Contains carriage return and linefeed.static final CharSet
The hexadecimal digits which are no decimal digits, in both caes.static final CharSet
Only alphabetic letters, lower or upper case.static final CharSet
Evidentstatic final CharSet
Alphabetic letters, lower or upper case, the undescore sign, and decimal digits..static final CharSet
The start symbols for number inputs: Digits only (no sign symbol!)static final CharSet
All hexadecimal digits, including 0..9, in lower and upper case.Maps all allowedxs open parantheses to their closing counterpart.static final String
The definition name for the type definition of the documentation text extracted from d2d defintions.static final String
Prefix for German user documentation in the d2d type definition files.static final String
Prefix for English user documentation in the d2d type definition files.static final String
Used when an xslt transformation generates plain text, not xml.static final String
Used in d2d module's namespace declaration.static final String
The string to eliminate an expression in a rewrite expression.static final String
The module name for the type definition of the documentation text extracted from d2d defintions.All allowed open parantheses.static final String
Prefix for user documentation in the d2d type definition files.static final String
Evident.static final String
Matches one newline character.static final int
Complies to XEmacs counting.static final int
Complies to XEmacs counting.static final String
Synthetic d2d element definition to contain all attributes common to more than one DTD element.static final String
Prepended to the name of an XML-DTD attribute to distinguish it from a leading content element.static final String
Replaces the namespace separator when translating xml dtd identifier to d2d definitions.static final String
Used to separate the lexical world of module names from that of definition names.static final String
Separator used in a d2d2 text type declaration header.static final String
Separator for hierarchical identifiers.static final String
Contains only one newline character.static final String
The d2d text input reserved tag for changing the command character.static final String
The d2d text input reserved tag for changing the comment character.static final String
The d2d text input reserved tag for suppressing the warnings when the command character appears in "verbatim" input text.static final String
Content model for character data.static final String
The d2d text input reserved tag for the end of the text input.static final String
Version number of the current implementation.static final String
The tag which stands for any result element in the d2d definition of xslt.static final String
The module name of the d2d type definition of xslt files.Prefices used to disambiguate the xslt tags from the tags in the result text format.static final String
One of the two tags foreseen for the top-level xml element of an xslt style sheet, supported by the d2d model fo xslt.static final String
The definition in the d2d definition of xslt which lists all elements which can appear anywhere in the result elements an xslt code file. -
Method Summary
Modifier and TypeMethodDescriptionstatic <D> boolean
checkName
(String s, @Opt Location<D> elloc, @Opt MessageReceiver<SimpleMessage<D>> msg) Checks that not illegal characters are in the name of the d2d definition to create.static boolean
isReservedTag
(String tag) Is true for some tags which are allowed, but reserved for future special use.static boolean
isValidTag
(String tag) Excludes all those identifiers (=tags), which are reserved tags in d2d input files (commandchar, commentchar, suppressVerbatimCommandCharWarning, eof).
-
Field Details
-
STRING_VERSION_NUMBERS
Version number of the current implementation. Used by all applications "Main" and "Batch".- See Also:
-
SOURCE_DOCUMENT_LEFTMOST_COLUMN_NUMBER
public static final int SOURCE_DOCUMENT_LEFTMOST_COLUMN_NUMBERComplies to XEmacs counting.- See Also:
-
SOURCE_DOCUMENT_TOPMOST_LINE_NUMBER
public static final int SOURCE_DOCUMENT_TOPMOST_LINE_NUMBERComplies to XEmacs counting.- See Also:
-
STRING_NAMING_LEVEL_SEPARATOR
Separator for hierarchical identifiers. Used for names of sub-modules, for sequences of import prefixes, and for local definitions. Is also used to separate import prefices from definition names. Is in sync with parser rule "reference =.." from ../parser/d2d.g2- See Also:
-
CHAR_NAMING_LEVEL_SEPARATOR
public static final char CHAR_NAMING_LEVEL_SEPARATOREvident. @see #STRING_NAMING_LEVEL_SEPARATOR -
REGEXP_NAMING_LEVEL_SEPARATOR
Evident. @see #STRING_NAMING_LEVEL_SEPARATOR -
STRING_LEXICAL_WORLDS_SEPARATOR
Used to separate the lexical world of module names from that of definition names. (Both have their own hierarchy, but never meet in execution.) Is used in documentation print-outs.- See Also:
-
REGEXP_NEWLINE
Matches one newline character. -
STRING_NEWLINE
Contains only one newline character.- See Also:
-
STRING_MODULE_FROM_TOPLEVEL_ELEMENT_SEPARATOR
Separator used in a d2d2 text type declaration header. (Must be distinct fromSTRING_NAMING_LEVEL_SEPARATOR
for the module part to be recognizable immediately.) .- See Also:
-
CHAR_MODULE_FROM_TOPLEVEL_ELEMENT_SEPARATOR
public static final char CHAR_MODULE_FROM_TOPLEVEL_ELEMENT_SEPARATOREvident. @see #STRING_MODULE_FROM_TOPLEVEL_ELEMENT_SEPARATOR -
PREFIX_DOCUMENT_TARGET_USER
Prefix for user documentation in the d2d type definition files.- See Also:
-
DOCUMENT_TARGET_USER_EN
Prefix for English user documentation in the d2d type definition files.- See Also:
-
DOCUMENT_TARGET_USER_DE
Prefix for German user documentation in the d2d type definition files.- See Also:
-
STRING_TAGNAME_chardata
Content model for character data.- See Also:
-
CHAR_COMMAND_DEFAULT
public static final char CHAR_COMMAND_DEFAULTDefault setting of the d2d text input command character.- See Also:
-
CHAR_COMMENT_1_DEFAULT
public static final char CHAR_COMMENT_1_DEFAULTDefault setting of the d2d text input first comment character.- See Also:
-
CHAR_COMMENT_2
public static final char CHAR_COMMENT_2The d2d text input second comment character.- See Also:
-
CHAR_ENDTAG_LEADIN
public static final char CHAR_ENDTAG_LEADINThe d2d text input close tag character.- See Also:
-
STRING_SET_COMMAND_CHAR
The d2d text input reserved tag for changing the command character.- See Also:
-
STRING_SET_COMMENT_CHAR
The d2d text input reserved tag for changing the comment character.- See Also:
-
STRING_SUPPRESS_VERB_WARNING
The d2d text input reserved tag for suppressing the warnings when the command character appears in "verbatim" input text.- See Also:
-
STRING_TAGNAME_eof
The d2d text input reserved tag for the end of the text input.- See Also:
-
MESSAGE_REPRESENTATION_EXPRESSION_NONE
The string to eliminate an expression in a rewrite expression.- See Also:
-
charset_eoline
Contains carriage return and linefeed. -
charset_blanks
Contains carriage return, linefeed, tab, and blank. -
charset_ascii_alpha_lower
Evident -
charset_ascii_alpha_upper
Evident -
charset_ascii_numeric
Decinal digits. -
charset_ident_initial
Only alphabetic letters, lower or upper case. -
charset_ident_subsequent
Alphabetic letters, lower or upper case, the undescore sign, and decimal digits.. -
charset_ident_initial_or_subsequent
Evident -
charset_numeric_initial
The start symbols for number inputs: Digits only (no sign symbol!) -
charset_hex_letters
The hexadecimal digits which are no decimal digits, in both caes. -
charset_numeric_initial_or_subsequent
All hexadecimal digits, including 0..9, in lower and upper case. -
closeParentheses
Maps all allowedxs open parantheses to their closing counterpart. -
openParentheses
All allowed open parantheses. -
STRING_DTD_attribute_disambiguation_prefix
Prepended to the name of an XML-DTD attribute to distinguish it from a leading content element.- See Also:
-
STRING_DTD_namespace_mangling
Replaces the namespace separator when translating xml dtd identifier to d2d definitions.- See Also:
-
STRING_DTD_attContainerNamer
Synthetic d2d element definition to contain all attributes common to more than one DTD element.- See Also:
-
empty_uri_indication
Used in d2d module's namespace declaration.- See Also:
-
DUMMY_XSLT_TARGET_UNSTRUCTURED
Used when an xslt transformation generates plain text, not xml.- See Also:
-
modulename_docuTextDeclaration
The module name for the type definition of the documentation text extracted from d2d defintions.- See Also:
-
defname_docuTextDeclaration
The definition name for the type definition of the documentation text extracted from d2d defintions.- See Also:
-
xslt_modulename
The module name of the d2d type definition of xslt files.- See Also:
-
xslt_generic_tag_for_backend_elements
The tag which stands for any result element in the d2d definition of xslt.- See Also:
-
xslt_tag_toplevel
One of the two tags foreseen for the top-level xml element of an xslt style sheet, supported by the d2d model fo xslt.- See Also:
-
xslt_tag_ubiquituous
The definition in the d2d definition of xslt which lists all elements which can appear anywhere in the result elements an xslt code file.- See Also:
-
xslt_prefices
Prefices used to disambiguate the xslt tags from the tags in the result text format.
-
-
Method Details
-
checkName
public static <D> boolean checkName(String s, @Opt @Opt Location<D> elloc, @Opt @Opt MessageReceiver<SimpleMessage<D>> msg) Checks that not illegal characters are in the name of the d2d definition to create. An d2d ident must follow the grammar('A'..'Z'|'a'..'z')(('a'..'z')|('A'..'Z')|('0'..'9')| '_' | '-' )*
. "Extender" characters allowed in XML tags are rejected. So are colons forgotten to remove, because namespace mode has not been declared by PIs.- Parameters:
s
- the name for the constructed d2d definitionelloc
- the location of the source element declaration, for error messages.msg
- where to send the error messages
-
isReservedTag
Is true for some tags which are allowed, but reserved for future special use. -
isValidTag
Excludes all those identifiers (=tags), which are reserved tags in d2d input files (commandchar, commentchar, suppressVerbatimCommandCharWarning, eof).
-