Class Matcher.Enclosed
java.lang.Object
org.apache.rat.documentation.velocity.Matcher.Enclosed
- Enclosing class:
Matcher
The description of an enclosed matcher.
-
Method Details
-
getRequired
Gets the required flag.- Returns:
- the word "required" or "optional" depending on the state of the required flag.
-
getCollection
Gets the phrase "or more " if the enclosed matcher may be multiple.- Returns:
- the phrase "or more " or an empty string.
-
getType
Get the type of the enclosed matcher.- Returns:
- the type of the enclosed matcher.
-
getValue
Gets the value of the enclosed matcher.- If the Matcher does not have an
IHeaderMatcher
defined this method returnsnull
. - If the value is a string it is normalized before being returned.
- Returns:
- the value of the enclosed matcher in the provided
IHeaderMatcher
. - See Also:
- If the Matcher does not have an
-