aboutsummaryrefslogtreecommitdiffstats
path: root/src/org/apache/fop/layout/AreaClass.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/layout/AreaClass.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/layout/AreaClass.java')
-rw-r--r--src/org/apache/fop/layout/AreaClass.java38
1 files changed, 20 insertions, 18 deletions
diff --git a/src/org/apache/fop/layout/AreaClass.java b/src/org/apache/fop/layout/AreaClass.java
index 764fd6cca..7af180a90 100644
--- a/src/org/apache/fop/layout/AreaClass.java
+++ b/src/org/apache/fop/layout/AreaClass.java
@@ -1,4 +1,5 @@
-/* $Id$
+/*
+ * $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.
@@ -9,23 +10,24 @@ package org.apache.fop.layout;
import org.apache.fop.apps.FOPException;
public class AreaClass {
- public static String UNASSIGNED = "unassigned";
+ public static String UNASSIGNED = "unassigned";
+
+ public static String XSL_NORMAL = "xsl-normal";
+ public static String XSL_ABSOLUTE = "xsl-absolute";
+ public static String XSL_FOOTNOTE = "xsl-footnote";
+ public static String XSL_SIDE_FLOAT = "xsl-side-float";
+ public static String XSL_BEFORE_FLOAT = "xsl-before-float";
+
+ // checker method
+ public static String setAreaClass(String areaClass) throws FOPException {
+ if (areaClass.equals(XSL_NORMAL) || areaClass.equals(XSL_ABSOLUTE)
+ || areaClass.equals(XSL_FOOTNOTE)
+ || areaClass.equals(XSL_SIDE_FLOAT)
+ || areaClass.equals(XSL_BEFORE_FLOAT))
+ return areaClass;
+ else
+ throw new FOPException("Unknown area class '" + areaClass + "'");
+ }
- public static String XSL_NORMAL = "xsl-normal";
- public static String XSL_ABSOLUTE = "xsl-absolute";
- public static String XSL_FOOTNOTE = "xsl-footnote";
- public static String XSL_SIDE_FLOAT = "xsl-side-float";
- public static String XSL_BEFORE_FLOAT = "xsl-before-float";
-
- // checker method
- public static String setAreaClass(String areaClass)
- throws FOPException {
- if (areaClass.equals(XSL_NORMAL) || areaClass.equals(XSL_ABSOLUTE) ||
- areaClass.equals(XSL_FOOTNOTE) || areaClass.equals(XSL_SIDE_FLOAT) ||
- areaClass.equals(XSL_BEFORE_FLOAT))
- return areaClass;
- else
- throw new FOPException("Unknown area class '" + areaClass + "'");
- }
}