KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > fop > render > afp > extensions > AFPPageSetup


1 /*
2  * Licensed to the Apache Software Foundation (ASF) under one or more
3  * contributor license agreements. See the NOTICE file distributed with
4  * this work for additional information regarding copyright ownership.
5  * The ASF licenses this file to You under the Apache License, Version 2.0
6  * (the "License"); you may not use this file except in compliance with
7  * the License. You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  */

17
18 /* $Id: AFPPageSetup.java 426576 2006-07-28 15:44:37Z jeremias $ */
19
20 package org.apache.fop.render.afp.extensions;
21
22 import java.io.Serializable JavaDoc;
23
24 import org.apache.fop.fo.extensions.ExtensionAttachment;
25
26 /**
27  * This is the pass-through value object for the PostScript extension.
28  */

29 public class AFPPageSetup implements ExtensionAttachment, Serializable JavaDoc {
30
31     /** The category URI for this extension attachment. */
32     public static final String JavaDoc CATEGORY = "apache:fop:extensions:afp";
33
34     private String JavaDoc elementName;
35
36     private String JavaDoc name;
37
38     private String JavaDoc value;
39
40     /**
41      * Default constructor.
42      * @param name the name of the setup code object, may be null
43      */

44     public AFPPageSetup(String JavaDoc name) {
45         this.elementName = name;
46     }
47
48     /** @return the name */
49     public String JavaDoc getElementName() {
50         return elementName;
51     }
52
53     /** @return the name */
54     public String JavaDoc getName() {
55         return name;
56     }
57
58     /**
59      * Sets the name of the setup code object.
60      * @param name The name to set.
61      */

62     public void setName(String JavaDoc name) {
63         this.name = name;
64     }
65
66     /**
67      * @return the value
68      */

69     public String JavaDoc getValue() {
70         return value;
71     }
72
73     /**
74      * Sets the value
75      * @param source The value name to set.
76      */

77     public void setValue(String JavaDoc source) {
78         this.value = source;
79     }
80
81     /** @see org.apache.fop.fo.extensions.ExtensionAttachment#getCategory() */
82     public String JavaDoc getCategory() {
83         return CATEGORY;
84     }
85
86     /** @see java.lang.Object#toString() */
87     public String JavaDoc toString() {
88         return "AFPPageSetup(element-name=" + getElementName() + " name=" + getName() + ")";
89     }
90
91 }
92
Popular Tags