站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss RULES 4.0.0.11754MR2 API 英文版文档

BRXMLContentHandler (Drools 4.0.0.11754MR2 API) - JBoss RULES 4.0.0.11754MR2 API 英文版文档


org.drools.brms.server.contenthandler
Class BRXMLContentHandler

java.lang.Object
  extended by org.drools.brms.server.contenthandler.ContentHandler
      extended by org.drools.brms.server.contenthandler.BRXMLContentHandler
All Implemented Interfaces:
IRuleAsset

public class BRXMLContentHandler
extends ContentHandler
implements IRuleAsset


Constructor Summary
BRXMLContentHandler()
           
 
Method Summary
 void assembleDRL(BRMSPackageBuilder builder, AssetItem asset, StringBuffer buf)
          This will be called when a rule asset is to render itself to DRL source.
 void compile(BRMSPackageBuilder builder, AssetItem asset, ContentPackageAssembler.ErrorLogger logger)
          This will be called when the asset is required to compile itself, in the context of the given builder.
 void retrieveAssetContent(RuleAsset asset, PackageItem pkg, 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.brms.server.contenthandler.ContentHandler
getHandler, isRuleAsset
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BRXMLContentHandler

public BRXMLContentHandler()
Method Detail

retrieveAssetContent

public void retrieveAssetContent(RuleAsset asset,
                                 PackageItem pkg,
                                 AssetItem item)
                          throws com.google.gwt.user.client.rpc.SerializableException
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.SerializableException

storeAssetContent

public void storeAssetContent(RuleAsset asset,
                              AssetItem repoAsset)
                       throws com.google.gwt.user.client.rpc.SerializableException
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.SerializableException

compile

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

Specified by:
compile in interface IRuleAsset
Throws:
DroolsParserException
IOException

assembleDRL

public void assembleDRL(BRMSPackageBuilder builder,
                        AssetItem asset,
                        StringBuffer buf)
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


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