Package org.apache.fop.afp
Class AFPResourceLevel
- java.lang.Object
-
- org.apache.fop.afp.AFPResourceLevel
-
public class AFPResourceLevel extends java.lang.Object
A resource level
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AFPResourceLevel.ResourceType
-
Field Summary
Fields Modifier and Type Field Description private java.net.URI
extUri
private AFPResourceLevel.ResourceType
resourceType
-
Constructor Summary
Constructors Constructor Description AFPResourceLevel(AFPResourceLevel.ResourceType resourceType)
Main constructor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
java.net.URI
getExternalURI()
Returns the URI of the external resource group.int
hashCode()
boolean
isDocument()
Returns true if this is at document levelboolean
isExternal()
Returns true if this is at external levelboolean
isInline()
Returns true if this resource level is inlineboolean
isPage()
Returns true if this is at page levelboolean
isPageGroup()
Returns true if this is at page group levelboolean
isPrintFile()
Returns true if this is at print-file levelvoid
setExternalUri(java.net.URI uri)
Sets the URI of the external resource group.java.lang.String
toString()
static AFPResourceLevel
valueOf(java.lang.String levelString)
Sets the resource placement level within the AFP output
-
-
-
Field Detail
-
extUri
private java.net.URI extUri
-
resourceType
private final AFPResourceLevel.ResourceType resourceType
-
-
Constructor Detail
-
AFPResourceLevel
public AFPResourceLevel(AFPResourceLevel.ResourceType resourceType)
Main constructor- Parameters:
resourceType
- the resource type
-
-
Method Detail
-
valueOf
public static AFPResourceLevel valueOf(java.lang.String levelString)
Sets the resource placement level within the AFP output- Parameters:
levelString
- the resource level (page, page-group, document, print-file or external)- Returns:
- true if the resource level was successfully set
-
isPage
public boolean isPage()
Returns true if this is at page level- Returns:
- true if this is at page level
-
isPageGroup
public boolean isPageGroup()
Returns true if this is at page group level- Returns:
- true if this is at page group level
-
isDocument
public boolean isDocument()
Returns true if this is at document level- Returns:
- true if this is at document level
-
isExternal
public boolean isExternal()
Returns true if this is at external level- Returns:
- true if this is at external level
-
isPrintFile
public boolean isPrintFile()
Returns true if this is at print-file level- Returns:
- true if this is at print-file level
-
isInline
public boolean isInline()
Returns true if this resource level is inline- Returns:
- true if this resource level is inline
-
getExternalURI
public java.net.URI getExternalURI()
Returns the URI of the external resource group.- Returns:
- the destination URI of the external resource group
-
setExternalUri
public void setExternalUri(java.net.URI uri)
Sets the URI of the external resource group.- Parameters:
uri
- the URI of the external resource group
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-