当前页面:
在线文档首页 >
JBoss RULES 4.0.0.11754MR2 API 英文版文档
ContentHandler (Drools 4.0.0.11754MR2 API) - JBoss RULES 4.0.0.11754MR2 API 英文版文档
org.drools.brms.server.contenthandler
Class ContentHandler
java.lang.Object
org.drools.brms.server.contenthandler.ContentHandler
- Direct Known Subclasses:
- BRXMLContentHandler, DecisionTableXLSHandler, DSLRuleContentHandler, ModelContentHandler, PlainTextContentHandler
public abstract class ContentHandler
- extends Object
All content handlers must implement this, and be registered in content_types.properties
- Author:
- Michael Neale
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ContentHandler
public ContentHandler()
retrieveAssetContent
public abstract void retrieveAssetContent(RuleAsset asset,
PackageItem pkg,
AssetItem item)
throws com.google.gwt.user.client.rpc.SerializableException
- When loading asset content.
- Parameters:
asset
- The target.item
- The source.
- Throws:
com.google.gwt.user.client.rpc.SerializableException
storeAssetContent
public abstract void storeAssetContent(RuleAsset asset,
AssetItem repoAsset)
throws com.google.gwt.user.client.rpc.SerializableException
- For storing the asset content back into the repo node (any changes).
- Parameters:
asset
- repoAsset
-
- Throws:
com.google.gwt.user.client.rpc.SerializableException
getHandler
public static ContentHandler getHandler(String format)
isRuleAsset
public boolean isRuleAsset()
- Returns:
- true if the current content type is for a rule asset.
If it is a rule asset, then it can be assembled into a package.
If its not, then it is there, nominally to support compiling or
validation/testing of the package (eg a model, or a dsl file).
Copyright © 2001-2007
JBoss Inc.. All Rights Reserved.