org.drools.lang.api.impl
Class AttributeDescrBuilderImpl<P extends DescrBuilder<?,?>>

java.lang.Object
  extended by org.drools.lang.api.impl.BaseDescrBuilderImpl<P,AttributeDescr>
      extended by org.drools.lang.api.impl.AttributeDescrBuilderImpl<P>
All Implemented Interfaces:
AttributeDescrBuilder<P>, DescrBuilder<P,AttributeDescr>

public class AttributeDescrBuilderImpl<P extends DescrBuilder<?,?>>
extends BaseDescrBuilderImpl<P,AttributeDescr>
implements AttributeDescrBuilder<P>


Field Summary
 
Fields inherited from class org.drools.lang.api.impl.BaseDescrBuilderImpl
descr, parent
 
Constructor Summary
AttributeDescrBuilderImpl(P parent, String name)
           
 
Method Summary
 AttributeDescrBuilder<P> type(AttributeDescr.Type type)
          Sets the attribute value type
 AttributeDescrBuilderImpl<P> value(String value)
          Sets the attribute value
 
Methods inherited from class org.drools.lang.api.impl.BaseDescrBuilderImpl
end, endCharacter, endLocation, getDescr, startCharacter, startLocation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.drools.lang.api.DescrBuilder
end, endCharacter, endLocation, getDescr, startCharacter, startLocation
 

Constructor Detail

AttributeDescrBuilderImpl

public AttributeDescrBuilderImpl(P parent,
                                 String name)
Method Detail

value

public AttributeDescrBuilderImpl<P> value(String value)
Description copied from interface: AttributeDescrBuilder
Sets the attribute value

Specified by:
value in interface AttributeDescrBuilder<P extends DescrBuilder<?,?>>
Returns:
itself

type

public AttributeDescrBuilder<P> type(AttributeDescr.Type type)
Description copied from interface: AttributeDescrBuilder
Sets the attribute value type

Specified by:
type in interface AttributeDescrBuilder<P extends DescrBuilder<?,?>>
Parameters:
type - see AttributeDescr.Type
Returns:
itself


Copyright © 2001-2013 JBoss Inc.. All Rights Reserved.