Package org.jboss.windup.config.metadata
Interface RulesetMetadata
-
- All Known Subinterfaces:
RuleProviderMetadata
- All Known Implementing Classes:
AbstractRulesetMetadata,MetadataBuilder
public interface RulesetMetadataEachAddonthat containsRuleProviderimplementations should implement this interface, and by doing so provide some basic metadata about its contents.- Author:
- Jess Sightler
, Lincoln Baxter, III
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetDescription()Returns a human-readable description the rules associated with thisRulesetMetadata.StringgetID()Returns a unique identifier for the correspondingRuleProvider.StringgetOrigin()Returns a descriptiveString, informing a human where they can find theRuleinstances provided by thisRuleProvider.Set<org.jboss.forge.furnace.addons.AddonId>getRequiredAddons()Return theSetofAddons required to run this rule-set.Set<TechnologyReference>getSourceTechnologies()Set<String>getTags()Return theSetof tags by which thisRulesetMetadatais classified.Set<TechnologyReference>getTargetTechnologies()booleanhasTags(String tag, String... tags)Returntrueif thisRulesetMetadatacontains all of the given tags.
-
-
-
Method Detail
-
getID
String getID()
Returns a unique identifier for the correspondingRuleProvider. The default is based on the originatingAddonandClassname, but this can be overridden in subclasses to provide a more readable name.
-
getOrigin
String getOrigin()
Returns a descriptiveString, informing a human where they can find theRuleinstances provided by thisRuleProvider.
-
getDescription
String getDescription()
Returns a human-readable description the rules associated with thisRulesetMetadata.
-
getTags
Set<String> getTags()
Return theSetof tags by which thisRulesetMetadatais classified.
-
hasTags
boolean hasTags(String tag, String... tags)
Returntrueif thisRulesetMetadatacontains all of the given tags.
-
getSourceTechnologies
Set<TechnologyReference> getSourceTechnologies()
-
getTargetTechnologies
Set<TechnologyReference> getTargetTechnologies()
-
getRequiredAddons
Set<org.jboss.forge.furnace.addons.AddonId> getRequiredAddons()
Return theSetofAddons 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, theAddonwill already define its dependencies on other addons directly.)
-
-