Package io.apicurio.registry.rules
Class RuleContext
- java.lang.Object
-
- io.apicurio.registry.rules.RuleContext
-
public class RuleContext extends Object
Contains all of the information needed by a rule executor, including the rule-specific configuration, current and updated content, and any other meta-data needed.- Author:
- Ales Justin
-
-
Constructor Summary
Constructors Constructor Description RuleContext(String groupId, String artifactId, ArtifactType artifactType, String configuration, ContentHandle currentContent, ContentHandle updatedContent)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getArtifactId()
ArtifactType
getArtifactType()
String
getConfiguration()
ContentHandle
getCurrentContent()
String
getGroupId()
ContentHandle
getUpdatedContent()
-
-
-
Constructor Detail
-
RuleContext
public RuleContext(String groupId, String artifactId, ArtifactType artifactType, String configuration, ContentHandle currentContent, ContentHandle updatedContent)
Constructor.- Parameters:
groupId
-artifactId
-artifactType
-configuration
-currentContent
-updatedContent
-
-
-
Method Detail
-
getGroupId
public String getGroupId()
- Returns:
- the groupId
-
getArtifactId
public String getArtifactId()
- Returns:
- the artifactId
-
getArtifactType
public ArtifactType getArtifactType()
- Returns:
- the artifactType
-
getConfiguration
public String getConfiguration()
- Returns:
- the configuration
-
getCurrentContent
public ContentHandle getCurrentContent()
- Returns:
- the currentContent
-
getUpdatedContent
public ContentHandle getUpdatedContent()
- Returns:
- the updatedContent
-
-