Class AbstractEntry

  • All Implemented Interfaces:
    Entry
    Direct Known Subclasses:
    IPTCEntry, PSDEntry, TIFFEntry, XMPEntry

    public abstract class AbstractEntry
    extends java.lang.Object
    implements Entry
    AbstractEntry
    Version:
    $Id: AbstractEntry.java,v 1.0 Nov 12, 2009 12:43:13 AM haraldk Exp$
    • Field Detail

      • identifier

        private final java.lang.Object identifier
      • value

        private final java.lang.Object value
    • Constructor Detail

      • AbstractEntry

        protected AbstractEntry​(java.lang.Object identifier,
                                java.lang.Object value)
    • Method Detail

      • getIdentifier

        public final java.lang.Object getIdentifier()
        Specified by:
        getIdentifier in interface Entry
      • getNativeIdentifier

        protected java.lang.String getNativeIdentifier()
        Returns a format-native identifier. For example "2:00" for IPTC "Record Version" field, or "0x040c" for PSD "Thumbnail" resource. This default implementation simply returns String.valueOf(getIdentifier()).
        Returns:
        a format-native identifier.
      • getFieldName

        public java.lang.String getFieldName()
        Returns null, meaning unknown or undefined.
        Specified by:
        getFieldName in interface Entry
        Returns:
        null.
      • getValue

        public java.lang.Object getValue()
        Specified by:
        getValue in interface Entry
      • getValueAsString

        public java.lang.String getValueAsString()
        Specified by:
        getValueAsString in interface Entry
      • arrayToString

        private static java.lang.String arrayToString​(java.lang.Object value)
      • getTypeName

        public java.lang.String getTypeName()
        Specified by:
        getTypeName in interface Entry
      • valueCount

        public int valueCount()
        Specified by:
        valueCount in interface Entry
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object pOther)
        Overrides:
        equals in class java.lang.Object
      • valueEquals

        private boolean valueEquals​(AbstractEntry other)
      • arrayEquals

        static boolean arrayEquals​(java.lang.Object thisArray,
                                   java.lang.Object otherArray)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object