org.jaudiotagger.tag.id3
Class AbstractTagFrame

java.lang.Object
  extended by org.jaudiotagger.tag.id3.AbstractTagItem
      extended by org.jaudiotagger.tag.id3.AbstractTagFrame
Direct Known Subclasses:
AbstractID3v2Frame, Lyrics3v2Field

public abstract class AbstractTagFrame
extends AbstractTagItem

A frame contains meta-information of a particular type. A frame contains a header and a body


Field Summary
protected  AbstractTagFrameBody frameBody
          Actual data this fragment holds
 
Fields inherited from class org.jaudiotagger.tag.id3.AbstractTagItem
logger
 
Constructor Summary
AbstractTagFrame()
           
AbstractTagFrame(AbstractTagFrame copyObject)
          This constructs the bodies copy constructor this in turn invokes * bodies objectlist.
 
Method Summary
 boolean equals(java.lang.Object obj)
          Returns true if this datatype and its body equals the argument and its body.
 AbstractTagFrameBody getBody()
          Returns the body datatype for this fragment.
 boolean isSubsetOf(java.lang.Object obj)
          Returns true if this datatype and it's body is a subset of the argument.
 void setBody(AbstractTagFrameBody frameBody)
          Sets the body datatype for this fragment.
 
Methods inherited from class org.jaudiotagger.tag.id3.AbstractTagItem
getIdentifier, getSize, read
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

frameBody

protected AbstractTagFrameBody frameBody
Actual data this fragment holds

Constructor Detail

AbstractTagFrame

public AbstractTagFrame()

AbstractTagFrame

public AbstractTagFrame(AbstractTagFrame copyObject)
This constructs the bodies copy constructor this in turn invokes * bodies objectlist.

Parameters:
copyObject -
Method Detail

setBody

public void setBody(AbstractTagFrameBody frameBody)
Sets the body datatype for this fragment. The body datatype contains the actual information for the fragment.

Parameters:
frameBody - the body datatype

getBody

public AbstractTagFrameBody getBody()
Returns the body datatype for this fragment. The body datatype contains the actual information for the fragment.

Returns:
the body datatype

isSubsetOf

public boolean isSubsetOf(java.lang.Object obj)
Returns true if this datatype and it's body is a subset of the argument. This datatype is a subset if the argument is the same class.

Overrides:
isSubsetOf in class AbstractTagItem
Parameters:
obj - datatype to determine if subset of
Returns:
true if this datatype and it's body is a subset of the argument.

equals

public boolean equals(java.lang.Object obj)
Returns true if this datatype and its body equals the argument and its body. this datatype is equal if and only if they are the same class and have the same getSubId id string.

Overrides:
equals in class AbstractTagItem
Parameters:
obj - datatype to determine equality of
Returns:
true if this datatype and its body equals the argument and its body.