org.drools.guvnor.server.contenthandler
Class GuidedDTContentHandler

java.lang.Object
  extended by org.drools.guvnor.server.contenthandler.ContentHandler
      extended by org.drools.guvnor.server.contenthandler.GuidedDTContentHandler
All Implemented Interfaces:
ICompilable, IRuleAsset

public class GuidedDTContentHandler
extends ContentHandler
implements IRuleAsset

For guided decision tables.


Constructor Summary
GuidedDTContentHandler()
           
 
Method Summary
 void assembleDRL(BRMSPackageBuilder builder, AssetItem asset, StringBuilder stringBuilder)
          This will be called when a rule asset is to render itself to DRL source.
 void assembleDRL(BRMSPackageBuilder builder, RuleAsset asset, StringBuilder stringBuilder)
           
 void compile(BRMSPackageBuilder builder, AssetItem asset, AssemblyErrorLogger logger)
          This will be called when the asset is required to compile itself, in the context of the given builder.
 String getRawDRL(AssetItem asset)
          If the rule has DSL in it, it is presented unexpanded.
 void retrieveAssetContent(RuleAsset asset, AssetItem item)
          When loading asset content.
 void storeAssetContent(RuleAsset asset, AssetItem repoAsset)
          For storing the asset content back into the repo node (any changes).
 
Methods inherited from class org.drools.guvnor.server.contenthandler.ContentHandler
isRuleAsset, parentNameFromCategory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GuidedDTContentHandler

public GuidedDTContentHandler()
Method Detail

retrieveAssetContent

public void retrieveAssetContent(RuleAsset asset,
                                 AssetItem item)
                          throws com.google.gwt.user.client.rpc.SerializationException
Description copied from class: ContentHandler
When loading asset content.

Specified by:
retrieveAssetContent in class ContentHandler
Parameters:
asset - The target.
item - The source.
Throws:
com.google.gwt.user.client.rpc.SerializationException

storeAssetContent

public void storeAssetContent(RuleAsset asset,
                              AssetItem repoAsset)
                       throws com.google.gwt.user.client.rpc.SerializationException
Description copied from class: ContentHandler
For storing the asset content back into the repo node (any changes).

Specified by:
storeAssetContent in class ContentHandler
Throws:
com.google.gwt.user.client.rpc.SerializationException

compile

public void compile(BRMSPackageBuilder builder,
                    AssetItem asset,
                    AssemblyErrorLogger logger)
             throws org.drools.compiler.DroolsParserException,
                    IOException
Description copied from interface: ICompilable
This will be called when the asset is required to compile itself, in the context of the given builder.

Specified by:
compile in interface ICompilable
Throws:
org.drools.compiler.DroolsParserException
IOException

assembleDRL

public void assembleDRL(BRMSPackageBuilder builder,
                        RuleAsset asset,
                        StringBuilder stringBuilder)
Specified by:
assembleDRL in interface IRuleAsset

assembleDRL

public void assembleDRL(BRMSPackageBuilder builder,
                        AssetItem asset,
                        StringBuilder stringBuilder)
Description copied from interface: IRuleAsset
This will be called when a rule asset is to render itself to DRL source.

Specified by:
assembleDRL in interface IRuleAsset

getRawDRL

public String getRawDRL(AssetItem asset)
Description copied from interface: IRuleAsset
If the rule has DSL in it, it is presented unexpanded.

Specified by:
getRawDRL in interface IRuleAsset


Copyright © 2001-2012 JBoss by Red Hat. All Rights Reserved.