Package org.apache.fop.afp.modca
Class AbstractEnvironmentGroup
- java.lang.Object
-
- org.apache.fop.afp.modca.AbstractAFPObject
-
- org.apache.fop.afp.modca.AbstractStructuredObject
-
- org.apache.fop.afp.modca.AbstractTripletStructuredObject
-
- org.apache.fop.afp.modca.AbstractNamedAFPObject
-
- org.apache.fop.afp.modca.AbstractEnvironmentGroup
-
- All Implemented Interfaces:
Streamable
- Direct Known Subclasses:
ActiveEnvironmentGroup,ResourceEnvironmentGroup
public abstract class AbstractEnvironmentGroup extends AbstractNamedAFPObject
A base class that encapsulates common features of ActiveEnvironmentGroup and ResourceEnvironmentGroup
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.fop.afp.modca.AbstractAFPObject
AbstractAFPObject.Category, AbstractAFPObject.Type
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.ListmapDataResourcesthe collection of MapDataResource objectsprotected java.util.ListmapPageOverlaysthe collection of MapPageOverlay objects-
Fields inherited from class org.apache.fop.afp.modca.AbstractNamedAFPObject
name
-
Fields inherited from class org.apache.fop.afp.modca.AbstractTripletStructuredObject
triplets
-
Fields inherited from class org.apache.fop.afp.modca.AbstractAFPObject
LOG, SF_CLASS, SF_HEADER_LENGTH
-
-
Constructor Summary
Constructors Constructor Description AbstractEnvironmentGroup(java.lang.String name)Main constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcreateOverlay(java.lang.String name)Actually creates the MPO object.protected java.lang.ObjectgetLastElement(java.util.List list)Get last element.protected voidwriteContent(java.io.OutputStream os)Helper method to write the contents of the Object.-
Methods inherited from class org.apache.fop.afp.modca.AbstractNamedAFPObject
copySF, getName, getNameBytes, getNameLength, setName, toString
-
Methods inherited from class org.apache.fop.afp.modca.AbstractTripletStructuredObject
addTriplet, addTriplets, getFullyQualifiedName, getTripletDataLength, getTriplets, hasTriplet, hasTriplets, setComment, setFullyQualifiedName, setFullyQualifiedName, setObjectClassification, writeTriplets
-
Methods inherited from class org.apache.fop.afp.modca.AbstractStructuredObject
writeEnd, writeStart, writeToStream
-
Methods inherited from class org.apache.fop.afp.modca.AbstractAFPObject
copySF, truncate, writeChunksToStream, writeObjects
-
-
-
-
Method Detail
-
createOverlay
public void createOverlay(java.lang.String name)
Actually creates the MPO object. Also creates the supporting object (an IPO)- Parameters:
name- the name of the overlay to be used
-
getLastElement
protected java.lang.Object getLastElement(java.util.List list)
Get last element.- Parameters:
list- of elements- Returns:
- last element or null if none
-
writeContent
protected void writeContent(java.io.OutputStream os) throws java.io.IOExceptionHelper method to write the contents of the Object.- Overrides:
writeContentin classAbstractStructuredObject- Parameters:
os- The stream to write to- Throws:
java.io.IOException- throws an I/O exception if one occurred
-
-