~ubuntu-branches/ubuntu/precise/classpath/precise

« back to all changes in this revision

Viewing changes to javax/print/attribute/standard/JobName.java

  • Committer: Bazaar Package Importer
  • Author(s): Michael Koch
  • Date: 2006-05-27 16:11:15 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20060527161115-h6e39eposdt5snb6
Tags: 2:0.91-3
* Install header files to /usr/include/classpath.
* debian/control: classpath: Conflict with jamvm < 1.4.3 and
  cacao < 0.96 (Closes: #368172).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* JobName.java -- 
2
 
   Copyright (C) 2004 Free Software Foundation, Inc.
 
2
   Copyright (C) 2004, 2005 Free Software Foundation, Inc.
3
3
 
4
4
This file is part of GNU Classpath.
5
5
 
45
45
import javax.print.attribute.TextSyntax;
46
46
 
47
47
/**
 
48
 * The <code>JobName</code> printing attribute provides the name of a 
 
49
 * print job for identification.
 
50
 * <p>
 
51
 * <b>IPP Compatibility:</b> JobName is an IPP 1.1 attribute.
 
52
 * </p>
 
53
 * 
48
54
 * @author Michael Koch (konqueror@gmx.de)
49
55
 */
50
56
public final class JobName extends TextSyntax
55
61
  /**
56
62
   * Creates a <code>JobName</code> object.
57
63
   *
58
 
   * @param jobName the job name
 
64
   * @param jobName the job name.
 
65
   * @param locale the locale to use, if <code>null</code> the default
 
66
   * locale is used.
59
67
   *
60
 
   * @exception NullPointerException if jobName is null
 
68
   * @exception NullPointerException if jobName is <code>null</code>.
61
69
   */
62
70
  public JobName(String jobName, Locale locale)
63
71
  {
65
73
  }
66
74
 
67
75
  /**
68
 
   * Tests of obj is equal to this object.
 
76
   * Tests if the given object is equal to this object.
69
77
   *
70
78
   * @param obj the object to test
71
79
   *
72
 
   * @return true if both objects are equal, false otherwise.
 
80
   * @return <code>true</code> if both objects are equal, 
 
81
   * <code>false</code> otherwise.
73
82
   */
74
83
  public boolean equals(Object obj)
75
84
  {
82
91
  /**
83
92
   * Returns category of this class.
84
93
   *
85
 
   * @return the class <code>JobName</code> itself
 
94
   * @return The class <code>JobName</code> itself.
86
95
   */
87
96
  public Class getCategory()
88
97
  {
90
99
  }
91
100
 
92
101
  /**
93
 
   * Returns name of this class.
 
102
   * Returns the name of this attribute.
94
103
   *
95
 
   * @return the string "job-name"
 
104
   * @return The name "job-name".
96
105
   */
97
106
  public String getName()
98
107
  {