Package org.mycore.common
Class MCRTextResolver.EscapeCharacter
java.lang.Object
org.mycore.common.MCRTextResolver.Term
org.mycore.common.MCRTextResolver.EscapeCharacter
- Enclosing class:
- MCRTextResolver
As escape character the backslashed is used. Only the
first character after the escape char is add to the term.
-
Field Summary
Fields inherited from class org.mycore.common.MCRTextResolver.Term
position, resolved, termBuffer, textResolver
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionImplement this to define the end enclosing string for your term.Implement this to define the start enclosing string for your term.Resolves the text from the startPosition to the end of the text or if a term specific end character is found.boolean
resolveInternal
(String text, int pos) Does term specific resolving for the current character.Methods inherited from class org.mycore.common.MCRTextResolver.Term
getTextResolver, getValue
-
Constructor Details
-
EscapeCharacter
-
-
Method Details
-
resolveInternal
Description copied from class:MCRTextResolver.Term
Does term specific resolving for the current character.- Specified by:
resolveInternal
in classMCRTextResolver.Term
- Returns:
- true if the end string is reached, otherwise false
-
resolve
Description copied from class:MCRTextResolver.Term
Resolves the text from the startPosition to the end of the text or if a term specific end character is found.- Overrides:
resolve
in classMCRTextResolver.Term
- Parameters:
text
- the term to resolvestartPos
- the current character position- Returns:
- the value of the term after resolving
-
getStartEnclosingString
Description copied from class:MCRTextResolver.Term
Implement this to define the start enclosing string for your term. The resolver searches in the text for this string, if found, the text is processed by your term.- Specified by:
getStartEnclosingString
in classMCRTextResolver.Term
- Returns:
- the start enclosing string
-
getEndEnclosingString
Description copied from class:MCRTextResolver.Term
Implement this to define the end enclosing string for your term. You have to check manual in theresolveInternal
method if the end of your term is reached.- Specified by:
getEndEnclosingString
in classMCRTextResolver.Term
- Returns:
- the end enclosing string
-