public class AFPResourceLevel
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
DOCUMENT
document level
|
static int |
EXTERNAL
external level
|
static int |
INLINE
directly in page
|
static int |
PAGE
page level
|
static int |
PAGE_GROUP
page group level
|
static int |
PRINT_FILE
print file level
|
Constructor and Description |
---|
AFPResourceLevel(int level)
Main constructor
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getExternalFilePath()
Returns the destination file path of the external resource group file
|
int |
hashCode() |
boolean |
isDocument()
Returns true if this is at document level
|
boolean |
isExternal()
Returns true if this is at external level
|
boolean |
isInline()
Returns true if this resource level is inline
|
boolean |
isPage()
Returns true if this is at page level
|
boolean |
isPageGroup()
Returns true if this is at page group level
|
boolean |
isPrintFile()
Returns true if this is at print-file level
|
void |
setExternalFilePath(java.lang.String filePath)
Sets the external destination of the resource
|
void |
setLevel(int level)
Sets the resource level
|
java.lang.String |
toString() |
static AFPResourceLevel |
valueOf(java.lang.String levelString)
Sets the resource placement level within the AFP output
|
public static final int INLINE
public static final int PAGE
public static final int PAGE_GROUP
public static final int DOCUMENT
public static final int PRINT_FILE
public static final int EXTERNAL
public AFPResourceLevel(int level)
level
- the resource levelpublic static AFPResourceLevel valueOf(java.lang.String levelString)
levelString
- the resource level (page, page-group, document, print-file or external)public void setLevel(int level)
level
- the resource levelpublic boolean isPage()
public boolean isPageGroup()
public boolean isDocument()
public boolean isExternal()
public boolean isPrintFile()
public boolean isInline()
public java.lang.String getExternalFilePath()
public void setExternalFilePath(java.lang.String filePath)
filePath
- the external resource group filepublic java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
Copyright 1999-2012 The Apache Software Foundation. All Rights Reserved.