aboutsummaryrefslogtreecommitdiffstats
path: root/src/org/apache/fop/fo/ListProperty.java
diff options
context:
space:
mode:
authorTore Engvig <tore@apache.org>2001-07-30 20:29:35 +0000
committerTore Engvig <tore@apache.org>2001-07-30 20:29:35 +0000
commite0edd215721150e6c04ac49706622d6189cb0b42 (patch)
tree6b59b872d9c0e93f99316ea2f421209b71a97755 /src/org/apache/fop/fo/ListProperty.java
parenteb57915dec9bcd907e495595efac60dbf3579ad8 (diff)
downloadxmlgraphics-fop-e0edd215721150e6c04ac49706622d6189cb0b42.tar.gz
xmlgraphics-fop-e0edd215721150e6c04ac49706622d6189cb0b42.zip
Formatted code according to code standards.
Changed license to use short license. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@194380 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/org/apache/fop/fo/ListProperty.java')
-rw-r--r--src/org/apache/fop/fo/ListProperty.java54
1 files changed, 34 insertions, 20 deletions
diff --git a/src/org/apache/fop/fo/ListProperty.java b/src/org/apache/fop/fo/ListProperty.java
index 6c76a1ef7..9253283e3 100644
--- a/src/org/apache/fop/fo/ListProperty.java
+++ b/src/org/apache/fop/fo/ListProperty.java
@@ -1,35 +1,49 @@
+/*
+ * $Id$
+ * Copyright (C) 2001 The Apache Software Foundation. All rights reserved.
+ * For details on use and redistribution please refer to the
+ * LICENSE file included with these sources.
+ */
+
package org.apache.fop.fo;
import java.util.Vector;
public class ListProperty extends Property {
- public static class Maker extends Property.Maker {
+ public static class Maker extends Property.Maker {
- public Maker(String name) {
- super(name);
- }
+ public Maker(String name) {
+ super(name);
+ }
+
+ public Property convertProperty(Property p,
+ PropertyList propertyList, FObj fo) {
+ if (p instanceof ListProperty)
+ return p;
+ else
+ return new ListProperty(p);
+ }
- public Property convertProperty(Property p, PropertyList propertyList,
- FObj fo) {
- if (p instanceof ListProperty)
- return p;
- else return new ListProperty(p);
}
- }
- protected Vector list;
+ protected Vector list;
+
+ public ListProperty(Property prop) {
+ list = new Vector();
+ list.addElement(prop);
+ }
- public ListProperty(Property prop) {
- list = new Vector();
- list.addElement(prop);
- }
+ public void addProperty(Property prop) {
+ list.addElement(prop);
+ }
- public void addProperty(Property prop) {
- list.addElement(prop);
- }
+ public Vector getList() {
+ return list;
+ }
- public Vector getList() { return list; }
- public Object getObject() { return list; }
+ public Object getObject() {
+ return list;
+ }
}