public interface RulesetMetadata
Addon that contains RuleProvider implementations should implement this interface, and by doing
so provide some basic metadata about its contents.| Modifier and Type | Method and Description |
|---|---|
String |
getDescription()
Returns a human-readable description the rules associated with this
RulesetMetadata. |
String |
getID()
Returns a unique identifier for the corresponding
RuleProvider. |
String |
getOrigin()
Returns a descriptive
String, informing a human where they can find the Rule instances provided
by this RuleProvider. |
Set<org.jboss.forge.furnace.addons.AddonId> |
getRequiredAddons()
Return the
Set of Addons required to run this rule-set. |
Set<TechnologyReference> |
getSourceTechnologies()
|
Set<String> |
getTags()
Return the
Set of tags by which this RulesetMetadata is classified. |
Set<TechnologyReference> |
getTargetTechnologies()
|
boolean |
hasTags(String tag,
String... tags)
Return
true if this RulesetMetadata contains all of the given tags. |
String getID()
RuleProvider. The default is based on the originating
Addon and Class name, but this can be overridden in subclasses to provide a more readable name.String getOrigin()
String, informing a human where they can find the Rule instances provided
by this RuleProvider.String getDescription()
RulesetMetadata.Set<String> getTags()
Set of tags by which this RulesetMetadata is classified.boolean hasTags(String tag, String... tags)
true if this RulesetMetadata contains all of the given tags.Set<TechnologyReference> getSourceTechnologies()
Set<TechnologyReference> getTargetTechnologies()
Set<org.jboss.forge.furnace.addons.AddonId> getRequiredAddons()
Set of Addons required to run this rule-set. (Note: This is typically only used
in situations where rules are provided externally - such as XML - whereas in Java, the Addon will already
define its dependencies on other addons directly.)Copyright © 2021 JBoss by Red Hat. All rights reserved.