diff options
author | arved <arved@unknown> | 2001-07-16 10:46:14 +0000 |
---|---|---|
committer | arved <arved@unknown> | 2001-07-16 10:46:14 +0000 |
commit | 20c03ca3c9b9a0492cc780292f01c64aa3098b36 (patch) | |
tree | 0e6c2088f0ffd2e21e2f609032689f8363b63822 /src/org/apache/fop/layout/AreaClass.java | |
parent | 01a159e579254407dfed6c9b7e7c9f430080d201 (diff) | |
download | xmlgraphics-fop-20c03ca3c9b9a0492cc780292f01c64aa3098b36.tar.gz xmlgraphics-fop-20c03ca3c9b9a0492cc780292f01c64aa3098b36.zip |
AHS: initial marker support
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@194356 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/org/apache/fop/layout/AreaClass.java')
-rw-r--r-- | src/org/apache/fop/layout/AreaClass.java | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/src/org/apache/fop/layout/AreaClass.java b/src/org/apache/fop/layout/AreaClass.java new file mode 100644 index 000000000..764fd6cca --- /dev/null +++ b/src/org/apache/fop/layout/AreaClass.java @@ -0,0 +1,31 @@ +/* $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.layout; + +import org.apache.fop.apps.FOPException; + +public class AreaClass { + 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 + "'"); + } +} + |