Class NitfAttributeImpl<T>
java.lang.Object
org.codice.alliance.transformer.nitf.common.NitfAttributeImpl<T>
- All Implemented Interfaces:
NitfAttribute<T>
- Direct Known Subclasses:
AcftbAttribute,AimidbAttribute,CmetaaAttribute,CsdidaAttribute,CsexraAttribute,ExpltbAttribute,HistoaAttribute,ImageAttribute,IndexedMtirpbAttribute,IndexedPiaprdAttribute,MtirpbAttribute,NitfHeaderAttribute,PiaimcAttribute,PiaprdAttribute,PiatgbAttribute,StdidcAttribute
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedNitfAttributeImpl(String attributeName, String shortName, Function<T, Serializable> accessorFunction, ddf.catalog.data.AttributeDescriptor attributeDescriptor, String extNitfName) protectedNitfAttributeImpl(String extNitfName, String shortName, Function<T, Serializable> accessorFunction, ddf.catalog.data.AttributeType attributeType) protectedNitfAttributeImpl(String extNitfName, String shortName, Function<T, Serializable> accessorFunction, ddf.catalog.data.AttributeType attributeType, List<NitfAttribute<org.codice.imaging.nitf.core.tre.TreGroup>> indexedAttributes) protectedNitfAttributeImpl(String attributeName, String shortName, Function<T, Serializable> accessorFunction, Function<T, Serializable> extAccessorFunction, ddf.catalog.data.AttributeDescriptor attributeDescriptor, String extNitfName) -
Method Summary
Modifier and TypeMethodDescriptionSet<ddf.catalog.data.AttributeDescriptor> List<NitfAttribute<org.codice.imaging.nitf.core.tre.TreGroup>> toString()
-
Constructor Details
-
NitfAttributeImpl
protected NitfAttributeImpl(String extNitfName, String shortName, Function<T, Serializable> accessorFunction, ddf.catalog.data.AttributeType attributeType) -
NitfAttributeImpl
-
NitfAttributeImpl
protected NitfAttributeImpl(String attributeName, String shortName, Function<T, Serializable> accessorFunction, Function<T, Serializable> extAccessorFunction, ddf.catalog.data.AttributeDescriptor attributeDescriptor, String extNitfName) -
NitfAttributeImpl
protected NitfAttributeImpl(String extNitfName, String shortName, Function<T, Serializable> accessorFunction, ddf.catalog.data.AttributeType attributeType, List<NitfAttribute<org.codice.imaging.nitf.core.tre.TreGroup>> indexedAttributes)
-
-
Method Details
-
getLongName
- Specified by:
getLongNamein interfaceNitfAttribute<T>- Returns:
- the attribute's long name in CamelCase.
-
getShortName
- Specified by:
getShortNamein interfaceNitfAttribute<T>- Returns:
- the attribute's short name as listed in MIL-STD-2500C.
-
getAccessorFunction
- Specified by:
getAccessorFunctionin interfaceNitfAttribute<T>- 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
nullif the value cannot be computed.
-
getAttributeDescriptors
- Specified by:
getAttributeDescriptorsin interfaceNitfAttribute<T>- Returns:
- AttributeDescriptors for this attribute.
-
toString
-
getIndexedAttributes
-
getExtAccessorFunction
- Specified by:
getExtAccessorFunctionin interfaceNitfAttribute<T>- 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
nullif the value cannot be computed.
-