Logo Search packages:      
Sourcecode: uimaj version File versions  Download package

SofaID_impl.java

/*
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 * 
 *   http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied.  See the License for the
 * specific language governing permissions and limitations
 * under the License.
 */

package org.apache.uima.impl;

import org.apache.uima.UimaContext;
import org.apache.uima.cas.SofaID;

/**
 * Implementation of {@link SofaID}.
 * 
 * @deprecated
 */
@Deprecated
00031 public class SofaID_impl implements SofaID {

  String mSofaID;

  String mComponentSofaName;

  /**
   * Creates an empty Sofa ID.
   */
00040   public SofaID_impl() {
  }

  /**
   * Creates a new Sofa ID from the given String. Note that this constructor should be used only by
   * applications. Analysis components should use the {@link UimaContext#mapToSofaID(String)} method
   * instead.
   * 
   * @param aID
   *          the String identifier of the Sofa
   */
00051   public SofaID_impl(String aID) {
    mSofaID = aID;
    mComponentSofaName = aID;
  }

  /*
   * (non-Javadoc)
   * 
   * @see org.apache.uima.SofaID#setAbsoluteSofaName(java.lang.String)
   */
00061   public void setSofaID(String aSofaID) {
    mSofaID = aSofaID;
  }

  /*
   * (non-Javadoc)
   * 
   * @see org.apache.uima.SofaID#getAbsoluteSofaName()
   */
00070   public String getSofaID() {
    return mSofaID;
  }

  /*
   * (non-Javadoc)
   * 
   * @see org.apache.uima.SofaID#setComponentSofaName(java.lang.String)
   */
00079   public void setComponentSofaName(String aSofaName) {
    mComponentSofaName = aSofaName;
  }

  /*
   * (non-Javadoc)
   * 
   * @see org.apache.uima.SofaID#getComponentSofaName()
   */
00088   public String getComponentSofaName() {
    return mComponentSofaName;
  }
}

Generated by  Doxygen 1.6.0   Back to index