Enum Class LabelAttribute

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

public enum LabelAttribute extends Enum<LabelAttribute> implements NitfAttribute<org.codice.imaging.nitf.core.label.LabelSegment>
NitfAttributes to represent the properties of a LabelSegmentHeader.
  • Enum Constant Details

    • FILE_PART_TYPE

      public static final LabelAttribute FILE_PART_TYPE
    • LABEL_ID

      public static final LabelAttribute LABEL_ID
    • LABEL_SECURITY_CLASSIFICATION

      public static final LabelAttribute LABEL_SECURITY_CLASSIFICATION
    • LABEL_CODEWORDS

      public static final LabelAttribute LABEL_CODEWORDS
    • LABEL_CONTROL_AND_HANDLING

      public static final LabelAttribute LABEL_CONTROL_AND_HANDLING
    • LABEL_RELEASING_INSTRUCTIONS

      public static final LabelAttribute LABEL_RELEASING_INSTRUCTIONS
    • LABEL_CLASSIFICATION_AUTHORITY

      public static final LabelAttribute LABEL_CLASSIFICATION_AUTHORITY
    • LABEL_SECURITY_CONTROL_NUMBER

      public static final LabelAttribute LABEL_SECURITY_CONTROL_NUMBER
    • LABEL_SECURITY_DOWNGRADE

      public static final LabelAttribute LABEL_SECURITY_DOWNGRADE
    • LABEL_DOWNGRADING_EVENT

      public static final LabelAttribute LABEL_DOWNGRADING_EVENT
    • LABEL_CELL_WIDTH

      public static final LabelAttribute LABEL_CELL_WIDTH
    • LABEL_CELL_HEIGHT

      public static final LabelAttribute LABEL_CELL_HEIGHT
    • LABEL_DISPLAY_LEVEL

      public static final LabelAttribute LABEL_DISPLAY_LEVEL
    • ATTACHMENT_LEVEL

      public static final LabelAttribute ATTACHMENT_LEVEL
    • LABEL_LOCATION

      public static final LabelAttribute LABEL_LOCATION
    • LABEL_TEXT_COLOR

      public static final LabelAttribute LABEL_TEXT_COLOR
    • LABEL_BACKGROUND_COLOR

      public static final LabelAttribute LABEL_BACKGROUND_COLOR
    • EXTENDED_SUBHEADER_DATA_LENGTH

      public static final LabelAttribute EXTENDED_SUBHEADER_DATA_LENGTH
  • Method Details

    • values

      public static LabelAttribute[] 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 LabelAttribute 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.label.LabelSegment>
      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.label.LabelSegment>
      Returns:
      the attribute's long name in CamelCase.
    • getAccessorFunction

      public Function<org.codice.imaging.nitf.core.label.LabelSegment,Serializable> getAccessorFunction()
      Specified by:
      getAccessorFunction in interface NitfAttribute<org.codice.imaging.nitf.core.label.LabelSegment>
      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.label.LabelSegment,Serializable> getExtAccessorFunction()
      Specified by:
      getExtAccessorFunction in interface NitfAttribute<org.codice.imaging.nitf.core.label.LabelSegment>
      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<LabelAttribute>
      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.label.LabelSegment>
      Returns:
      AttributeDescriptors for this attribute.