com.twelvemonkeys.imageio.metadata
Class AbstractEntry

java.lang.Object
  extended by 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$

Constructor Summary
protected AbstractEntry(Object identifier, Object value)
           
 
Method Summary
 boolean equals(Object pOther)
           
 String getFieldName()
          Returns null, meaning unknown or undefined.
 Object getIdentifier()
           
protected  String getNativeIdentifier()
          Returns a format-native identifier.
 String getTypeName()
           
 Object getValue()
           
 String getValueAsString()
           
 int hashCode()
           
 String toString()
           
 int valueCount()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractEntry

protected AbstractEntry(Object identifier,
                        Object value)
Method Detail

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.