@Test public void docHash() throws Exception { JCas jcas = JCasFactory.createJCas(TypeSystemSingleton.getTypeSystemDescriptionInstance()); jcas.setDocumentText("There is the mention of some entity in this sentence."); DocumentAnnotation doc = (DocumentAnnotation) jcas.getDocumentAnnotationFs(); assertEquals("87cebccde680225b7640878d334b4cbb1c048ba1c8e66763f72cca5396a37807", doc.getHash()); }
public String getHash() { try { return IdentityUtils.hashStrings(getCAS().getDocumentText()); } catch (BaleenException e) { return ""; } }
DocumentAnnotation extends Annotation { public String getHash() { try { return IdentityUtils.hashStrings(getCAS().getDocumentText()); } catch (BaleenException e) { return ""; } } }
DocumentAnnotation extends Annotation { public String getHash() { try { return IdentityUtils.hashStrings(getCAS().getDocumentText()); } catch (BaleenException e) { return ""; } } protected  DocumentAnnotation();  DocumentAnnotation(TypeImpl type, CASImpl casImpl);  DocumentAnnotation(JCas jcas);  DocumentAnnotation(JCas jcas, int begin, int end); }
DocumentAnnotation extends Annotation { public String getHash() { try { return IdentityUtils.hashStrings(getCAS().getDocumentText()); } catch (BaleenException e) { return ""; } } protected  DocumentAnnotation();  DocumentAnnotation(TypeImpl type, CASImpl casImpl);  DocumentAnnotation(JCas jcas);  DocumentAnnotation(JCas jcas, int begin, int end); @Override int getTypeIndexID(); String getLanguage(); void setLanguage(String v); String getDocType(); void setDocType(String v); String getSourceUri(); void setSourceUri(String v); long getTimestamp(); void setTimestamp(long v); String getDocumentClassification(); void setDocumentClassification(String v); StringArray getDocumentCaveats(); void setDocumentCaveats(StringArray v); String getDocumentCaveats(int i); void setDocumentCaveats(int i, String v); StringArray getDocumentReleasability(); void setDocumentReleasability(StringArray v); String getDocumentReleasability(int i); void setDocumentReleasability(int i, String v); String getHash(); }
DocumentAnnotation extends Annotation { public String getHash() { try { return IdentityUtils.hashStrings(getCAS().getDocumentText()); } catch (BaleenException e) { return ""; } } protected  DocumentAnnotation();  DocumentAnnotation(TypeImpl type, CASImpl casImpl);  DocumentAnnotation(JCas jcas);  DocumentAnnotation(JCas jcas, int begin, int end); @Override int getTypeIndexID(); String getLanguage(); void setLanguage(String v); String getDocType(); void setDocType(String v); String getSourceUri(); void setSourceUri(String v); long getTimestamp(); void setTimestamp(long v); String getDocumentClassification(); void setDocumentClassification(String v); StringArray getDocumentCaveats(); void setDocumentCaveats(StringArray v); String getDocumentCaveats(int i); void setDocumentCaveats(int i, String v); StringArray getDocumentReleasability(); void setDocumentReleasability(StringArray v); String getDocumentReleasability(int i); void setDocumentReleasability(int i, String v); String getHash(); @SuppressWarnings("hiding")
  static final String _TypeName; @SuppressWarnings("hiding")
  static final int typeIndexID; @SuppressWarnings("hiding")
  static final int type; static final String _FeatName_language; static final String _FeatName_docType; static final String _FeatName_sourceUri; static final String _FeatName_timestamp; static final String _FeatName_documentClassification; static final String _FeatName_documentCaveats; static final String _FeatName_documentReleasability; }