org.schwa.dr
Class AbstractAnn

java.lang.Object
  extended by org.schwa.dr.AbstractAnn
All Implemented Interfaces:
Ann
Direct Known Subclasses:
AbstractDoc

public abstract class AbstractAnn
extends Object
implements Ann

Abstract base class for the Ann interface.

Author:
Tim Dawborn

Field Summary
protected  Integer drIndex
          The index of this annotation instance within a Store.
protected  byte[] drLazy
          The lazy serialised data for this annotation instance.
protected  int drLazyNElem
          The number of fields that are lazily stored for this annotation instance.
 
Constructor Summary
protected AbstractAnn()
           
 
Method Summary
 boolean equals(Object o)
           
 Integer getDRIndex()
          If this annotation instance is stored within a Store, this method returns the index of this annotation within the store.
 byte[] getDRLazy()
          If this annotation has lazily stored attribute data, returns the lazy data as an array of bytes ready for serialisation.
 int getDRLazyNElem()
          If this annotaiton has lazily stored attribute data, returns the number of lazily stored fields.
 void setDRIndex(Integer index)
          Sets the index of this annotation instance within its containing store.
 void setDRLazy(byte[] drLazy)
          Sets the lazily stored attribute data for this annotation instance.
 void setDRLazyNElem(int drLazyNElem)
          Sets the number of lazily stored fields for this annotation instance.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

drIndex

protected Integer drIndex
The index of this annotation instance within a Store.


drLazy

protected byte[] drLazy
The lazy serialised data for this annotation instance.


drLazyNElem

protected int drLazyNElem
The number of fields that are lazily stored for this annotation instance.

Constructor Detail

AbstractAnn

protected AbstractAnn()
Method Detail

equals

public boolean equals(Object o)
Overrides:
equals in class Object

getDRIndex

public final Integer getDRIndex()
Description copied from interface: Ann
If this annotation instance is stored within a Store, this method returns the index of this annotation within the store. If this annotation does not belong to any store, this method returns null.

Specified by:
getDRIndex in interface Ann

getDRLazy

public final byte[] getDRLazy()
Description copied from interface: Ann
If this annotation has lazily stored attribute data, returns the lazy data as an array of bytes ready for serialisation. If not, this method returns null.

Specified by:
getDRLazy in interface Ann

getDRLazyNElem

public final int getDRLazyNElem()
Description copied from interface: Ann
If this annotaiton has lazily stored attribute data, returns the number of lazily stored fields. If not, this method returns zero.

Specified by:
getDRLazyNElem in interface Ann

setDRIndex

public final void setDRIndex(Integer index)
Description copied from interface: Ann
Sets the index of this annotation instance within its containing store.

Specified by:
setDRIndex in interface Ann

setDRLazy

public final void setDRLazy(byte[] drLazy)
Description copied from interface: Ann
Sets the lazily stored attribute data for this annotation instance.

Specified by:
setDRLazy in interface Ann

setDRLazyNElem

public final void setDRLazyNElem(int drLazyNElem)
Description copied from interface: Ann
Sets the number of lazily stored fields for this annotation instance.

Specified by:
setDRLazyNElem in interface Ann


Copyright © 2014. All rights reserved.