Package org.jboss.windup.config.metadata
Class AbstractRulesetMetadata
- java.lang.Object
-
- org.jboss.windup.config.metadata.AbstractRulesetMetadata
-
- All Implemented Interfaces:
RulesetMetadata
- Direct Known Subclasses:
MetadataBuilder
public class AbstractRulesetMetadata extends Object implements RulesetMetadata
Base class for constructingRulesetMetadatainstances. Provides sensible defaults.- Author:
- Lincoln Baxter, III
-
-
Constructor Summary
Constructors Constructor Description AbstractRulesetMetadata(String id)Construct a newAbstractRulesetMetadatainstance using the givenStringID.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)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()inthashCode()booleanhasTags(String tag, String... tags)Returntrueif thisRulesetMetadatacontains all of the given tags.StringtoString()
-
-
-
Constructor Detail
-
AbstractRulesetMetadata
public AbstractRulesetMetadata(String id)
Construct a newAbstractRulesetMetadatainstance using the givenStringID.
-
-
Method Detail
-
getID
public String getID()
Description copied from interface:RulesetMetadataReturns 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.- Specified by:
getIDin interfaceRulesetMetadata
-
getDescription
public String getDescription()
Description copied from interface:RulesetMetadataReturns a human-readable description the rules associated with thisRulesetMetadata.- Specified by:
getDescriptionin interfaceRulesetMetadata
-
getOrigin
public String getOrigin()
Description copied from interface:RulesetMetadataReturns a descriptiveString, informing a human where they can find theRuleinstances provided by thisRuleProvider.- Specified by:
getOriginin interfaceRulesetMetadata
-
getTags
public Set<String> getTags()
Description copied from interface:RulesetMetadataReturn theSetof tags by which thisRulesetMetadatais classified.- Specified by:
getTagsin interfaceRulesetMetadata
-
hasTags
public boolean hasTags(String tag, String... tags)
Description copied from interface:RulesetMetadataReturntrueif thisRulesetMetadatacontains all of the given tags.- Specified by:
hasTagsin interfaceRulesetMetadata
-
getSourceTechnologies
public Set<TechnologyReference> getSourceTechnologies()
Description copied from interface:RulesetMetadata- Specified by:
getSourceTechnologiesin interfaceRulesetMetadata
-
getTargetTechnologies
public Set<TechnologyReference> getTargetTechnologies()
Description copied from interface:RulesetMetadata- Specified by:
getTargetTechnologiesin interfaceRulesetMetadata
-
getRequiredAddons
public Set<org.jboss.forge.furnace.addons.AddonId> getRequiredAddons()
Description copied from interface:RulesetMetadataReturn 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.)- Specified by:
getRequiredAddonsin interfaceRulesetMetadata
-
-