org.apache.fop.datatypes

Class KeepValue


public class KeepValue
extends java.lang.Object

Keep Value Stores the different types of keeps in a single convenient format.

Field Summary

static String
KEEP_WITH_ALWAYS
constant for keep-with-always
static String
KEEP_WITH_AUTO
constant for automatic keep-with computation
static String
KEEP_WITH_VALUE
constant for a user-settable keep-with value (??)

Constructor Summary

KeepValue(String type, int val)
Constructor

Method Summary

String
getType()
int
getValue()
String
toString()

Field Details

KEEP_WITH_ALWAYS

public static final String KEEP_WITH_ALWAYS
constant for keep-with-always

KEEP_WITH_AUTO

public static final String KEEP_WITH_AUTO
constant for automatic keep-with computation

KEEP_WITH_VALUE

public static final String KEEP_WITH_VALUE
constant for a user-settable keep-with value (??)

Constructor Details

KeepValue

public KeepValue(String type,
                 int val)
Constructor
Parameters:
type - one of "KEEP_WITH_ALWAYS", "KEEP_WITH_AUTO", or "KEEP_WITH_VALUE"
val - keep-with value to use (used only by KEEP_WITH_VALUE ??).

Method Details

getType

public String getType()
Returns:
the descriptive type

getValue

public int getValue()
Returns:
the keep-with value

toString

public String toString()
Returns:
string representation of this

Copyright 1999-2007 The Apache Software Foundation. All Rights Reserved.