FileDocCategorySizeDatePackage
AbstractTagFrame.javaAPI DocJaudiotagger 2.0.44483Tue Jun 07 15:51:36 BST 2011org.jaudiotagger.tag.id3

AbstractTagFrame

public abstract class AbstractTagFrame extends AbstractTagItem
A frame contains meta-information of a particular type. A frame contains a header and a body

Fields Summary
protected AbstractTagFrameBody
frameBody
Actual data this fragment holds
Constructors Summary
public AbstractTagFrame()

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

param
copyObject

        this.frameBody = (AbstractTagFrameBody) ID3Tags.copyObject(copyObject.frameBody);
        this.frameBody.setHeader(this);
    
Methods Summary
public booleanequals(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.

param
obj datatype to determine equality of
return
true if this datatype and its body equals the argument and its body.

        if ( this == obj ) return true;
        if (!(obj instanceof AbstractTagFrame))
        {
            return false;
        }

        AbstractTagFrame that = (AbstractTagFrame) obj;
        return
              EqualsUtil.areEqual(this.getIdentifier(), that.getIdentifier()) &&
              EqualsUtil.areEqual(this.frameBody, that.frameBody) &&
              super.equals(that);

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

return
the body datatype

        return this.frameBody;
    
public booleanisSubsetOf(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.

param
obj datatype to determine if subset of
return
true if this datatype and it's body is a subset of the argument.

        if (!(obj instanceof AbstractTagFrame))
        {
            return false;
        }

        if ((frameBody == null) && (((AbstractTagFrame) obj).frameBody == null))
        {
            return true;
        }

        if ((frameBody == null) || (((AbstractTagFrame) obj).frameBody == null))
        {
            return false;
        }

        return frameBody.isSubsetOf(((AbstractTagFrame) obj).frameBody) && super.isSubsetOf(obj);

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

param
frameBody the body datatype

        this.frameBody = frameBody;
        this.frameBody.setHeader(this);
    
public java.lang.StringtoString()

        return getBody ().toString ();