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

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


org.drools.repository
Class Item

java.lang.Object
  extended by org.drools.repository.Item
Direct Known Subclasses:
CategoryItem, StateItem, VersionableItem

public abstract class Item
extends Object

The item class is used to abstract away the underlying details of the JCR repository.

Author:
btruitt

Field Summary
protected  javax.jcr.Node node
          The node within the repository that this item corresponds to
protected  RulesRepository rulesRepository
          The RulesRepository object that this object was created from
 
Constructor Summary
Item(RulesRepository rulesRepository, javax.jcr.Node node)
          Sets the item object's node attribute to the specified node
 
Method Summary
 boolean equals(Object obj)
           
 String getName()
          gets the name of this item (unless overridden in a subclass, this just returns the name of the node that this Item encapsulates.
 javax.jcr.Node getNode()
          gets the node in the repository that this item is associated with
 RulesRepository getRulesRepository()
           
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

node

protected javax.jcr.Node node
The node within the repository that this item corresponds to


rulesRepository

protected RulesRepository rulesRepository
The RulesRepository object that this object was created from

Constructor Detail

Item

public Item(RulesRepository rulesRepository,
            javax.jcr.Node node)
Sets the item object's node attribute to the specified node

Parameters:
rulesRepository - the RulesRepository object that this object is being created from
node - the node in the repository that this item corresponds to
Method Detail

getNode

public javax.jcr.Node getNode()
gets the node in the repository that this item is associated with

Returns:
the node in the repository that this item is associated with

getName

public String getName()
               throws RulesRepositoryException
gets the name of this item (unless overridden in a subclass, this just returns the name of the node that this Item encapsulates.

Returns:
the name of the node that this item encapsultes
Throws:
RulesRepositoryException

getRulesRepository

public RulesRepository getRulesRepository()
Returns:
the RulesRepository object that this object was instantiated from

equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object


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