Package org.apache.fop.afp.modca
Class Registry
- java.lang.Object
-
- org.apache.fop.afp.modca.Registry
-
public final class Registry extends java.lang.Object
MOD:CA Registry of object types
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
Registry.ObjectType
Encapsulates a MOD:CA Registry Object Type entry
-
Field Summary
Fields Modifier and Type Field Description private static byte
COMPID_EPS
private static byte
COMPID_GIF
private static byte
COMPID_IOCA_FS10
IOB supported object typesprivate static byte
COMPID_IOCA_FS11
private static byte
COMPID_IOCA_FS40
private static byte
COMPID_IOCA_FS45
private static byte
COMPID_JFIF
private static byte
COMPID_PCL_PAGE_OBJECT
private static byte
COMPID_PDF_SINGLE_PAGE
private static byte
COMPID_TIFF
private static byte
COMPID_TRUETYPE_OPENTYPE_FONT_COLLECTION_RESOURCE_OBJECT
private static byte
COMPID_TRUETYPE_OPENTYPE_FONT_RESOURCE_OBJECT
private static Registry
instance
singleton instanceprivate java.util.Map<java.lang.String,Registry.ObjectType>
mimeObjectTypeMap
mime type entry mapping
-
Constructor Summary
Constructors Modifier Constructor Description private
Registry()
private constructor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Registry
getInstance()
Returns a single instance of a MO:DCA RegistryRegistry.ObjectType
getObjectType(java.lang.String mimeType)
Returns the MOD:CA object type given a mimetypeprivate void
init()
Initializes the mimetype map
-
-
-
Field Detail
-
COMPID_IOCA_FS10
private static final byte COMPID_IOCA_FS10
IOB supported object types- See Also:
- Constant Field Values
-
COMPID_IOCA_FS11
private static final byte COMPID_IOCA_FS11
- See Also:
- Constant Field Values
-
COMPID_IOCA_FS40
private static final byte COMPID_IOCA_FS40
- See Also:
- Constant Field Values
-
COMPID_IOCA_FS45
private static final byte COMPID_IOCA_FS45
- See Also:
- Constant Field Values
-
COMPID_EPS
private static final byte COMPID_EPS
- See Also:
- Constant Field Values
-
COMPID_TIFF
private static final byte COMPID_TIFF
- See Also:
- Constant Field Values
-
COMPID_GIF
private static final byte COMPID_GIF
- See Also:
- Constant Field Values
-
COMPID_JFIF
private static final byte COMPID_JFIF
- See Also:
- Constant Field Values
-
COMPID_PDF_SINGLE_PAGE
private static final byte COMPID_PDF_SINGLE_PAGE
- See Also:
- Constant Field Values
-
COMPID_PCL_PAGE_OBJECT
private static final byte COMPID_PCL_PAGE_OBJECT
- See Also:
- Constant Field Values
-
COMPID_TRUETYPE_OPENTYPE_FONT_RESOURCE_OBJECT
private static final byte COMPID_TRUETYPE_OPENTYPE_FONT_RESOURCE_OBJECT
- See Also:
- Constant Field Values
-
COMPID_TRUETYPE_OPENTYPE_FONT_COLLECTION_RESOURCE_OBJECT
private static final byte COMPID_TRUETYPE_OPENTYPE_FONT_COLLECTION_RESOURCE_OBJECT
- See Also:
- Constant Field Values
-
mimeObjectTypeMap
private final java.util.Map<java.lang.String,Registry.ObjectType> mimeObjectTypeMap
mime type entry mapping
-
instance
private static Registry instance
singleton instance
-
-
Method Detail
-
getInstance
public static Registry getInstance()
Returns a single instance of a MO:DCA Registry- Returns:
- a single instance of an MO:DCA Registry
-
init
private void init()
Initializes the mimetype map
-
getObjectType
public Registry.ObjectType getObjectType(java.lang.String mimeType)
Returns the MOD:CA object type given a mimetype- Parameters:
mimeType
- the object mimetype- Returns:
- the MOD:CA object type
-
-