Class Matcher.Attribute
java.lang.Object
org.apache.rat.documentation.velocity.Matcher.Attribute
- Enclosing class:
Matcher
The definition of an attribute.
-
Method Details
-
getName
Gets the attribute name.- Returns:
- the attribut name.
-
getRequired
Gets the required flag.- Returns:
- the word "required" or "optional" depending on the state of the required flag.
-
getType
Get the type of the attribute.- Returns:
- the type of the enclosed matcher.
-
getDescription
Gets the description of the attribute or an empty string.- Returns:
- the description of the attribute or an empty string.
-
getValue
Gets the value of the enclosed matcher.- If the Matcher does not have an
IHeaderMatcher
defined this method returnsnull
. - If the value of the attribute (self) is
null
, this method returnsnull
. - If the value is a string, it is normalized before being returned.
- If the attribute is an "id" and the value is a UUID,
null
is returned. - otherwise, the string value is returned.
- Returns:
- the value of the enclosed matcher in the provided
IHeaderMatcher
. - See Also:
- If the Matcher does not have an
-