ImageAttribute extends NitfAttributeImpl<ImageSegment> { public static List<NitfAttribute<ImageSegment>> getAttributes() { return Collections.unmodifiableList(ATTRIBUTES); } private  ImageAttribute(
      final String longName,
      final String shortName,
      final Function<ImageSegment, Serializable> accessorFunction,
      AttributeDescriptor attributeDescriptor,
      String extNitfName); private  ImageAttribute(
      final String longName,
      final String shortName,
      final Function<ImageSegment, Serializable> accessorFunction,
      final Function<ImageSegment, Serializable> extAccessorFunction,
      AttributeDescriptor attributeDescriptor,
      String extNitfName); private  ImageAttribute(
      String longName,
      String shortName,
      Function<ImageSegment, Serializable> accessorFunction,
      AttributeType attributeType); static List<NitfAttribute<ImageSegment>> getAttributes(); static final String IMAGE_DATE_AND_TIME; static final String IMAGE_IDENTIFIER_2; static final String IMAGE_SOURCE; static final String NUMBER_OF_SIGNIFICANT_ROWS_IN_IMAGE; static final String NUMBER_OF_SIGNIFICANT_COLUMNS_IN_IMAGE; static final String IMAGE_REPRESENTATION; static final String IMAGE_CATEGORY; static final String IMAGE_COMPRESSION; static final String FILE_PART_TYPE; static final String IMAGE_IDENTIFIER_1; static final String IMAGE_SECURITY_CLASSIFICATION; static final String IMAGE_CLASSIFICATION_SECURITY_SYSTEM; static final String IMAGE_CODEWORDS; static final String IMAGE_CONTROL_AND_HANDLING; static final String IMAGE_RELEASING_INSTRUCTIONS; static final String IMAGE_DECLASSIFICATION_TYPE; static final String IMAGE_DECLASSIFICATION_DATE; static final String IMAGE_DECLASSIFICATION_EXEMPTION; static final String IMAGE_DOWNGRADE; static final String IMAGE_DOWNGRADE_DATE; static final String IMAGE_CLASSIFICATION_TEXT; static final String IMAGE_CLASSIFICATION_AUTHORITY_TYPE; static final String IMAGE_CLASSIFICATION_AUTHORITY; static final String IMAGE_CLASSIFICATION_REASON; static final String IMAGE_SECURITY_SOURCE_DATE; static final String IMAGE_SECURITY_CONTROL_NUMBER; static final String PIXEL_VALUE_TYPE; static final String ACTUAL_BITS_PER_PIXEL_PER_BAND; static final String PIXEL_JUSTIFICATION; static final String IMAGE_COORDINATE_REPRESENTATION; static final String NUMBER_OF_IMAGE_COMMENTS; static final String IMAGE_COMMENT_1; static final String IMAGE_COMMENT_2; static final String IMAGE_COMMENT_3; static final String IMAGE_COMMENT_4; static final String IMAGE_COMMENT_5; static final String IMAGE_COMMENT_6; static final String IMAGE_COMMENT_7; static final String IMAGE_COMMENT_8; static final String IMAGE_COMMENT_9; static final String NUMBER_OF_BANDS; static final String IMAGE_MODE; static final String NUMBER_OF_BLOCKS_PER_ROW; static final String NUMBER_OF_BLOCKS_PER_COLUMN; static final String NUMBER_OF_PIXELS_PER_BLOCK_HORIZONTAL; static final String NUMBER_OF_PIXELS_PER_BLOCK_VERTICAL; static final String NUMBER_OF_BITS_PER_PIXEL; static final String IMAGE_DISPLAY_LEVEL; static final String IMAGE_ATTACHMENT_LEVEL; static final String IMAGE_LOCATION; static final String IMAGE_MAGNIFICATION; static final String TARGET_IDENTIFIER; static final ImageAttribute MISSION_ID_ATTRIBUTE; static final ImageAttribute IMAGE_IDENTIFIER_2_ATTRIBUTE; static final ImageAttribute IMAGE_SOURCE_ATTRIBUTE; static final ImageAttribute NUMBER_OF_SIGNIFICANT_ROWS_IN_IMAGE_ATTRIBUTE; static final ImageAttribute NUMBER_OF_SIGNIFICANT_COLUMNS_IN_IMAGE_ATTRIBUTE; static final ImageAttribute IMAGE_REPRESENTATION_ATTRIBUTE; static final ImageAttribute IMAGE_CATEGORY_ATTRIBUTE; static final ImageAttribute IMAGE_COMPRESSION_ATTRIBUTE; static final ImageAttribute ISR_TARGET_IDENTIFIER_ATTRIBUTE; static final ImageAttribute TARGET_IDENTIFIER_COUNTRY_CODE_ATTRIBUTE; static final ImageAttribute FILE_PART_TYPE_ATTRIBUTE; static final ImageAttribute IMAGE_DATE_AND_TIME_ATTRIBUTE; static final ImageAttribute IMAGE_IDENTIFIER_1_ATTRIBUTE; static final ImageAttribute IMAGE_SECURITY_CLASSIFICATION_ATTRIBUTE; static final ImageAttribute IMAGE_CLASSIFICATION_SECURITY_SYSTEM_ATTRIBUTE; static final ImageAttribute IMAGE_CODEWORDS_ATTRIBUTE; static final ImageAttribute IMAGE_CONTROL_AND_HANDLING_ATTRIBUTE; static final ImageAttribute IMAGE_RELEASING_INSTRUCTIONS_ATTRIBUTE; static final ImageAttribute IMAGE_DECLASSIFICATION_TYPE_ATTRIBUTE; static final ImageAttribute IMAGE_DECLASSIFICATION_DATE_ATTRIBUTE; static final ImageAttribute IMAGE_DECLASSIFICATION_EXEMPTION_ATTRIBUTE; static final ImageAttribute IMAGE_DOWNGRADE_ATTRIBUTE; static final ImageAttribute IMAGE_DOWNGRADE_DATE_ATTRIBUTE; static final ImageAttribute IMAGE_CLASSIFICATION_TEXT_ATTRIBUTE; static final ImageAttribute IMAGE_CLASSIFICATION_AUTHORITY_TYPE_ATTRIBUTE; static final ImageAttribute IMAGE_CLASSIFICATION_AUTHORITY_ATTRIBUTE; static final ImageAttribute IMAGE_CLASSIFICATION_REASON_ATTRIBUTE; static final ImageAttribute IMAGE_SECURITY_SOURCE_DATE_ATTRIBUTE; static final ImageAttribute IMAGE_SECURITY_CONTROL_NUMBER_ATTRIBUTE; static final ImageAttribute PIXEL_VALUE_TYPE_ATTRIBUTE; static final ImageAttribute ACTUAL_BITS_PER_PIXEL_PER_BAND_ATTRIBUTE; static final ImageAttribute PIXEL_JUSTIFICATION_ATTRIBUTE; static final ImageAttribute IMAGE_COORDINATE_REPRESENTATION_ATTRIBUTE; static final ImageAttribute NUMBER_OF_IMAGE_COMMENTS_ATTRIBUTE; static final ImageAttribute IMAGE_COMMENT_1_ATTRIBUTE; static final ImageAttribute IMAGE_COMMENT_2_ATTRIBUTE; static final ImageAttribute IMAGE_COMMENT_3_ATTRIBUTE; static final ImageAttribute IMAGE_COMMENT_4_ATTRIBUTE; static final ImageAttribute IMAGE_COMMENT_5_ATTRIBUTE; static final ImageAttribute IMAGE_COMMENT_6_ATTRIBUTE; static final ImageAttribute IMAGE_COMMENT_7_ATTRIBUTE; static final ImageAttribute IMAGE_COMMENT_8_ATTRIBUTE; static final ImageAttribute IMAGE_COMMENT_9_ATTRIBUTE; static final ImageAttribute NUMBER_OF_BANDS_ATTRIBUTE; static final ImageAttribute IMAGE_MODE_ATTRIBUTE; static final ImageAttribute NUMBER_OF_BLOCKS_PER_ROW_ATTRIBUTE; static final ImageAttribute NUMBER_OF_BLOCKS_PER_COLUMN_ATTRIBUTE; static final ImageAttribute NUMBER_OF_PIXELS_PER_BLOCK_HORIZONTAL_ATTRIBUTE; static final ImageAttribute NUMBER_OF_PIXELS_PER_BLOCK_VERTICAL_ATTRIBUTE; static final ImageAttribute NUMBER_OF_BITS_PER_PIXEL_ATTRIBUTE; static final ImageAttribute IMAGE_DISPLAY_LEVEL_ATTRIBUTE; static final ImageAttribute IMAGE_ATTACHMENT_LEVEL_ATTRIBUTE; static final ImageAttribute IMAGE_LOCATION_ATTRIBUTE; static final ImageAttribute IMAGE_MAGNIFICATION_ATTRIBUTE; static final ImageAttribute NITF_TARGET_IDENTIFIER_ATTRIBUTE; }
