Class HasPropertyVisitor
java.lang.Object
org.forgerock.config.resolvers.template.HasPropertyVisitor
- All Implemented Interfaces:
TemplateVisitor<Boolean,
Void>
This visitor detects if there is any token/placeholder inside the given
Template
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic TemplateVisitor<Boolean,
Void> Returns a newHasPropertyVisitor
.visitEmpty
(Void context) Visit an empty template with the givencontext
object.visitProperty
(Void context, Template property, Template defaultValue) Visit a property template with the givencontext
object.visitSequence
(Void context, List<Template> sequence) Visit a sequence of templates with the givencontext
object.Visit a textual template with the givencontext
object.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.forgerock.config.resolvers.template.TemplateVisitor
visitAny
-
Constructor Details
-
HasPropertyVisitor
public HasPropertyVisitor()
-
-
Method Details
-
hasProperty
Returns a newHasPropertyVisitor
.- Returns:
- a new
HasPropertyVisitor
.
-
visitText
Description copied from interface:TemplateVisitor
Visit a textual template with the givencontext
object.- Specified by:
visitText
in interfaceTemplateVisitor<Boolean,
Void> - Parameters:
context
- the contextual object (can benull
)text
- the text contained in the visited textual template- Returns:
- the result of the operation on the template
-
visitEmpty
Description copied from interface:TemplateVisitor
Visit an empty template with the givencontext
object.- Specified by:
visitEmpty
in interfaceTemplateVisitor<Boolean,
Void> - Parameters:
context
- the contextual object (can benull
)- Returns:
- the result of the operation on the template
-
visitProperty
Description copied from interface:TemplateVisitor
Visit a property template with the givencontext
object.- Specified by:
visitProperty
in interfaceTemplateVisitor<Boolean,
Void> - Parameters:
context
- the contextual object (can benull
)property
- the template that defines the property's namedefaultValue
- the template that defines the property's default value- Returns:
- the result of the operation on the template
-
visitSequence
Description copied from interface:TemplateVisitor
Visit a sequence of templates with the givencontext
object.- Specified by:
visitSequence
in interfaceTemplateVisitor<Boolean,
Void> - Parameters:
context
- the contextual object (can benull
)sequence
- the (nevernull
) list of templates within this sequence- Returns:
- the result of the operation on the template
-