|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
javax.xml.registry.infomodel Interface Concept
- All Superinterfaces:
- ExtensibleObject, RegistryObject
public interface Concept
- extends RegistryObject
Concept 接口用于表示分类元素及其彼此之间的结构关系,以便描述内部分类。Concept 实例用于定义树结构,其中树根是 ClassificationScheme 实例,树中的每个节点是 Concept 实例。可以定义两个 Concept 相等。
图 1 展示了如何使用 Concept 实例表示分类元素及其彼此之间的结构关系,以便描述内部分类。
图 1. 使用 Concept 表示分类元素
See also | javax.xml.registry.infomodel.RegistryObject, javax.xml.registry.infomodel.Classification, javax.xml.registry.infomodel.ClassificationScheme |
The Concept interface is used to represent taxonomy elements and their structural relationship with each other in order to describe an internal taxonomy. Concept instances are used to define tree structures where the root of the tree is a ClassificationScheme instance and each node in the tree is a Concept instance. Two Concepts may be defined as being equivalent.
Figure 1 shows how Concept instances are used to represent taxonomy elements and their structural relationship with each other in order to describe an internal taxonomy.
Figure 1. Using Concepts to Represent Taxonomy Elements
- Author:
- Farrukh S. Najmi
- See Also:
RegistryObject
,Classification
,ClassificationScheme
Method Summary | |
---|---|
void |
addChildConcept(Concept concept)
Adds a child Concept. |
void |
addChildConcepts(Collection concepts)
Adds a Collection of Concept children. |
int |
getChildConceptCount()
Gets number of children. |
Collection |
getChildrenConcepts()
Gets all immediate children Concepts. |
ClassificationScheme |
getClassificationScheme()
Gets the ClassificationScheme that this Concept is a descendent of. |
Collection |
getDescendantConcepts()
Gets all descendant Concepts. |
RegistryObject |
getParent()
Gets the parent Concept or ClassificationScheme for this object. |
Concept |
getParentConcept()
Gets the parent Concept or null if parent is a ClassificationScheme. |
String |
getPath()
Gets the canonical path representation for this Concept. |
String |
getValue()
Gets the value (usually a code in a taxonomy) associated with this Concept. |
void |
removeChildConcept(Concept concept)
Removes a child Concept. |
void |
removeChildConcepts(Collection concepts)
Removes a Collection of children Concepts. |
void |
setValue(String value)
Sets the value (usually a taxonomy value) associated with this Concept. |
Methods inherited from interface javax.xml.registry.infomodel.ExtensibleObject |
---|
addSlot, addSlots, getSlot, getSlots, removeSlot, removeSlots |
Method Detail |
---|
public String
getValue() throws JAXRException
获取与此 Concept 关联的值(通常是某个分类中的代码)。
- 功能级别:0
return | 与此 Concept 关联的值(通常为分类值) |
Throws | JAXRException: 如果 JAXR 提供者遇到内部错误 |
getValue
String getValue() throws JAXRException
- Gets the value (usually a code in a taxonomy) associated with this Concept.
- Capability Level: 0
- Returns:
- the value (usually a taxonomy value) associated with this Concept
- Throws:
JAXRException
- If the JAXR provider encounters an internal error
public void
setValue(String value) throws JAXRException
设置与此 Concept 关联的值(通常是一个分类值)。
- 功能级别:0
value | 与此 Concept 关联的值(通常为分类值) |
Throws | JAXRException: 如果 JAXR 提供者遇到内部错误 |
setValue
void setValue(String value) throws JAXRException
- Sets the value (usually a taxonomy value) associated with this Concept.
- Capability Level: 0
- Parameters:
value
- the value (usually a taxonomy value) associated with this Concept- Throws:
JAXRException
- If the JAXR provider encounters an internal error
public void
addChildConcept(Concept concept) throws JAXRException
添加一个子 Concept。
- 功能级别:0
concept | 作为此对象的子对象添加的 Concept |
Throws | JAXRException: 如果 JAXR 提供者遇到内部错误 |
addChildConcept
void addChildConcept(Concept concept) throws JAXRException
- Adds a child Concept.
- Capability Level: 0
- Parameters:
concept
- the concept being added as a child of this object- Throws:
JAXRException
- If the JAXR provider encounters an internal error
public void
addChildConcepts(java.util.Collection<E> concepts) throws JAXRException
添加一个 Concept 子代所组成的 Collection。
添加一个 Concept 子代所组成的 Collection。
- 功能级别:0
concepts | 作为此对象子代添加的 Concept 所组成的 Collection |
Throws | JAXRException: 如果 JAXR 提供者遇到内部错误 |
addChildConcepts
void addChildConcepts(Collection concepts) throws JAXRException
- Adds a Collection of Concept children.
- Capability Level: 0
- Parameters:
concepts
- the Collection of Concepts being added as a children of this object- Throws:
JAXRException
- If the JAXR provider encounters an internal error
public void
removeChildConcept(Concept concept) throws JAXRException
移除一个子 Concept。
- 功能级别:0
concept | 作为此对象的子对象移除的 Concept |
Throws | JAXRException: 如果 JAXR 提供者遇到内部错误 |
removeChildConcept
void removeChildConcept(Concept concept) throws JAXRException
- Removes a child Concept.
- Capability Level: 0
- Parameters:
concept
- the concept being removed as a child Concept of this object- Throws:
JAXRException
- If the JAXR provider encounters an internal error
public void
removeChildConcepts(java.util.Collection<E> concepts) throws JAXRException
移除一个 Concept 子代所组成的 Collection。
移除一个 Concept 子代所组成的 Collection。
- 功能级别:0
concepts | 作为此对象子代移除的 Concept 所组成的 Collection |
Throws | JAXRException: 如果 JAXR 提供者遇到内部错误 |
removeChildConcepts
void removeChildConcepts(Collection concepts) throws JAXRException
- Removes a Collection of children Concepts.
- Capability Level: 0
- Parameters:
concepts
- the Collection of Concepts being removed as children Concepts of this object- Throws:
JAXRException
- If the JAXR provider encounters an internal error
public int
getChildConceptCount() throws JAXRException
获取子代的数量。
- 功能级别:0
return | 子代 Concept 的数量 |
Throws | JAXRException: 如果 JAXR 提供者遇到内部错误 |
getChildConceptCount
int getChildConceptCount() throws JAXRException
- Gets number of children.
- Capability Level: 0
- Returns:
- the number of children Concepts
- Throws:
JAXRException
- If the JAXR provider encounters an internal error
public java.util.Collection<E>
getChildrenConcepts() throws JAXRException
获取所有直接子代 Concept。
- 功能级别:0
return | Concept 实例所组成的 Collection。Collection 可以为空,但不能为 null。 |
Throws | JAXRException: 如果 JAXR 提供者遇到内部错误 |
See also | javax.xml.registry.infomodel.Concept |
getChildrenConcepts
Collection getChildrenConcepts() throws JAXRException
- Gets all immediate children Concepts.
- Capability Level: 0
- Returns:
- Collection of Concept instances. The Collection may be empty but not null.
- Throws:
JAXRException
- If the JAXR provider encounters an internal error- See Also:
Concept
public java.util.Collection<E>
getDescendantConcepts() throws JAXRException
获取所有后代 Concept。
- 功能级别:0
return | Concept 实例所组成的 Collection。Collection 可以为空,但不能为 null。 |
Throws | JAXRException: 如果 JAXR 提供者遇到内部错误 |
See also | javax.xml.registry.infomodel.Concept |
getDescendantConcepts
Collection getDescendantConcepts() throws JAXRException
- Gets all descendant Concepts.
- Capability Level: 0
- Returns:
- Collection of Concept instances. The Collection may be empty but not null.
- Throws:
JAXRException
- If the JAXR provider encounters an internal error- See Also:
Concept
public Concept
getParentConcept() throws JAXRException
获取父 Concept;如果父 Concept 是 ClassificationScheme,则返回 null。
- 功能级别:0
return | 作为此对象的父对象的 Concept | |
Throws | JAXRException: 如果 JAXR 提供者遇到内部错误 | |
label |
| |
directed | ||
supplierCardinality | 0..1 | |
associates | <{javax.xml.registry.infomodel.Concept}> |
getParentConcept
Concept getParentConcept() throws JAXRException
- Gets the parent Concept or null if parent is a ClassificationScheme.
- Capability Level: 0
- Returns:
- the Concept that is the parent of this object
- Throws:
JAXRException
- If the JAXR provider encounters an internal error
public ClassificationScheme
getClassificationScheme() throws JAXRException
获取作为此 Concept 祖先的 ClassificationScheme。
- 功能级别:0
return | 作为此对象的祖先的 ClassificationScheme。可以返回 null | |
Throws | JAXRException: 如果 JAXR 提供者遇到内部错误 | |
label |
| |
directed | ||
supplierCardinality | 0..1 | |
associates | <{javax.xml.registry.infomodel.ClassificationScheme}> |
getClassificationScheme
ClassificationScheme getClassificationScheme() throws JAXRException
- Gets the ClassificationScheme that this Concept is a descendent of.
- Capability Level: 0
- Returns:
- the ClassificationScheme that is the ancestor of this object. May return null
- Throws:
JAXRException
- If the JAXR provider encounters an internal error
public String
getPath() throws JAXRException
获取此 Concept 的规范路径表示形式。
- 功能级别:0
return | 此对象的规范路径 String 表示形式 |
Throws | JAXRException: 如果 JAXR 提供者遇到内部错误 |
getPath
String getPath() throws JAXRException
- Gets the canonical path representation for this Concept.
- Capability Level: 0
- Returns:
- the canonical path String representing this object
- Throws:
JAXRException
- If the JAXR provider encounters an internal error
public RegistryObject
getParent() throws JAXRException
获取此对象的父 Concept 或 ClassificationScheme。
- 功能级别:0
return | 此对象的父 Concept 或 ClassificationScheme |
Throws | JAXRException: 如果 JAXR 提供者遇到内部错误 |
getParent
RegistryObject getParent() throws JAXRException
- Gets the parent Concept or ClassificationScheme for this object.
- Capability Level: 0
- Returns:
- the parent Concept or ClassificationScheme for this object
- Throws:
JAXRException
- If the JAXR provider encounters an internal error
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Submit a bug or feature
Copyright 2007 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.
PS : 未经我党受权你也可自由散发此文档。 如有任何错误请自行修正;若因此而造成任何损失请直接找人民主席,请勿与本人联系。谢谢!