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

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


org.drools.repository
Class CategoryItem

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

public class CategoryItem
extends Item

The TagItem class abstracts away details of the underlying JCR repository.

Author:
btruitt

Field Summary
static String TAG_NODE_TYPE_NAME
          The name of the tag node type
 
Fields inherited from class org.drools.repository.Item
node, rulesRepository
 
Constructor Summary
CategoryItem(RulesRepository rulesRepository, javax.jcr.Node node)
          Constructs an object of type TagItem corresponding the specified node
 
Method Summary
 CategoryItem addCategory(String name, String description)
          This will create a child category under this one
 List getChildTags()
           
 String getFullPath()
           
 void remove()
          This will remove the category and any ones under it.
 
Methods inherited from class org.drools.repository.Item
equals, getName, getNode, getRulesRepository, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TAG_NODE_TYPE_NAME

public static final String TAG_NODE_TYPE_NAME
The name of the tag node type

See Also:
Constant Field Values
Constructor Detail

CategoryItem

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

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

getFullPath

public String getFullPath()
                   throws RulesRepositoryException
Returns:
the full path of this tag, rooted at the tag area of the repository.
Throws:
RulesRepositoryException

getChildTags

public List getChildTags()
                  throws RulesRepositoryException
Returns:
a List of the immediate children of this tag
Throws:
RulesRepositoryException

addCategory

public CategoryItem addCategory(String name,
                                String description)
This will create a child category under this one


remove

public void remove()
This will remove the category and any ones under it. This will only work if you have no current assets linked to the category.



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