public interface Classification
The Classification interface is used to classify RegistryObject instances. A RegistryObject may be classified along multiple dimensions by adding zero or more Classification instances to the RegistryObject. For example, an Organization may be classified by its industry, by the products it sells and by its geographical location. In this example the RegistryObject would have at least three Classification instances added to it. The RegistryObject interface provides several addClassification methods to allow a client to add Classification instances to a Registry Object.
Figure 1 shows how a Classification classifies a RegistryObject using a ClassificationScheme.
When a Classification instance is used to classify a RegistryObject using an internal taxonomy it is referred to as an internal Classification. A client must call the setConcept method on a Classification and define a reference to a Concept instance from the Classification instance in order for that Classification to use an internal taxonomy. It is not necessary for the client to call setClassificationScheme for internal Classifications since the classifying Concept already knows it root ClassificationScheme.
RegistryObject,
Concept| Method Summary | |
|---|---|
ClassificationScheme |
getClassificationScheme()
Gets the ClassificationScheme that is used in classifying the object. |
RegistryObject |
getClassifiedObject()
Gets the Object that is being classified. |
Concept |
getConcept()
Gets the Concept that is classifying the object. |
String |
getValue()
Gets the taxonomy value for this Classification. |
boolean |
isExternal()
Returns true if this is an external classification. |
void |
setClassificationScheme(ClassificationScheme classificationScheme)
Sets the ClassificationScheme for this external classification. |
void |
setClassifiedObject(RegistryObject classifiedObject)
Sets the object that is being classified. |
void |
setConcept(Concept concept)
Sets the concept for this internal classification. |
void |
setValue(String value)
Sets the taxonomy value for this external Classification. |
| Methods inherited from interface javax.xml.registry.infomodel.ExtensibleObject |
|---|
addSlot, addSlots, getSlot, getSlots, removeSlot, removeSlots |
| Method Detail |
|---|
Concept getConcept() throws JAXRException
JAXRException - If the JAXR provider encounters an internal errorvoid setConcept(Concept concept) throws JAXRException
This method should be used mutually exclusively with the setClassificationScheme method.
concept - the Concept that is classifying the classified object.
JAXRException - If the JAXR provider encounters an internal errorClassificationScheme getClassificationScheme() throws JAXRException
JAXRException - If the JAXR provider encounters an internal errorClassificationSchemevoid setClassificationScheme(ClassificationScheme classificationScheme) throws JAXRException
If this method is called then you must also call setValue method. This method should be used mutually exclusively with the setConcept method.
classificationScheme - the ClassificationScheme used by this Classification
JAXRException - If the JAXR provider encounters an internal errorString getValue() throws JAXRException
JAXRException - If the JAXR provider encounters an internal errorvoid setValue(String value) throws JAXRException
value - the taxonomy value used by this external Classification
JAXRException - If the JAXR provider encounters an internal errorRegistryObject getClassifiedObject() throws JAXRException
JAXRException - If the JAXR provider encounters an internal errorvoid setClassifiedObject(RegistryObject classifiedObject) throws JAXRException
classifiedObject - the RegistryObject that is classified by this Classification
JAXRException - If the JAXR provider encounters an internal error
boolean isExternal()
throws JAXRException
true if this is an external Classification; false otherwise
JAXRException - If the JAXR provider encounters an internal errorCes informations proviennent du site de http://java.sun.com
Le contenu de cette page provient du site de Sun, et est généré depuis un cache sur l'infobrol après certains traitements automatisés. La présentation peut donc différer du document original, mais le contenu aussi. Vous pouvez utiliser ce bouton pour afficher la page originale du site de Sun :
Maintenir les pages en cache sur différents sites peut offrir plus de disponibilité.
Chaque page est indexée dans la base de donnée, ce qui permet de retrouver facilement les informations, au moyen des sommaires, du moteur de recherche interne, etc.
Des facilités sont mises en place pour que les membres de l'infobrol puissent effectuer des traductions en français des différents documents. Ceci devrait permettre aux débutants en programmation Java de consulter les API en français s'ils maîtrisent moins bien la langue de Shakespeare. Dans le cas où une traduction a été soumise, elle est disponible au moyen d'un lien en bas de page. Si la traduction a été validée, la page s'affiche par défaut en français, et un lien en bas de page permet d'atteindre la version en anglais.
Le code sur l'infobrol est automatiquement coloré selon la syntaxe, et les différents mots clés sont transformés en liens pour accéder rapidement aux informations.
Vous avez la possibilité de partager vos expériences en proposant vos propres extraits de code en utilisant le bouton "ajouter un commentaire" en bas de page. Si vous visitez simplement l'infobrol, vous avez déjà accès à cette fonction, mais si vous étes membre du brol, vous pouvez en plus utiliser des boutons supplémentaires de mise en forme, dont la coloration automatique de vos extraits de codes.
Vous pouvez modifier vos préférences dans votre profil pour ne plus afficher les interactions avec les réseaux sociaux sur ces pages.
8 mots clés dont 0 définis manuellement (plus d'information...).
Avertissement
Cette page ne possède pas encore de mots clés manuels, ceci est donc un exemple automatique (les niveaux de pertinence sont fictifs, mais les liens sont valables). Pour tester le nuage avec une page qui contient des mots définis manuellement, vous pouvez cliquer ici.Vous pouvez modifier vos préférences dans votre profil pour ne plus afficher le nuage de mots clés.
Recherche (afficher)
Utilisateur (masquer)
Navigation (masquer)
Apparence (afficher)
Stats (afficher)
Citation (masquer)