Class ObjectClassificationTriplet
java.lang.Object
org.apache.fop.afp.modca.AbstractAFPObject
org.apache.fop.afp.modca.triplets.AbstractTriplet
org.apache.fop.afp.modca.triplets.ObjectClassificationTriplet
- All Implemented Interfaces:
Triplet,Streamable,StructuredData
The Object Classification is used to classify and identify object data.
The object data may or may not be defined by an IBM presentation architecture
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.fop.afp.modca.AbstractAFPObject
AbstractAFPObject.Category, AbstractAFPObject.Type -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final byteData object font.static final byteThis is not a presentation object, the scope of this object is not definedstatic final byteThis is a resource used by a presentation object that may itself be a resource.static final byteSetup information file, document level.static final byteThe scope of this object is the including page or overlaystatic final byteThe scope of this object is not definedFields inherited from class org.apache.fop.afp.modca.triplets.AbstractTriplet
idFields inherited from class org.apache.fop.afp.modca.AbstractAFPObject
LOG, SF_CLASS, SF_HEADER_LENGTHFields inherited from interface org.apache.fop.afp.modca.triplets.Triplet
AREA_DEFINITION, ATTRIBUTE_QUALIFIER, ATTRIBUTE_VALUE, CHARACTER_ROTATION, CMR_TAG_FIDELITY, CODED_GRAPHIC_CHARACTER_SET_GLOBAL_IDENTIFIER, COLOR_FIDELITY, COLOR_MANAGEMENT_RESOURCE_DESCRIPTOR, COLOR_SPECIFICATION, COMMENT, DATA_OBJECT_FONT_DESCRIPTOR, DESCRIPTOR_POSITION, DEVICE_APPEARANCE, ENCODING_SCHEME_ID, EXTENDED_RESOURCE_LOCAL_IDENTIFIER, FINISHING_FIDELITY, FINISHING_OPERATION, FONT_DESCRIPTOR_SPECIFICATION, FONT_FIDELITY, FONT_HORIZONTAL_SCALE_FACTOR, FONT_RESOLUTION_AND_METRIC_TECHNOLOGY, FULLY_QUALIFIED_NAME, LOCALE_SELECTOR, MAPPING_OPTION, MAX_LENGTH, MEASUREMENT_UNITS, MEDIA_EJECT_CONTROL, MEDIA_FIDELITY, MEDIUM_MAP_PAGE_NUMBER, MEDIUM_ORIENTATION, MODCA_INTERCHANGE_SET, OBJECT_AREA_SIZE, OBJECT_BYTE_EXTENT, OBJECT_BYTE_OFFSET, OBJECT_CLASSIFICATION, OBJECT_COUNT, OBJECT_DATE_AND_TIMESTAMP, OBJECT_FUNCTION_SET_SPECIFICATION, OBJECT_OFFSET, OBJECT_STRUCTURED_FIELD_EXTENT, OBJECT_STRUCTURED_FIELD_OFFSET, PAGE_OVERLAY_CONDITIONAL_PROCESSING, PAGE_POSITION_INFORMATION, PARAMETER_VALUE, PRESENTATION_CONTROL, PRESENTATION_SPACE_MIXING_RULE, PRESENTATION_SPACE_RESET_MIXING, RENDERING_INTENT, RESOURCE_LOCAL_IDENTIFIER, RESOURCE_OBJECT_INCLUDE, RESOURCE_SECTION_NUMBER, RESOURCE_USAGE_ATTRIBUTE, TEXT_FIDELITY, TONER_SAVER, UNIVERSAL_DATE_AND_TIMESTAMP, UP3I_FINISHING_OPERATION -
Constructor Summary
ConstructorsConstructorDescriptionObjectClassificationTriplet(byte objectClass, Registry.ObjectType objectType, boolean dataInContainer, boolean containerHasOEG, boolean dataInOCD) Main constructorObjectClassificationTriplet(byte objectClass, Registry.ObjectType objectType, boolean dataInContainer, boolean containerHasOEG, boolean dataInOCD, String objLev, String compName) Fully parameterized constructor -
Method Summary
Modifier and TypeMethodDescriptionintReturns the data length of this structured fieldbyte[]getStructureFlagsAsBytes(boolean dataInContainer, boolean containerHasOEG, boolean dataInOCD) Returns the structured field flagsvoidDataStream objects must implement the writeToStream() method to write its data to the given OutputStreamMethods inherited from class org.apache.fop.afp.modca.triplets.AbstractTriplet
getData, getIdMethods inherited from class org.apache.fop.afp.modca.AbstractAFPObject
copySF, copySF, truncate, writeChunksToStream, writeObjects
-
Field Details
-
CLASS_TIME_INVARIANT_PAGINATED_PRESENTATION_OBJECT
public static final byte CLASS_TIME_INVARIANT_PAGINATED_PRESENTATION_OBJECTThe scope of this object is the including page or overlay- See Also:
-
CLASS_TIME_VARIANT_PRESENTATION_OBJECT
public static final byte CLASS_TIME_VARIANT_PRESENTATION_OBJECTThe scope of this object is not defined- See Also:
-
CLASS_EXECUTABLE_PROGRAM
public static final byte CLASS_EXECUTABLE_PROGRAMThis is not a presentation object, the scope of this object is not defined- See Also:
-
CLASS_SETUP_FILE
public static final byte CLASS_SETUP_FILESetup information file, document level. This is not a presentation object,- See Also:
-
CLASS_SECONDARY_RESOURCE
public static final byte CLASS_SECONDARY_RESOURCEThis is a resource used by a presentation object that may itself be a resource. The scope of the resource is the object that uses the resource.- See Also:
-
CLASS_DATA_OBJECT_FONT
public static final byte CLASS_DATA_OBJECT_FONTData object font. This is a non-FOCA font resource used to present text in a data object. The scope of the resource is the object that uses the resource.- See Also:
-
-
Constructor Details
-
ObjectClassificationTriplet
public ObjectClassificationTriplet(byte objectClass, Registry.ObjectType objectType, boolean dataInContainer, boolean containerHasOEG, boolean dataInOCD) Main constructor- Parameters:
objectClass- the object class typeobjectType- the object type registry entrydataInContainer- whether the data resides in the containercontainerHasOEG- whether the container has an object environment groupdataInOCD- whether the data resides in a object container data structured field
-
ObjectClassificationTriplet
public ObjectClassificationTriplet(byte objectClass, Registry.ObjectType objectType, boolean dataInContainer, boolean containerHasOEG, boolean dataInOCD, String objLev, String compName) Fully parameterized constructor- Parameters:
objectClass- the object class typeobjectType- the object type registry entrydataInContainer- whether the data resides in the containercontainerHasOEG- whether the container has an object environment groupdataInOCD- whether the data resides in a object container data structured fieldobjLev- the release level or version number of the object typecompName- the name of the company or organization that owns the object definition
-
-
Method Details
-
getStructureFlagsAsBytes
public byte[] getStructureFlagsAsBytes(boolean dataInContainer, boolean containerHasOEG, boolean dataInOCD) Returns the structured field flags- Parameters:
dataInContainer- true if the object data in carried in the object containercontainerHasOEG- true if the object container has an object environment groupdataInOCD- true if the object container data carries the object data- Returns:
- the byte value of this structure
-
getDataLength
public int getDataLength()Returns the data length of this structured field- Returns:
- the data length of this structured field
-
writeToStream
DataStream objects must implement the writeToStream() method to write its data to the given OutputStream- Parameters:
os- the outputsteam stream- Throws:
IOException- an I/O exception of some sort has occurred.
-