Class AbstractEntry
- java.lang.Object
-
- com.twelvemonkeys.imageio.metadata.AbstractEntry
-
- All Implemented Interfaces:
Entry
- Direct Known Subclasses:
TIFFEntry
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$
- Author:
- Harald Kuhr, last modified by $Author: haraldk$
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractEntry(java.lang.Object identifier, java.lang.Object value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object pOther)
java.lang.String
getFieldName()
Returnsnull
, meaning unknown or undefined.java.lang.Object
getIdentifier()
protected java.lang.String
getNativeIdentifier()
Returns a format-native identifier.java.lang.String
getTypeName()
java.lang.Object
getValue()
java.lang.String
getValueAsString()
int
hashCode()
java.lang.String
toString()
int
valueCount()
-
-
-
Method Detail
-
getIdentifier
public final java.lang.Object getIdentifier()
- Specified by:
getIdentifier
in interfaceEntry
-
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 returnsString.valueOf(getIdentifier())
.- Returns:
- a format-native identifier.
-
getFieldName
public java.lang.String getFieldName()
Returnsnull
, meaning unknown or undefined.- Specified by:
getFieldName
in interfaceEntry
- Returns:
null
.
-
getValueAsString
public java.lang.String getValueAsString()
- Specified by:
getValueAsString
in interfaceEntry
-
getTypeName
public java.lang.String getTypeName()
- Specified by:
getTypeName
in interfaceEntry
-
valueCount
public int valueCount()
- Specified by:
valueCount
in interfaceEntry
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object pOther)
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-