Enum Class TextAttribute

java.lang.Object
java.lang.Enum<TextAttribute>
org.codice.alliance.transformer.nitf.image.TextAttribute
All Implemented Interfaces:
Serializable, Comparable<TextAttribute>, Constable, NitfAttribute<org.codice.imaging.nitf.core.text.TextSegment>

public enum TextAttribute extends Enum<TextAttribute> implements NitfAttribute<org.codice.imaging.nitf.core.text.TextSegment>
NitfAttributes to represent the properties of a TextSegment.
  • Enum Constant Details

    • FILE_PART_TYPE

      public static final TextAttribute FILE_PART_TYPE
    • TEXT_IDENTIFIER

      public static final TextAttribute TEXT_IDENTIFIER
    • TEXT_ATTACHMENT_LEVEL

      public static final TextAttribute TEXT_ATTACHMENT_LEVEL
    • TEXT_DATE_AND_TIME

      public static final TextAttribute TEXT_DATE_AND_TIME
    • TEXT_TITLE

      public static final TextAttribute TEXT_TITLE
    • TEXT_SECURITY_CLASSIFICATION

      public static final TextAttribute TEXT_SECURITY_CLASSIFICATION
    • TEXT_CLASSIFICATION_SECURITY_SYSTEM

      public static final TextAttribute TEXT_CLASSIFICATION_SECURITY_SYSTEM
    • TEXT_CODEWORDS

      public static final TextAttribute TEXT_CODEWORDS
    • TEXT_CONTROL_AND_HANDLING

      public static final TextAttribute TEXT_CONTROL_AND_HANDLING
    • TEXT_RELEASING_INSTRUCTIONS

      public static final TextAttribute TEXT_RELEASING_INSTRUCTIONS
    • TEXT_DECLASSIFICATION_TYPE

      public static final TextAttribute TEXT_DECLASSIFICATION_TYPE
    • TEXT_DECLASSIFICATION_DATE

      public static final TextAttribute TEXT_DECLASSIFICATION_DATE
    • TEXT_DECLASSIFICATION_EXEMPTION

      public static final TextAttribute TEXT_DECLASSIFICATION_EXEMPTION
    • TEXT_DOWNGRADE

      public static final TextAttribute TEXT_DOWNGRADE
    • TEXT_DOWNGRADE_DATE

      public static final TextAttribute TEXT_DOWNGRADE_DATE
    • TEXT_CLASSIFICATION_TEXT

      public static final TextAttribute TEXT_CLASSIFICATION_TEXT
    • TEXT_CLASSIFICATION_AUTHORITY_TYPE

      public static final TextAttribute TEXT_CLASSIFICATION_AUTHORITY_TYPE
    • TEXT_CLASSIFICATION_AUTHORITY

      public static final TextAttribute TEXT_CLASSIFICATION_AUTHORITY
    • TEXT_CLASSIFICATION_REASON

      public static final TextAttribute TEXT_CLASSIFICATION_REASON
    • TEXT_SECURITY_SOURCE_DATE

      public static final TextAttribute TEXT_SECURITY_SOURCE_DATE
    • TEXT_SECURITY_CONTROL_NUMBER

      public static final TextAttribute TEXT_SECURITY_CONTROL_NUMBER
    • TEXT_FORMAT

      public static final TextAttribute TEXT_FORMAT
    • TEXT_EXTENDED_SUBHEADER_DATA_LENGTH

      public static final TextAttribute TEXT_EXTENDED_SUBHEADER_DATA_LENGTH
  • Method Details

    • values

      public static TextAttribute[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static TextAttribute valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getShortName

      public final String getShortName()
      Specified by:
      getShortName in interface NitfAttribute<org.codice.imaging.nitf.core.text.TextSegment>
      Returns:
      the attribute's short name as listed in MIL-STD-2500C.
    • getLongName

      public final String getLongName()
      Specified by:
      getLongName in interface NitfAttribute<org.codice.imaging.nitf.core.text.TextSegment>
      Returns:
      the attribute's long name in CamelCase.
    • getAccessorFunction

      public Function<org.codice.imaging.nitf.core.text.TextSegment,Serializable> getAccessorFunction()
      Specified by:
      getAccessorFunction in interface NitfAttribute<org.codice.imaging.nitf.core.text.TextSegment>
      Returns:
      a function that, given the CommonNitfSegment of type T, will return the corresponding value for the NitfAttribute as a Serializable. The function should return null if the value cannot be computed.
    • getExtAccessorFunction

      public Function<org.codice.imaging.nitf.core.text.TextSegment,Serializable> getExtAccessorFunction()
      Specified by:
      getExtAccessorFunction in interface NitfAttribute<org.codice.imaging.nitf.core.text.TextSegment>
      Returns:
      a function that, given the CommonNitfSegment of type T, will return the corresponding value for the extended NitfAttribute as a Serializable. The function should return null if the value cannot be computed.
    • toString

      public String toString()
      Equivalent to getLongName()
      Overrides:
      toString in class Enum<TextAttribute>
      Returns:
      the attribute's long name.
    • getAttributeDescriptors

      public Set<ddf.catalog.data.AttributeDescriptor> getAttributeDescriptors()
      Specified by:
      getAttributeDescriptors in interface NitfAttribute<org.codice.imaging.nitf.core.text.TextSegment>
      Returns:
      AttributeDescriptors for this attribute.