@Test public void testImageAttributes() { ImageAttribute.getAttributes() .forEach( attribute -> assertThat(attribute.getShortName(), is(org.hamcrest.Matchers.notNullValue()))); assertThat( ImageAttribute.IMAGE_COMMENT_1_ATTRIBUTE.getAccessorFunction().apply(imageSegment), is(COMMENT_1)); assertThat( ImageAttribute.IMAGE_COMMENT_2_ATTRIBUTE.getAccessorFunction().apply(imageSegment), is(COMMENT_2)); assertThat( ImageAttribute.IMAGE_COMMENT_3_ATTRIBUTE.getAccessorFunction().apply(imageSegment), is(COMMENT_3)); assertThat( ImageAttribute.IMAGE_COMMENT_4_ATTRIBUTE.getAccessorFunction().apply(imageSegment), is(COMMENT_4)); assertThat( ImageAttribute.IMAGE_COMMENT_5_ATTRIBUTE.getAccessorFunction().apply(imageSegment), is(COMMENT_5)); assertThat( ImageAttribute.IMAGE_COMMENT_6_ATTRIBUTE.getAccessorFunction().apply(imageSegment), is(COMMENT_6)); assertThat( ImageAttribute.IMAGE_COMMENT_7_ATTRIBUTE.getAccessorFunction().apply(imageSegment), is(COMMENT_7)); assertThat( ImageAttribute.IMAGE_COMMENT_8_ATTRIBUTE.getAccessorFunction().apply(imageSegment), is(COMMENT_8)); assertThat( ImageAttribute.IMAGE_COMMENT_9_ATTRIBUTE.getAccessorFunction().apply(imageSegment), is(COMMENT_9)); assertThat( ImageAttribute.NITF_TARGET_IDENTIFIER_ATTRIBUTE.getAccessorFunction().apply(imageSegment), is(nullValue())); assertThat( ImageAttribute.ISR_TARGET_IDENTIFIER_ATTRIBUTE.getAccessorFunction().apply(imageSegment), is(nullValue())); assertThat( ImageAttribute.TARGET_IDENTIFIER_COUNTRY_CODE_ATTRIBUTE .getAccessorFunction() .apply(imageSegment), is(nullValue())); assertThat( ImageAttribute.TARGET_IDENTIFIER_COUNTRY_CODE_ATTRIBUTE .getAccessorFunction() .apply(imageSegment), is(nullValue())); assertThat( ImageAttribute.IMAGE_DATE_AND_TIME_ATTRIBUTE.getAccessorFunction().apply(imageSegment), is(nullValue())); assertThat( ImageAttribute.IMAGE_IDENTIFIER_2_ATTRIBUTE.getAccessorFunction().apply(imageSegment), is(nullValue())); assertThat( ImageAttribute.NUMBER_OF_SIGNIFICANT_ROWS_IN_IMAGE_ATTRIBUTE .getAccessorFunction() .apply(imageSegment), is(0L)); assertThat( ImageAttribute.NUMBER_OF_SIGNIFICANT_COLUMNS_IN_IMAGE_ATTRIBUTE .getAccessorFunction() .apply(imageSegment), is(0L)); assertThat( ImageAttribute.IMAGE_SOURCE_ATTRIBUTE.getAccessorFunction().apply(imageSegment), is(nullValue())); }