public static class BOT.BOClassesPathCompiler extends java.lang.Object implements L10nPathCompilerI
EMPTY_ARRAY| Constructor and Description |
|---|
BOClassesPathCompiler() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object[] |
compileParticipantToPathElements(java.lang.Object participant)
Compiles the participant into an ordered sequence of primary lookup elements.
|
java.lang.String[] |
compileParticipantToTrailingPathElements(java.lang.Object participant)
Compiles fallback trailing path elements for the participant.
|
boolean |
isValidParticipant(java.lang.Object participant)
Checks whether this compiler supports the given participant.
|
void |
registerAllClasses(SchemaI schema)
Precomputes and registers lookup paths for all entities defined in the schema.
|
public void registerAllClasses(SchemaI schema)
schema - The schema providing entity metadata and module dependencies.public boolean isValidParticipant(java.lang.Object participant)
L10nPathCompilerIisValidParticipant in interface L10nPathCompilerIparticipant - The context object to validate (e.g. an instance or Class).true if this compiler can process the participant, false otherwise.public java.lang.Object[] compileParticipantToPathElements(java.lang.Object participant)
L10nPathCompilerIThe order of elements in the returned array is significant and determines localization lookup precedence (first match wins).
Type contract and string handling: The returned elements should generally not contain
arbitrary String objects, as string processing occurs at the end of the primary lookup
cycle in L10n#addStringParticipant. Instead, compilers should return structural tokens
(typically Class objects). If an implementation does return String instances
(e.g. precomputed fully qualified class/bundle names), they bypass class-level tokenization and
are evaluated directly as path identifiers.
compileParticipantToPathElements in interface L10nPathCompilerIparticipant - The validated context object to compile.Class objects or precalculated
path strings). Must return an empty array if no elements apply; never null.public java.lang.String[] compileParticipantToTrailingPathElements(java.lang.Object participant)
L10nPathCompilerITrailing elements are checked only after all primary class-level and string-level elements have
been evaluated without a hit. They define package-level fallback paths (e.g. "com.oashi.modules.erp.bo")
rather than class-specific bundles.
compileParticipantToTrailingPathElements in interface L10nPathCompilerIparticipant - The validated context object.Copyright © 2000-2026 OAshi S.à r.l. All Rights Reserved.