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

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


org.drools.repository
Class StateItem

java.lang.Object
  extended by org.drools.repository.Item
      extended by org.drools.repository.StateItem

public class StateItem
extends Item

The StateItem represents the status of an asset. An asset can only be in 1 state at a time. Kind of for workflow.

Author:
btruitt

Field Summary
static String DRAFT_STATE_NAME
          All assets when created, or a new version saved, have a status of Draft.
static String STATE_NODE_TYPE_NAME
          The name of the state node type
 
Fields inherited from class org.drools.repository.Item
node, rulesRepository
 
Constructor Summary
StateItem(RulesRepository rulesRepository, javax.jcr.Node node)
          Constructs an object of type StateItem corresponding the specified node
 
Method Summary
 boolean equals(Object in)
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class org.drools.repository.Item
getName, getNode, getRulesRepository
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

DRAFT_STATE_NAME

public static String DRAFT_STATE_NAME
All assets when created, or a new version saved, have a status of Draft.


STATE_NODE_TYPE_NAME

public static final String STATE_NODE_TYPE_NAME
The name of the state node type

See Also:
Constant Field Values
Constructor Detail

StateItem

public StateItem(RulesRepository rulesRepository,
                 javax.jcr.Node node)
          throws RulesRepositoryException
Constructs an object of type StateItem corresponding the specified node

Parameters:
rulesRepository - the rulesRepository that instantiated this object
node - the node to which this object corresponds
Throws:
RulesRepositoryException
Method Detail

equals

public boolean equals(Object in)
Overrides:
equals in class Item

toString

public String toString()
Overrides:
toString in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Item


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