Java Code Examples for org.apache.uima.cas.CASRuntimeException#FS_NOT_MEMBER_OF_CAS
The following examples show how to use
org.apache.uima.cas.CASRuntimeException#FS_NOT_MEMBER_OF_CAS .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: NonEmptyStringList.java From uima-uimaj with Apache License 2.0 | 5 votes |
public void setTail(StringList v) { if (v != null && _casView.getBaseCAS() != v._casView.getBaseCAS()) { /** Feature Structure {0} belongs to CAS {1}, may not be set as the value of an array or list element in a different CAS {2}.*/ throw new CASRuntimeException(CASRuntimeException.FS_NOT_MEMBER_OF_CAS, v, v._casView, _casView); } _setFeatureValueNcWj(wrapGetIntCatchException(_FH_tail), v); }
Example 2
Source File: FSArray.java From uima-uimaj with Apache License 2.0 | 5 votes |
/** updates the Cas, setting the indexed value with the corresponding Cas FeatureStructure. */ @Override public void set(int i, T av) { TOP v = (TOP) av; if (v != null && _casView.getBaseCAS() != v._casView.getBaseCAS()) { /** Feature Structure {0} belongs to CAS {1}, may not be set as the value of an array or list element in a different CAS {2}.*/ throw new CASRuntimeException(CASRuntimeException.FS_NOT_MEMBER_OF_CAS, v, v._casView, _casView); } theArray[i] = _maybeGetBaseForPearFs(v); _casView.maybeLogArrayUpdate(this, null, i); }
Example 3
Source File: NonEmptyIntegerList.java From uima-uimaj with Apache License 2.0 | 5 votes |
public void setTail(IntegerList v) { if (v != null && _casView.getBaseCAS() != v._casView.getBaseCAS()) { /** Feature Structure {0} belongs to CAS {1}, may not be set as the value of an array or list element in a different CAS {2}.*/ throw new CASRuntimeException(CASRuntimeException.FS_NOT_MEMBER_OF_CAS, v, v._casView, _casView); } _setFeatureValueNcWj(wrapGetIntCatchException(_FH_tail), v); }
Example 4
Source File: FSArrayList.java From uima-uimaj with Apache License 2.0 | 5 votes |
/** * updates the i-th value of the FSArrayList. * * @param i the i * @param v the v * @return the t */ @Override public T set(int i, T v) { if (v != null && _casView.getBaseCAS() != v._casView.getBaseCAS()) { /** Feature Structure {0} belongs to CAS {1}, may not be set as the value of an array or list element in a different CAS {2}.*/ throw new CASRuntimeException(CASRuntimeException.FS_NOT_MEMBER_OF_CAS, v, v._casView, _casView); } return _maybeGetPearFs(gl().set(i, _maybeGetBaseForPearFs(v))); }
Example 5
Source File: NonEmptyFloatList.java From uima-uimaj with Apache License 2.0 | 5 votes |
public void setTail(FloatList v) { if (v != null && _casView.getBaseCAS() != v._casView.getBaseCAS()) { /** Feature Structure {0} belongs to CAS {1}, may not be set as the value of an array or list element in a different CAS {2}.*/ throw new CASRuntimeException(CASRuntimeException.FS_NOT_MEMBER_OF_CAS, v, v._casView, _casView); } _setFeatureValueNcWj(wrapGetIntCatchException(_FH_tail), v); }
Example 6
Source File: NonEmptyFSList.java From uima-uimaj with Apache License 2.0 | 4 votes |
public void setHead(T vt) { if (vt != null && _casView.getBaseCAS() != vt._casView.getBaseCAS()) { /** Feature Structure {0} belongs to CAS {1}, may not be set as the value of an array or list element in a different CAS {2}.*/ throw new CASRuntimeException(CASRuntimeException.FS_NOT_MEMBER_OF_CAS, vt, vt._casView, _casView); } _setFeatureValueNcWj(wrapGetIntCatchException(_FH_head), vt); }
Example 7
Source File: NonEmptyFSList.java From uima-uimaj with Apache License 2.0 | 4 votes |
public void setTail(FSList v) { if (v != null && _casView.getBaseCAS() != v._casView.getBaseCAS()) { /** Feature Structure {0} belongs to CAS {1}, may not be set as the value of an array or list element in a different CAS {2}.*/ throw new CASRuntimeException(CASRuntimeException.FS_NOT_MEMBER_OF_CAS, v, v._casView, _casView); } _setFeatureValueNcWj(wrapGetIntCatchException(_FH_tail), v); }