java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractSet<E>
java.util.HashSet<JobStateReason>
javax.print.attribute.standard.JobStateReasons
public final class JobStateReasons
Class JobStateReasons is a printing attribute class, a set of enumeration
values, that provides additional information about the job's current state,
i.e., information that augments the value of the job's JobState attribute.
Instances of JobStateReason do not appear in a Print
Job's attribute set directly. Rather, a JobStateReasons attribute appears in
the Print Job's attribute set. The JobStateReasons attribute contains zero,
one, or more than one JobStateReason objects which
pertain to the Print Job's status. The printer adds a JobStateReason object to the Print Job's JobStateReasons attribute when the
corresponding condition becomes true of the Print Job, and the printer
removes the JobStateReason object again when the
corresponding condition becomes false, regardless of whether the Print Job's
overall JobState also changed.
Class JobStateReasons inherits its implementation from class java.util.HashSet. Unlike most printing attributes which
are immutable once constructed, class JobStateReasons is designed to be
mutable; you can add JobStateReason objects to an
existing JobStateReasons object and remove them again. However, like class
java.util.HashSet, class JobStateReasons is not
multiple thread safe. If a JobStateReasons object will be used by multiple
threads, be sure to synchronize its operations (e.g., using a synchronized
set view obtained from class java.util.Collections).
IPP Compatibility: The string value returned by each individual JobStateReason object's toString() method gives
the IPP keyword value. The category name returned by getName()
gives the IPP attribute name.
| Constructor Summary | |
|---|---|
JobStateReasons()
Construct a new, empty job state reasons attribute; the underlying hash set has the default initial capacity and load factor. |
|
JobStateReasons(Collection<JobStateReason> collection)
Construct a new job state reasons attribute that contains the same JobStateReason objects as the given collection. |
|
JobStateReasons(int initialCapacity)
Construct a new, empty job state reasons attribute; the underlying hash set has the given initial capacity and the default load factor. |
|
JobStateReasons(int initialCapacity,
float loadFactor)
Construct a new, empty job state reasons attribute; the underlying hash set has the given initial capacity and load factor. |
|
| Method Summary | |
|---|---|
boolean |
add(JobStateReason o)
Adds the specified element to this job state reasons attribute if it is not already present. |
Class<? extends Attribute> |
getCategory()
Get the printing attribute class which is to be used as the "category" for this printing attribute value. |
String |
getName()
Get the name of the category of which this attribute value is an instance. |
| Methods inherited from class java.util.HashSet |
|---|
clear, clone, contains, isEmpty, iterator, remove, size |
| Methods inherited from class java.util.AbstractSet |
|---|
equals, hashCode, removeAll |
| Methods inherited from class java.util.AbstractCollection |
|---|
addAll, containsAll, retainAll, toArray, toArray, toString |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.Set |
|---|
addAll, containsAll, equals, hashCode, removeAll, retainAll, toArray, toArray |
| Constructor Detail |
|---|
public JobStateReasons()
public JobStateReasons(int initialCapacity)
initialCapacity - Initial capacity.
IllegalArgumentException - if the initial capacity is less
than zero.
public JobStateReasons(int initialCapacity,
float loadFactor)
initialCapacity - Initial capacity.loadFactor - Load factor.
IllegalArgumentException - if the initial capacity is less
than zero.public JobStateReasons(Collection<JobStateReason> collection)
JobStateReason objects as the given collection.
The underlying hash set's initial capacity and load factor are as
specified in the superclass constructor HashSet(Collection).
collection - Collection to copy.
NullPointerException - (unchecked exception) Thrown if collection is null or
if any element in collection is null.
ClassCastException - (unchecked exception) Thrown if any element in
collection is not an instance of class JobStateReason.| Method Detail |
|---|
public boolean add(JobStateReason o)
JobStateReason. If this job state reasons
attribute already contains the specified element, the call leaves this
job state reasons attribute unchanged and returns false.
add in interface Collection<JobStateReason>add in interface Set<JobStateReason>add in class HashSet<JobStateReason>o - Element to be added to this job state reasons attribute.
NullPointerException - (unchecked exception) Thrown if the specified element is null.
ClassCastException - (unchecked exception) Thrown if the specified element is not an
instance of class JobStateReason.public final Class<? extends Attribute> getCategory()
For class JobStateReasons, the category is class JobStateReasons itself.
getCategory in interface Attributejava.lang.Class.public final String getName()
For class JobStateReasons, the category
name is "job-state-reasons".
Ces 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)