javax.print.attribute

Class TextSyntax

    • Constructor Summary

      Constructors 
      Modifier Constructor and Description
      protected TextSyntax(String value, Locale locale)
      Constructs a TextAttribute with the specified string and locale.

        

    • Method Summary

      Methods 
      Modifier and Type Method and Description
      boolean equals(Object object)
      Returns whether this text attribute is equivalent to the passed in object.
      Locale getLocale()
      Returns this text attribute's text string's natural language (locale).
      String getValue()
      Returns this text attribute's text string.
      int hashCode()
      Returns a hashcode for this text attribute.
      String toString()
      Returns a String identifying this text attribute.

        

    • Constructor Detail

      • TextSyntax

        protected TextSyntax(String value,
                  Locale locale)
        Constructs a TextAttribute with the specified string and locale.
        Parameters:
        value - Text string.
        locale - Natural language of the text string. null is interpreted to mean the default locale for as returned by Locale.getDefault()
        Throws:
        NullPointerException - (unchecked exception) Thrown if value is null.
    • Method Detail

      • getValue

        public String getValue()
        Returns this text attribute's text string.
        Returns:
        the text string.
      • getLocale

        public Locale getLocale()
        Returns this text attribute's text string's natural language (locale).
        Returns:
        the locale
      • equals

        public boolean equals(Object object)
        Returns whether this text attribute is equivalent to the passed in object. To be equivalent, all of the following conditions must be true:
        1. object is not null.
        2. object is an instance of class TextSyntax.
        3. This text attribute's underlying string and object's underlying string are equal.
        4. This text attribute's locale and object's locale are equal.
        Overrides:
        equals in class Object
        Parameters:
        object - Object to compare to.
        Returns:
        True if object is equivalent to this text attribute, false otherwise.
        See Also:
        Object.hashCode(), HashMap
      • toString

        public String toString()
        Returns a String identifying this text attribute. The String is the attribute's underlying text string.
        Overrides:
        toString in class Object
        Returns:
        A String identifying this object.

Traduction non disponible

Les API Java ne sont pas encore traduites en français sur l'infobrol. Seule la version anglaise est disponible pour l'instant.

Document créé le 31/08/2006, dernière modification le 04/03/2020
Source du document imprimé : https://www.gaudry.be/java-api-rf-javax/print/attribute/textsyntax.html

L'infobrol est un site personnel dont le contenu n'engage que moi. Le texte est mis à disposition sous licence CreativeCommons(BY-NC-SA). Plus d'info sur les conditions d'utilisation et sur l'auteur.

Références

  1. Consulter le document html Langue du document :fr Manuel PHP : https://docs.oracle.com, TextSyntax

Ces références et liens indiquent des documents consultés lors de la rédaction de cette page, ou qui peuvent apporter un complément d'information, mais les auteurs de ces sources ne peuvent être tenus responsables du contenu de cette page.
L'auteur de ce site est seul responsable de la manière dont sont présentés ici les différents concepts, et des libertés qui sont prises avec les ouvrages de référence. N'oubliez pas que vous devez croiser les informations de sources multiples afin de diminuer les risques d'erreurs.

Table des matières Haut