You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@uima.apache.org by tw...@apache.org on 2007/02/07 15:34:37 UTC
svn commit: r504561 -
/incubator/uima/uimaj/trunk/uimaj-core/src/main/java/org/apache/uima/cas/AbstractCas.java
Author: twgoetz
Date: Wed Feb 7 06:34:37 2007
New Revision: 504561
URL: http://svn.apache.org/viewvc?view=rev&rev=504561
Log:
No Jira: remove commented out code. The code can be gotten back from
SVN history if desired.
Modified:
incubator/uima/uimaj/trunk/uimaj-core/src/main/java/org/apache/uima/cas/AbstractCas.java
Modified: incubator/uima/uimaj/trunk/uimaj-core/src/main/java/org/apache/uima/cas/AbstractCas.java
URL: http://svn.apache.org/viewvc/incubator/uima/uimaj/trunk/uimaj-core/src/main/java/org/apache/uima/cas/AbstractCas.java?view=diff&rev=504561&r1=504560&r2=504561
==============================================================================
--- incubator/uima/uimaj/trunk/uimaj-core/src/main/java/org/apache/uima/cas/AbstractCas.java (original)
+++ incubator/uima/uimaj/trunk/uimaj-core/src/main/java/org/apache/uima/cas/AbstractCas.java Wed Feb 7 06:34:37 2007
@@ -29,96 +29,8 @@
* {@link org.apache.uima.cas.CAS}, but in future versions, other CAS interfaces may be available.
*/
public interface AbstractCas {
- // /**
- // * Gets the ID for this CAS, which is unique within the CasManager that owns it.
- // *
- // * @return the ID for this CAS. This is always a positive integer.
- // */
- // int getID();
- //
- // /**
- // * Sets the ID for this CAS, which must be unique within the CasManager that owns it.
- // * TODO: this is a dangerous method to allow user code to call. Come to think of it,
- // * most or all methods here are for framework management of the CAS. Can we hide this?
- // * @param aID the ID for this CAS. This should always be a positive integer.
- // */
- // void setID(int aID);
- //
- // /**
- // * Gets the parent ID for this CAS. If this CAS is a segment of another CAS, this
- // * will be set to the ID of that CAS. If this CAS is not a segment of any CAS, this
- // * will be 0.
- // *
- // * @return the parent CAS ID, or 0 if none
- // */
- // int getParentID();
- //
- // /**
- // * Sets the parent ID for this CAS. If this CAS is a segment of another CAS, this
- // * should be set to the ID of that CAS. If this CAS is not a segment of any CAS, this
- // * should be set to -1.
- // *
- // * @param aParentID the parent CAS ID, or -1 if none
- // */
- // void setParentID(int aParentID);
- //
- // /**
- // * Serializes the data from this CAS's internal representation to the standard
- // * XMI representation, by calling events on SAX ContentHandler. All CAS implementations
- // * are required to support serialization to XMI in order to be interoperable with
- // * other CAS implementations.
- // *
- // * @param aContentHandler a ContentHandler implementation, provided by the caller,
- // * on which this CAS will call events that represent the XMI serialization of the
- // * data stored in this CAS.
- // */
- // void toXmiSax(ContentHandler aContentHandler);
- //
- //
- // /**
- // * Returns a SAX ContentHandler that can be used to deserialize XMI into
- // * this CAS's internal representation. All CAS implementations
- // * are required to support deserialization from XMI in order to be interoperable with
- // * other CAS implementations.
- // *
- // * @return aContentHandler a ContentHandler implementation on which the caller should
- // * call events that represent an XMI document. This ContentHandler will process
- // * those events by storing data in this CAS's internal representation.
- // */
- // ContentHandler getXmiSaxContentHandler();
- //
- //
- // /**
- // * Initializes this CAS from another CAS. This method may copy data from
- // * <code>aAnotherCas</code> into this CAS's internal representation, or may
- // * simply store a handle to <code>aAnotherCas</code> so that this CAS may function
- // * as an adapter that presents a different interface to the same underlying data
- // * in <code>aAnotherCas</code>.
- // * <p>
- // * Note that it is always possible to transfer data from any CAS to any other CAS by
- // * using the {@link #toXmiSax(ContentHandler)} and {@link #getXmiSaxContentHandler()} methods.
- // *
- // * @param aAnotherCas a CAS instance, the data from which should be used to initialie
- // * this CAS.
- // */
- // void initializeFrom(AbstractCas aAnotherCas);
- //
- //
- // /**
- // * Gets the View associated with the specified Subject of Analysis (Sofa).
- // * Not all CAS implementations may support this operation.
- // *
- // * @param aSofaID ID of the Subject of Analysis (Sofa)
- // *
- // * @return a View associated with the specified Sofa. The View implements the same
- // * interfaces that this CAS does.
- // *
- // * @throws org.apache.uima.UIMA_UnsupportedOperationException if this CAS implementation
- // * does not support views.
- // */
- // AbstractCas getView(String aSofaID);
- //
- /**
+
+ /**
* Indicates that the caller is done using this CAS. Some CAS instances may be pooled, in which
* case this method returns this CAS to the pool that owns it.
*/