Package javax.xml.registry.infomodel
Interface ClassificationScheme
- All Superinterfaces:
ExtensibleObject,RegistryEntry,RegistryObject,Versionable
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. Using a ClassificationScheme to Classify an Object
Figure 1 shows how a ClassificationScheme is used by a Classification to classify a RegistryObject.
Figure 1. Using a ClassificationScheme to Classify an Object
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intEach taxonomy value in ClassificationScheme embeds the full path from scheme to that Concept.static final intTaxonomy values in ClassificationScheme may be repeated within the same scheme.static final intEach 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
Modifier and TypeMethodDescriptionvoidaddChildConcept(Concept concept) Adds a child Concept.voidaddChildConcepts(Collection concepts) Adds a Collection of Concept children.intGets number of children.Gets all immediate children Concepts.Gets all descendant Concepts.intGets the value type for this object.booleanDetermines whether this ClassificationScheme is an external ClassificationScheme or an internal ClassificationScheme.voidremoveChildConcept(Concept concept) Removes a child Concept.voidremoveChildConcepts(Collection concepts) Removes a Collection of children Concepts.voidsetValueType(int valueType) Sets the value type for this object.Methods inherited from interface javax.xml.registry.infomodel.ExtensibleObject
addSlot, addSlots, getSlot, getSlots, removeSlot, removeSlotsMethods inherited from interface javax.xml.registry.infomodel.RegistryEntry
getExpiration, getStability, getStatus, setExpiration, setStabilityMethods inherited from interface javax.xml.registry.infomodel.RegistryObject
addAssociation, addAssociations, addClassification, addClassifications, addExternalIdentifier, addExternalIdentifiers, addExternalLink, addExternalLinks, getAssociatedObjects, getAssociations, getAuditTrail, getClassifications, getDescription, getExternalIdentifiers, getExternalLinks, getKey, getLifeCycleManager, getName, getObjectType, getRegistryPackages, getSubmittingOrganization, removeAssociation, removeAssociations, removeClassification, removeClassifications, removeExternalIdentifier, removeExternalIdentifiers, removeExternalLink, removeExternalLinks, setAssociations, setClassifications, setDescription, setExternalIdentifiers, setExternalLinks, setKey, setName, toXMLMethods inherited from interface javax.xml.registry.infomodel.Versionable
getMajorVersion, getMinorVersion, getUserVersion, setMajorVersion, setMinorVersion, setUserVersion
-
Field Details
-
VALUE_TYPE_UNIQUE
static final int VALUE_TYPE_UNIQUEEach taxonomy value in ClassificationScheme is unique.- See Also:
-
VALUE_TYPE_EMBEDDED_PATH
static final int VALUE_TYPE_EMBEDDED_PATHEach taxonomy value in ClassificationScheme embeds the full path from scheme to that Concept. This also implies that each taxonomy value is unique.- See Also:
-
VALUE_TYPE_NON_UNIQUE
static final int VALUE_TYPE_NON_UNIQUETaxonomy values in ClassificationScheme may be repeated within the same scheme. However, two Concepts that have the same parent cannot have the same value.- See Also:
-
-
Method Details
-
addChildConcept
Adds a child Concept.- Capability Level: 0
- Parameters:
concept- the concept being added as a child of this object- Throws:
JAXRException- If the Jakarta XML Registries provider encounters an internal error
-
addChildConcepts
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 Jakarta XML Registries provider encounters an internal error
-
removeChildConcept
Removes a child Concept.- Capability Level: 0
- Parameters:
concept- the concept being removed as a child Concept of this object- Throws:
JAXRException- If the Jakarta XML Registries provider encounters an internal error
-
removeChildConcepts
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 Jakarta XML Registries provider encounters an internal error
-
getChildConceptCount
Gets number of children.- Capability Level: 0
- Returns:
- the number of children Concepts
- Throws:
JAXRException- If the Jakarta XML Registries provider encounters an internal error
-
getChildrenConcepts
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 Jakarta XML Registries provider encounters an internal error- See Also:
-
getDescendantConcepts
Gets all descendant Concepts.- Capability Level: 0
- Returns:
- Collection of Concept instances. The Collection may be empty but not null.
- Throws:
JAXRException- If the Jakarta XML Registries provider encounters an internal error- See Also:
-
isExternal
Determines whether this ClassificationScheme is an external ClassificationScheme or an internal ClassificationScheme.- Capability Level: 0
- Returns:
trueif this is an external ClassificationScheme;falseotherwise- Throws:
JAXRException- If the Jakarta XML Registries provider encounters an internal error
-
getValueType
Gets the value type for this object. The value type describes how taxonomy values are defined within the scheme.- Capability Level: 1
- Returns:
- an integer constant that describes the type of values supported by this ClassificationScheme
- Throws:
JAXRException- If the Jakarta XML Registries provider encounters an internal error- See Also:
-
setValueType
Sets the value type for this object.- Capability Level: 1
- Parameters:
valueType- an integer constant that describes the type of values supported by this ClassificationScheme- Throws:
JAXRException- If the Jakarta XML Registries provider encounters an internal error- See Also:
-