public class AbstractRulesetMetadata extends Object implements RulesetMetadata
RulesetMetadata instances. Provides sensible defaults.| Constructor and Description |
|---|
AbstractRulesetMetadata(String id)
Construct a new
AbstractRulesetMetadata instance using the given String ID. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
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()
|
int |
hashCode() |
boolean |
hasTags(String tag,
String... tags)
Return
true if this RulesetMetadata contains all of the given tags. |
String |
toString() |
public AbstractRulesetMetadata(String id)
AbstractRulesetMetadata instance using the given String ID.public String getID()
RulesetMetadataRuleProvider. The default is based on the originating
Addon and Class name, but this can be overridden in subclasses to provide a more readable name.getID in interface RulesetMetadatapublic String getDescription()
RulesetMetadataRulesetMetadata.getDescription in interface RulesetMetadatapublic String getOrigin()
RulesetMetadataString, informing a human where they can find the Rule instances provided
by this RuleProvider.getOrigin in interface RulesetMetadatapublic Set<String> getTags()
RulesetMetadataSet of tags by which this RulesetMetadata is classified.getTags in interface RulesetMetadatapublic boolean hasTags(String tag, String... tags)
RulesetMetadatatrue if this RulesetMetadata contains all of the given tags.hasTags in interface RulesetMetadatapublic Set<TechnologyReference> getSourceTechnologies()
RulesetMetadatagetSourceTechnologies in interface RulesetMetadatapublic Set<TechnologyReference> getTargetTechnologies()
RulesetMetadatagetTargetTechnologies in interface RulesetMetadatapublic Set<org.jboss.forge.furnace.addons.AddonId> getRequiredAddons()
RulesetMetadataSet 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.)getRequiredAddons in interface RulesetMetadataCopyright © 2021 JBoss by Red Hat. All rights reserved.