Package org.apache.fop.afp.modca
Class Registry.ObjectType
java.lang.Object
org.apache.fop.afp.modca.Registry.ObjectType
- Enclosing class:
- Registry
Encapsulates a MOD:CA Registry Object Type entry
-
Constructor Summary
ConstructorsConstructorDescriptionObjectType
(byte componentId, byte[] oid, String name, boolean includable, String mimeType) Main constructor -
Method Summary
Modifier and TypeMethodDescriptionbyte
Returns the compontentId for this entryReturns the mime type associated with this object typegetName()
Returns the object type name for the given componentIdbyte[]
getOID()
Returns a MOD:CA object type OID from a given a componentIdboolean
Returns true if this component can be included with an IOB structured fieldtoString()
-
Constructor Details
-
ObjectType
Main constructor- Parameters:
componentId
- the component id of this object typeoid
- the object id of this object typename
- the object type nameincludable
- true if this object can be included with an IOB structured fieldmimeType
- the mime type associated with this object type
-
-
Method Details
-
getOID
public byte[] getOID()Returns a MOD:CA object type OID from a given a componentId- Returns:
- the corresponding object type id for a given component id or null if the component id is unknown and the object type OID was not found.
-
getName
Returns the object type name for the given componentId- Returns:
- the object type name for the given componentId
-
getComponentId
public byte getComponentId()Returns the compontentId for this entry- Returns:
- the compontentId for this entry
-
isIncludable
public boolean isIncludable()Returns true if this component can be included with an IOB structured field- Returns:
- true if this component can be included with an IOB structured field
-
getMimeType
Returns the mime type associated with this object type- Returns:
- the mime type associated with this object type
-
toString
-