|
Java EE 5 SDK 深圳电信培训中心.徐海蛟老师. |
||||||||
上一个类 下一个类 | 框架 无框架 | ||||||||
摘要: 嵌套 | 字段 | 构造器 | 方法 | 详细信息: 字段 | 构造器 | 方法 |
javax.xml.registry.infomodel Interface ClassificationScheme
public interface ClassificationScheme
- extends RegistryEntry
A ClassificationScheme instance represents a taxonomy that may be used to classify or categorize RegistryObject instances. A very common example of a classification scheme in science is the Classification of living things where living things are categorized in under a tree like structure. Another example is the Dewey Decimal system used in libraries to categorize books and other publications. A common example in eBusiness is that of North American Industry Classification System (NAICS), which is a classification scheme used to classify businesses and services by the industry to which they belong.
Figure 1 shows how a ClassificationScheme is used by a Classification to classify a RegistryObject.
Figure 1. Using a ClassificationScheme to Classify an Object
字段摘要 | |
---|---|
static int |
VALUE_TYPE_EMBEDDED_PATH
Each taxonomy value in ClassificationScheme embeds the full path from scheme to that Concept. |
static int |
VALUE_TYPE_NON_UNIQUE
Taxonomy values in ClassificationScheme may be repeated within the same scheme. |
static int |
VALUE_TYPE_UNIQUE
Each taxonomy value in ClassificationScheme is unique. |
Fields inherited from interface javax.xml.registry.infomodel.RegistryEntry |
---|
STABILITY_DYNAMIC, STABILITY_DYNAMIC_COMPATIBLE, STABILITY_STATIC, STATUS_APPROVED, STATUS_DEPRECATED, STATUS_SUBMITTED, STATUS_WITHDRAWN |
方法摘要 | |
---|---|
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. |
Collection |
getDescendantConcepts()
Gets all descendant Concepts. |
int |
getValueType()
Gets the value type for this object. |
boolean |
isExternal()
Determines whether this ClassificationScheme is an external ClassificationScheme or an internal ClassificationScheme. |
void |
removeChildConcept(Concept concept)
Removes a child Concept. |
void |
removeChildConcepts(Collection concepts)
Removes a Collection of children Concepts. |
void |
setValueType(int valueType)
Sets the value type for this object. |
Methods inherited from interface javax.xml.registry.infomodel.RegistryEntry |
---|
getExpiration, getStability, getStatus, setExpiration, setStability |
Methods inherited from interface javax.xml.registry.infomodel.ExtensibleObject |
---|
addSlot, addSlots, getSlot, getSlots, removeSlot, removeSlots |
Methods inherited from interface javax.xml.registry.infomodel.Versionable |
---|
getMajorVersion, getMinorVersion, getUserVersion, setMajorVersion, setMinorVersion, setUserVersion |
字段详细信息 |
---|
VALUE_TYPE_UNIQUE
static final int VALUE_TYPE_UNIQUE
- Each taxonomy value in ClassificationScheme is unique.
- 另请参见:
- 常量字段
VALUE_TYPE_EMBEDDED_PATH
static final int VALUE_TYPE_EMBEDDED_PATH
- Each taxonomy value in ClassificationScheme embeds the full path from scheme to that Concept.
This also implies that each taxonomy value is unique.
- 另请参见:
- 常量字段
VALUE_TYPE_NON_UNIQUE
static final int VALUE_TYPE_NON_UNIQUE
- Taxonomy values in ClassificationScheme may be repeated within the same scheme.
However, two Concepts that have the same parent cannot have the same value.
- 另请参见:
- 常量字段
方法详细信息 |
---|
addChildConcept
void addChildConcept(Concept concept) throws JAXRException
- Adds a child Concept.
- Capability Level: 0
- 参数:
concept
- the concept being added as a child of this object- 抛出异常:
JAXRException
- If the JAXR provider encounters an internal error
addChildConcepts
void addChildConcepts(Collection concepts) throws JAXRException
- Adds a Collection of Concept children.
- Capability Level: 0
- 参数:
concepts
- the Collection of Concepts being added as a children of this object- 抛出异常:
JAXRException
- If the JAXR provider encounters an internal error
removeChildConcept
void removeChildConcept(Concept concept) throws JAXRException
- Removes a child Concept.
- Capability Level: 0
- 参数:
concept
- the concept being removed as a child Concept of this object- 抛出异常:
JAXRException
- If the JAXR provider encounters an internal error
removeChildConcepts
void removeChildConcepts(Collection concepts) throws JAXRException
- Removes a Collection of children Concepts.
- Capability Level: 0
- 参数:
concepts
- the Collection of Concepts being removed as children Concepts of this object- 抛出异常:
JAXRException
- If the JAXR provider encounters an internal error
getChildConceptCount
int getChildConceptCount() throws JAXRException
- Gets number of children.
- Capability Level: 0
- 返回:
- the number of children Concepts
- 抛出异常:
JAXRException
- If the JAXR provider encounters an internal error
getChildrenConcepts
Collection getChildrenConcepts() throws JAXRException
- Gets all immediate children Concepts.
- Capability Level: 0
- 返回:
- Collection of Concept instances. The Collection may be empty but not null.
- 抛出异常:
JAXRException
- If the JAXR provider encounters an internal error- 另请参见:
Concept
getDescendantConcepts
Collection getDescendantConcepts() throws JAXRException
- Gets all descendant Concepts.
- Capability Level: 0
- 返回:
- Collection of Concept instances. The Collection may be empty but not null.
- 抛出异常:
JAXRException
- If the JAXR provider encounters an internal error- 另请参见:
Concept
isExternal
boolean isExternal() throws JAXRException
- Determines whether this ClassificationScheme is an external ClassificationScheme
or an internal ClassificationScheme.
- Capability Level: 0
- 返回:
true
if this is an external ClassificationScheme;false
otherwise- 抛出异常:
JAXRException
- If the JAXR provider encounters an internal error
getValueType
int getValueType() throws JAXRException
- Gets the value type for this object.
The value type describes how taxonomy values are defined
within the scheme.
- Capability Level: 1
- 返回:
- an integer constant that describes the type of values supported by this ClassificationScheme
- 抛出异常:
JAXRException
- If the JAXR provider encounters an internal error- 另请参见:
VALUE_TYPE_UNIQUE
,VALUE_TYPE_EMBEDDED_PATH
,VALUE_TYPE_NON_UNIQUE
setValueType
void setValueType(int valueType) throws JAXRException
- Sets the value type for this object.
- Capability Level: 1
- 参数:
valueType
- an integer constant that describes the type of values supported by this ClassificationScheme- 抛出异常:
JAXRException
- If the JAXR provider encounters an internal error- 另请参见:
VALUE_TYPE_UNIQUE
,VALUE_TYPE_EMBEDDED_PATH
,VALUE_TYPE_NON_UNIQUE
|
Java EE 5 SDK 深圳电信培训中心.徐海蛟老师. |
||||||||
上一个类 下一个类 | 框架 无框架 | ||||||||
摘要: 嵌套 | 字段 | 构造器 | 方法 | 详细信息: 字段 | 构造器 | 方法 |
提交错误或意见
版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。深圳电信培训中心.徐海蛟老师教学参考.