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
FieldsModifier and TypeFieldDescriptionstatic final charDefault setting of the d2d text input command character.static final charDefault setting of the d2d text input first comment character.static final charThe d2d text input second comment character.static final charThe d2d text input close tag character.static final charEvident.static final charEvident.static final CharSetEvidentstatic final CharSetEvidentstatic final CharSetDecinal digits.static final CharSetContains carriage return, linefeed, tab, and blank.static final CharSetContains carriage return and linefeed.static final CharSetThe hexadecimal digits which are no decimal digits, in both caes.static final CharSetOnly alphabetic letters, lower or upper case.static final CharSetEvidentstatic final CharSetAlphabetic letters, lower or upper case, the undescore sign, and decimal digits..static final CharSetThe start symbols for number inputs: Digits only (no sign symbol!)static final CharSetAll hexadecimal digits, including 0..9, in lower and upper case.Maps all allowedxs open parantheses to their closing counterpart.static final StringThe definition name for the type definition of the documentation text extracted from d2d defintions.static final StringPrefix for German user documentation in the d2d type definition files.static final StringPrefix for English user documentation in the d2d type definition files.static final StringUsed when an xslt transformation generates plain text, not xml.static final StringUsed in d2d module's namespace declaration.static final StringThe string to eliminate an expression in a rewrite expression.static final StringThe module name for the type definition of the documentation text extracted from d2d defintions.All allowed open parantheses.static final StringPrefix for user documentation in the d2d type definition files.static final StringEvident.static final StringMatches one newline character.static final intComplies to XEmacs counting.static final intComplies to XEmacs counting.static final StringSynthetic d2d element definition to contain all attributes common to more than one DTD element.static final StringPrepended to the name of an XML-DTD attribute to distinguish it from a leading content element.static final StringReplaces the namespace separator when translating xml dtd identifier to d2d definitions.static final StringUsed to separate the lexical world of module names from that of definition names.static final StringSeparator used in a d2d2 text type declaration header.static final StringSeparator for hierarchical identifiers.static final StringContains only one newline character.static final StringThe d2d text input reserved tag for changing the command character.static final StringThe d2d text input reserved tag for changing the comment character.static final StringThe d2d text input reserved tag for suppressing the warnings when the command character appears in "verbatim" input text.static final StringContent model for character data.static final StringThe d2d text input reserved tag for the end of the text input.static final StringVersion number of the current implementation.static final StringThe tag which stands for any result element in the d2d definition of xslt.static final StringThe 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 StringOne 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 StringThe 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> booleancheckName(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 booleanisReservedTag(String tag) Is true for some tags which are allowed, but reserved for future special use.static booleanisValidTag(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_SEPARATORfor 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).
-