Class ExternalResourceExample.SharedModel

java.lang.Object
org.apache.uima.fit.examples.resource.ExternalResourceExample.SharedModel
All Implemented Interfaces:
org.apache.uima.resource.SharedResourceObject
Enclosing class:
ExternalResourceExample

public static final class ExternalResourceExample.SharedModel extends Object implements org.apache.uima.resource.SharedResourceObject
Simple model that only stores the URI it was loaded from. Normally data would be loaded from the URI instead and made accessible through methods in this class. This simple example only allows to access the URI.
  • Constructor Details

    • SharedModel

      public SharedModel()
  • Method Details

    • load

      public void load(org.apache.uima.resource.DataResource aData) throws org.apache.uima.resource.ResourceInitializationException
      Specified by:
      load in interface org.apache.uima.resource.SharedResourceObject
      Throws:
      org.apache.uima.resource.ResourceInitializationException
    • getUri

      public String getUri()