~hjd/ubuntu/wily/xmlgraphics-commons/debian-merged

« back to all changes in this revision

Viewing changes to src/java/org/apache/xmlgraphics/ps/dsc/events/DSCCommentPages.java

  • Committer: Bazaar Package Importer
  • Author(s): Vincent Fourmond
  • Date: 2011-02-11 14:15:14 UTC
  • mfrom: (8.1.2 experimental)
  • Revision ID: james.westby@ubuntu.com-20110211141514-h67achft6x31gju1
Tags: 1.4.dfsg-3
Uploading to unstable, hoping we won't break too many things ;-)...

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
 * The ASF licenses this file to You under the Apache License, Version 2.0
6
6
 * (the "License"); you may not use this file except in compliance with
7
7
 * the License.  You may obtain a copy of the License at
8
 
 * 
 
8
 *
9
9
 *      http://www.apache.org/licenses/LICENSE-2.0
10
 
 * 
 
10
 *
11
11
 * Unless required by applicable law or agreed to in writing, software
12
12
 * distributed under the License is distributed on an "AS IS" BASIS,
13
13
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
15
 * limitations under the License.
16
16
 */
17
17
 
18
 
/* $Id$ */
 
18
/* $Id: DSCCommentPages.java 750418 2009-03-05 11:03:54Z vhennebert $ */
19
19
 
20
20
package org.apache.xmlgraphics.ps.dsc.events;
21
21
 
30
30
public class DSCCommentPages extends AbstractDSCComment {
31
31
 
32
32
    private int pageCount = -1;
33
 
    
 
33
 
34
34
    /**
35
35
     * Creates a new instance.
36
36
     */
44
44
    public DSCCommentPages(int pageCount) {
45
45
        this.pageCount = pageCount;
46
46
    }
47
 
    
 
47
 
48
48
    /**
49
49
     * Returns the page count.
50
50
     * @return the page count
52
52
    public int getPageCount() {
53
53
        return this.pageCount;
54
54
    }
55
 
    
 
55
 
56
56
    /**
57
57
     * Sets the page count.
58
58
     * @param count the new page count
81
81
    public void parseValue(String value) {
82
82
        this.pageCount = Integer.parseInt(value);
83
83
    }
84
 
    
 
84
 
85
85
    /**
86
86
     * @see org.apache.xmlgraphics.ps.dsc.events.DSCEvent#generate(org.apache.xmlgraphics.ps.PSGenerator)
87
87
     */