Package org.drools.drl.ast.dsl
Interface AttributeSupportBuilder<P extends DescrBuilder<?,?>>
- All Known Subinterfaces:
PackageDescrBuilder,RuleDescrBuilder
- All Known Implementing Classes:
PackageDescrBuilderImpl,RuleDescrBuilderImpl
public interface AttributeSupportBuilder<P extends DescrBuilder<?,?>>
An interface for all builders of statements that support attributes
-
Method Summary
Modifier and TypeMethodDescriptionAdds a new attribute to the statementAdds a new attribute with the given name and valueattribute(String name, String value, AttributeDescr.Type type) Adds a new attribute with the given name and value
-
Method Details
-
attribute
Adds a new attribute to the statement- Parameters:
name- the attribute name- Returns:
- the AttributeDescrBuilder to set the attribute value
-
attribute
Adds a new attribute with the given name and value- Parameters:
name- the name of the attribute to be addedvalue- the value of the attribute to be added- Returns:
- the container builder
-
attribute
Adds a new attribute with the given name and value- Parameters:
name- the name of the attribute to be addedvalue- the value of the attribute to be addedtype- the type of the value of the attribute. SeeAttributeDescr.Type- Returns:
- the container builder
-