|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ClassificationScheme
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.
The figure below show how a ClassificationScheme is used by a Classification to classify a RegistryObject.
Field Summary | |
---|---|
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 |
Method Summary | |
---|---|
void |
addChildConcept(Concept concept)
Add a child Concept |
void |
addChildConcepts(java.util.Collection concepts)
Add a Collection of Concept children |
int |
getChildConceptCount()
Get number of children |
java.util.Collection |
getChildrenConcepts()
Get all immediate children Concepts |
java.util.Collection |
getDescendantConcepts()
Get all descendant Concepts |
int |
getValueType()
Get the value type for this object. |
boolean |
isExternal()
Determines whether this ClassificationScheme is an external ClassificationScheme or and internal ClassificationScheme. |
void |
removeChildConcept(Concept concept)
Remove a child Concept |
void |
removeChildConcepts(java.util.Collection concepts)
Remove a Collection of children Concepts |
void |
setValueType(int valueType)
Set 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 |
Field Detail |
---|
static final int VALUE_TYPE_UNIQUE
static final int VALUE_TYPE_EMBEDDED_PATH
static final int VALUE_TYPE_NON_UNIQUE
Method Detail |
---|
void addChildConcept(Concept concept) throws JAXRException
concept
- the concept being added as a child of this object
JAXRException
- If the JAXR provider encounters an internal errorvoid addChildConcepts(java.util.Collection concepts) throws JAXRException
concepts
- the Collection of Concepts being added as a children of this object
JAXRException
- If the JAXR provider encounters an internal errorvoid removeChildConcept(Concept concept) throws JAXRException
concept
- the concept being removed as a child Concept of this object
JAXRException
- If the JAXR provider encounters an internal errorvoid removeChildConcepts(java.util.Collection concepts) throws JAXRException
concepts
- the Collection of Concepts being removed as children Concepts of this object
JAXRException
- If the JAXR provider encounters an internal errorint getChildConceptCount() throws JAXRException
JAXRException
- If the JAXR provider encounters an internal errorjava.util.Collection getChildrenConcepts() throws JAXRException
JAXRException
- If the JAXR provider encounters an internal errorConcept
java.util.Collection getDescendantConcepts() throws JAXRException
JAXRException
- If the JAXR provider encounters an internal errorConcept
boolean isExternal() throws JAXRException
true
if this is an external ClassificationScheme; false
otherwise
JAXRException
- If the JAXR provider encounters an internal errorint getValueType() throws JAXRException
JAXRException
- If the JAXR provider encounters an internal errorClassificationScheme#VALUE_TYPE_UNIQUE
,
ClassificationScheme#VALUE_TYPE_EMBEDDED_PATH
,
ClassificationScheme#VALUE_TYPE_NON_UNIQUE
void setValueType(int valueType) throws JAXRException
valueType
- an integer constant that describes the type of values supported by this ClassificationScheme
JAXRException
- If the JAXR provider encounters an internal errorClassificationScheme#VALUE_TYPE_UNIQUE
,
ClassificationScheme#VALUE_TYPE_EMBEDDED_PATH
,
ClassificationScheme#VALUE_TYPE_NON_UNIQUE
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2009, 2010, Oracle Corporation and/or its affiliates. All Rights Reserved. Use is subject to license terms.
Generated on 4-June-2010 04:34