当前页面:
在线文档首页 >
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
org.drools.repository.Item
org.drools.repository.CategoryItem
public class CategoryItem
- extends Item
The TagItem class abstracts away details of the underlying JCR repository.
- Author:
- btruitt
Constructor Summary |
CategoryItem(RulesRepository rulesRepository,
javax.jcr.Node node)
Constructs an object of type TagItem corresponding the specified node |
TAG_NODE_TYPE_NAME
public static final String TAG_NODE_TYPE_NAME
- The name of the tag node type
- See Also:
- Constant Field Values
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 objectnode
- the node to which this object corresponds
- Throws:
RulesRepositoryException
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.