Package org.apache.fop.afp
Class AFPResourceLevel
java.lang.Object
org.apache.fop.afp.AFPResourceLevel
A resource level
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionAFPResourceLevel(AFPResourceLevel.ResourceType resourceType) Main constructor -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the URI of the external resource group.inthashCode()booleanReturns true if this is at document levelbooleanReturns true if this is at external levelbooleanisInline()Returns true if this resource level is inlinebooleanisPage()Returns true if this is at page levelbooleanReturns true if this is at page group levelbooleanReturns true if this is at print-file levelvoidsetExternalUri(URI uri) Sets the URI of the external resource group.toString()static AFPResourceLevelSets the resource placement level within the AFP output
-
Constructor Details
-
AFPResourceLevel
Main constructor- Parameters:
resourceType- the resource type
-
-
Method Details
-
valueOf
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
Returns the URI of the external resource group.- Returns:
- the destination URI of the external resource group
-
setExternalUri
Sets the URI of the external resource group.- Parameters:
uri- the URI of the external resource group
-
toString
-
equals
-
hashCode
public int hashCode()
-