com.twelvemonkeys.imageio.metadata
Class AbstractEntry
java.lang.Object
com.twelvemonkeys.imageio.metadata.AbstractEntry
- All Implemented Interfaces:
- Entry
public abstract class AbstractEntry
- extends 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$
AbstractEntry
protected AbstractEntry(Object identifier,
Object value)
getIdentifier
public final Object getIdentifier()
- Specified by:
getIdentifier in interface Entry
getNativeIdentifier
protected 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 String getFieldName()
- Returns
null, meaning unknown or undefined.
- Specified by:
getFieldName in interface Entry
- Returns:
null.
getValue
public Object getValue()
- Specified by:
getValue in interface Entry
getValueAsString
public String getValueAsString()
- Specified by:
getValueAsString in interface Entry
getTypeName
public 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 Object
equals
public boolean equals(Object pOther)
- Overrides:
equals in class Object
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2015. All Rights Reserved.