コード例 #1
0
ファイル: ViewUriUtil.java プロジェクト: alainloisel/cleartk
 /**
  * Set the primary Uniform Resource Identifier for this CAS and all its views. This creates the
  * view {@link #URI} and assigns the URI there.
  *
  * @param cas The CAS object.
  * @param uri The primary URI for the CAS and all its views.
  */
 public static void setURI(CAS cas, java.net.URI uri) {
   CAS view = cas.createView(URI);
   view.setSofaDataURI(uri.toString(), null);
 }