org.apache.uima.cas.impl
Class CommonAuxArrayFSImpl

java.lang.Object
  extended by org.apache.uima.cas.impl.FeatureStructureImpl
      extended by org.apache.uima.cas.impl.FeatureStructureImplC
          extended by org.apache.uima.cas.impl.CommonAuxArrayFSImpl
All Implemented Interfaces:
java.lang.Cloneable, FeatureStructure
Direct Known Subclasses:
BooleanArrayFSImpl, ByteArrayFSImpl, DoubleArrayFSImpl, LongArrayFSImpl, ShortArrayFSImpl

public abstract class CommonAuxArrayFSImpl
extends FeatureStructureImplC

Common part of array impl for those arrays of primitives which use auxilliary heaps. Is a super class to those.


Field Summary
 
Fields inherited from class org.apache.uima.cas.impl.FeatureStructureImplC
addr, casImpl
 
Constructor Summary
protected CommonAuxArrayFSImpl()
           
protected CommonAuxArrayFSImpl(CASImpl cas, int addr)
           
 
Method Summary
protected  void copyFromJavaArray(java.lang.Object src, int srcOffset, java.lang.Object casAuxHeap, int tgtOffset, int length)
          copyFromArray - only works for things where the src and tgt are the same underlying type (long and byte) src = external java object, tgt = internal CAS Aux heap
abstract  void copyToArray(int srcOffset, java.lang.String[] dest, int destOffset, int length)
           
protected  void copyToJavaArray(java.lang.Object casAuxHeap, int srcOffset, java.lang.Object tgt, int tgtOffset, int length)
          copyFromArray - only works for things where the src and tgt are the same underlying type (long and byte) src = internal CAS Aux heap, tgt = external java object
 int size()
           
protected  java.lang.Object toArray(java.lang.Object casAuxHeap)
           
 java.lang.String[] toStringArray()
           
 
Methods inherited from class org.apache.uima.cas.impl.FeatureStructureImplC
equals, getAddress, getCAS, getCASImpl, hashCode, setUp
 
Methods inherited from class org.apache.uima.cas.impl.FeatureStructureImpl
clone, getBooleanValue, getByteValue, getDoubleValue, getFeatureValue, getFeatureValueAsString, getFloatValue, getIntValue, getLongValue, getShortValue, getStringValue, getType, prettyPrint, prettyPrint, prettyPrint, setBooleanValue, setByteValue, setDoubleValue, setFeatureValue, setFeatureValueFromString, setFloatValue, setIntValue, setLongValue, setShortValue, setStringValue, toString, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CommonAuxArrayFSImpl

protected CommonAuxArrayFSImpl()

CommonAuxArrayFSImpl

protected CommonAuxArrayFSImpl(CASImpl cas,
                               int addr)
Method Detail

size

public int size()
See Also:
ArrayFS.size()

copyFromJavaArray

protected void copyFromJavaArray(java.lang.Object src,
                                 int srcOffset,
                                 java.lang.Object casAuxHeap,
                                 int tgtOffset,
                                 int length)
copyFromArray - only works for things where the src and tgt are the same underlying type (long and byte) src = external java object, tgt = internal CAS Aux heap


copyToJavaArray

protected void copyToJavaArray(java.lang.Object casAuxHeap,
                               int srcOffset,
                               java.lang.Object tgt,
                               int tgtOffset,
                               int length)
copyFromArray - only works for things where the src and tgt are the same underlying type (long and byte) src = internal CAS Aux heap, tgt = external java object


toArray

protected java.lang.Object toArray(java.lang.Object casAuxHeap)
See Also:
ArrayFS.toArray()

copyToArray

public abstract void copyToArray(int srcOffset,
                                 java.lang.String[] dest,
                                 int destOffset,
                                 int length)

toStringArray

public java.lang.String[] toStringArray()


Copyright © 2012. All Rights Reserved.