|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PlaceholderMatcher
Used to determine if the provided value is indeed a placeholder for a configurable value.
DefaultPlaceholderMatcher
Method Summary | |
---|---|
java.lang.String |
getProceedingText()
Returns the proceeding text of the current Placeholder . |
java.lang.String |
getTrailingText()
Returns the trailing text of the current Placeholder . |
boolean |
hasNext()
Moves to the next placeholder if one is available and returns true, otherwise this method returns false |
void |
init(java.lang.String value)
(Re-)Initialise the matcher for a new value. |
boolean |
isMultiplePlaceholdersPresent()
A method to determine if the provided value contains multiple placeholders. |
boolean |
isPlaceholderPresent()
A method to dermine if the provided key is a placeholder for a configurable value. |
Placeholder |
next()
Returns the next placeholder to be evaluated. |
Method Detail |
---|
void init(java.lang.String value)
value
- The value that we are now matchingboolean isPlaceholderPresent()
boolean isMultiplePlaceholdersPresent()
Placeholder next()
Note: much like the iterator class, the hasNext()
method must be called
before this method.
Placeholder
.boolean hasNext()
java.lang.String getProceedingText()
Placeholder
.
e.g. a value of "some proceeding text ${placeholder}" would return "some proceeding next "
after the first call to hasNext()
.
java.lang.String getTrailingText()
Placeholder
.
e.g. a value of "some proceeding text ${placeholder} some trailing text" would return " some trailing text"
after the first call to hasNext()
.
Note: the trailing text is also the proceeding text of the next placehodler where there are more placeholders.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |