Package org.drools.compiler.lang.api
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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AttributeDescrBuilder<P>
attribute(String name)
Adds a new attribute to the statementP
attribute(String name, String value)
Adds a new attribute with the given name and valueP
attribute(String name, String value, AttributeDescr.Type type)
Adds a new attribute with the given name and value
-
-
-
Method Detail
-
attribute
AttributeDescrBuilder<P> attribute(String name)
Adds a new attribute to the statement- Parameters:
name
- the attribute name- Returns:
- the AttributeDescrBuilder to set the attribute value
-
attribute
P attribute(String name, String value)
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
P attribute(String name, String value, AttributeDescr.Type type)
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
-
-